Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Météo openweathermap
#1
J'ai testé la météo comme décrit dans le wiki ici

Voila ce que donne mon fichier IO :
</calaos:input>
<calaos:input coeff_a="1" coeff_b="-274.15" file_type="json" frequency="10000" gui_type="temp" id="input_65" max="10000" min="-10000" name="Température extérieure" path="main/temp" step="1" type="WebInputTemp" unit="°C" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="0" coeff_b="1000" file_type="json" frequency="10000" gui_type="analog_in" id="input_66" max="10000" min="-10000" name="Pression atmosphérique" path="main/pressure" step="1" type="WebInputAnalog" unit="hPa" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="1" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_67" max="10000" min="-10000" name="Humidité extérieure" path="main/humidity" step="1" type="WebInputAnalog" unit="%" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="1" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_68" max="10000" min="-10000" name="Vitesse du vent" path="wind/speed" step="1" type="WebInputAnalog" unit="km/h" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="1" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_69" max="10000" min="-10000" name="Orientation du vent" path="wind/deg" step="1" type="WebInputAnalog" unit="°" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="1" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_70" max="10000" min="-10000" name="Couverture Nuageuse" path="clouds/all" step="1" type="WebInputAnalog" unit="%" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="-274.15" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_71" max="10000" min="-10000" name="Température mini" path="main/temp_min" step="1" type="WebInputAnalog" unit="°C" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="-274.15" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_72" max="10000" min="-10000" name="Température Maxi" path="main/temp_max" step="1" type="WebInputAnalog" unit="" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:input coeff_a="1" coeff_b="0" file_type="json" frequency="10000" gui_type="analog_in" id="input_73" max="10000" min="-10000" name="Description du temp" path="main/description" step="1" type="WebInputAnalog" unit="" url="http://api.openweathermap.org/data/2.5/weather?q=MESPLEDE&amp;lang=fr" visible="true" />
<calaos:output gtype="light" gui_type="light" host="192.168.1.27" id="output_59" name="Eclairages Murs" port="502" type="WODigital" var="63" visible="true" wago_841="true" />

Voila ce que j'obtiens comme valeurs sur les écrans :
   

Voila ce que j'obtiens comme valeurs directement sur internet :
{"coord":{"lon":-0.66,"lat":43.49},"sys":{"type":1,"id":5533,"message":0.3546,"country":"France","sunrise":1415169832,"sunset":1415206118},"weather":[{"id":500,"main":"Rain","description":"légères pluies","icon":"10d"}],"base":"cmc stations","main":{"temp":285.15,"pressure":1010,"humidity":71,"temp_min":285.15,"temp_max":285.15},"wind":{"speed":3.6,"deg":250,"var_beg":220,"var_end":280},"clouds":{"all":92},"rain":{"3h":3},"dt":1415203200,"id":6440511,"name":"Mesplède","cod":200}

J'ai donc un souci avec les valeurs Temp mini/maxi, la description du temps (0 au lieu de légère pluie), la pression atmo (tjrs la même valeur 1000), la direction du vent (pas tres compréhensible 250°)

Sinon c'est plutôt pas mal, mais ca serait bien de pouvoir le mettre sur la page d'accueil de l'écran plutôt que dans une pièce...
CALAOS V3 | WAGO 750-849 | NUC NUC5PPYH | Ecran tactile ELO 1537L avec Ampli VGA et adaptateur USB/RS232 Grillé Angry  |
Sondes PT1000 | DMX RGBW pour Rubans Leds 24v | Caméras POE Weisky
Reply


Messages In This Thread
Météo openweathermap - by Eric64 - 11-05-2014, 06:35 PM
RE: Météo openweathermap - by azerty - 11-05-2014, 07:11 PM
RE: Météo openweathermap - by captainigloo - 11-05-2014, 10:45 PM
RE: Météo openweathermap - by ActionProd - 01-02-2015, 03:23 PM
RE: Météo openweathermap - by Eric64 - 01-26-2015, 09:17 PM
RE: Météo openweathermap - by captainigloo - 01-26-2015, 09:44 PM
RE: Météo openweathermap - by Eric64 - 01-28-2015, 03:18 PM
RE: Météo openweathermap - by Eric64 - 01-30-2015, 11:32 PM
RE: Météo openweathermap - by Eric64 - 02-06-2015, 11:56 AM
RE: Météo openweathermap - by Eric64 - 03-11-2015, 05:03 PM
RE: Météo openweathermap - by raoulh - 03-12-2015, 09:43 AM
RE: Météo openweathermap - by Eric64 - 03-13-2015, 10:20 AM
RE: Météo openweathermap - by Eric64 - 03-23-2015, 07:24 PM
RE: Météo openweathermap - by raoulh - 03-23-2015, 08:46 PM
RE: Météo openweathermap - by Eric64 - 03-25-2015, 08:51 AM
RE: Météo openweathermap - by raoulh - 03-25-2015, 09:32 AM
RE: Météo openweathermap - by Eric64 - 03-25-2015, 02:28 PM
RE: Météo openweathermap - by Eric64 - 03-29-2015, 12:38 PM
RE: Météo openweathermap - by Eric64 - 05-15-2015, 02:50 PM
RE: Météo openweathermap - by Cyridle - 05-22-2015, 08:40 AM
RE: Météo openweathermap - by Eric64 - 05-26-2015, 10:14 PM
RE: Météo openweathermap - by Cyridle - 05-28-2015, 04:36 PM
RE: Météo openweathermap - by bernievds - 02-01-2017, 10:08 PM
RE: Météo openweathermap - by raoulh - 02-02-2017, 10:34 AM
RE: Météo openweathermap - by bernievds - 02-02-2017, 11:03 AM
RE: Météo openweathermap - by raoulh - 02-02-2017, 11:08 AM
RE: Météo openweathermap - by davidinfo - 02-05-2017, 01:58 AM
RE: Météo openweathermap - by bernievds - 02-13-2017, 07:39 PM
RE: Météo openweathermap - by davidinfo - 02-17-2017, 12:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)