.. API météo


intro


à la recherche de data meteo

choix de l'API:
Yahoo Weather API (*)
yahoo eol 2019 - encore une fin de vie!!

www.wunderground.com/weather/api/
openweathermap.org info wiki (.en)

openweathermap


API 2.5
Après avoir ouvert un compte "free" (limit: 60call/mn) chez openweathermap
openweathermap.org API key
API = 7b99xxxxxxxxxxxxxxxxxxxxxxxx
JSON or XML


Recherches:
1) coordonnées: 47.8726, 7.3176 = Grand Ballon; mais les températures sont trop high !!? c'est donc Ungersheim (lieu connu proche, mais en plaine; donc inutilisable)
verif = http://api.openweathermap.org/geo/1.0/reverse?lat=47.8726&lon=7.31760&limit=5 &appid=7b996xxxxxxxx
info .xml (pour * le Grand Ballon, en metric... temperature °C)

2) nom: Soultz = inconnu / Guebwiller = ok
Par contre "Le Markstein, fr" est connu et exact
Le Markstein, FR broken clouds
8.5°С temperature from 8.2 to 9.1 °С, wind 4.02 m/s. clouds 83 %, 1006 hpa
Geo coords [47.9233, 7.0318]

info .json (pour Mulhouse,FR)
info .xml (pour Mulhouse,FR) ajout "units metric" = °C
info .xml (pour Chamonix,FR) ajout "units metric" = °C
info .xml (pour lat=45.9 + lon=6.86) found... Chamonix-Mont-Blanc :-)
info .xml (en metric.... temperature °C)

Exemple (pour Chamonix) d'output .XML =


Exemples (pour Mulhouse) avec une page dédiée:
owm 1 = description (en anglais)
owm 2 = température

carte
openweathermap.org/weathermap?basemap=map &cities=true &layer=radar &lat=47.9167&lon=7.2&zoom=8

API 3.0 (pas encore essayé)
on peut avoir une traduction de la description

more


font owfont-regular 1.0.0
src: https://websygen.github.io/owfont/

copie locale:
+

darksky.net/forecast/47.7831,7.3486/ca12/fr superbe! avec carte, prévision et retour en arrière
Et devinez quoi? API eol 03/2023

conclusion


je vais essayer l'API de OWM (pour le moment)
le top "meteo": windy.com


^ be4.free.fr/savoir/meteo/index.htm - 01/2018 - 09/2022 - kch