martinberlin / cale-integrations

CALE configurator to add APIs to your epaper screens - PHP/Symfony 4.4
https://cale.es
MIT License
6 stars 0 forks source link

90/99 Add openweather API #24

Closed martinberlin closed 4 years ago

martinberlin commented 4 years ago

We will use mostly the hourly forecast just as we did with DarkSky: https://openweathermap.org/api/hourly-forecast#format

Example call:

http://api.openweathermap.org/data/2.5/forecast?lat=52.5&lon=13.43&APPID=APIKEY&units=metric

Default response type is already JSON

Icons: https://github.com/isneezy/open-weather-icons

To add the icons

<link href="/css/open-weather-icons.css" rel="stylesheet">
    <i class="owi owi-01d"></i>
martinberlin commented 4 years ago

OpenWeather is live today. One thing I miss comparing it to DarkSky is the short day sentence, like "Expected rain from Wed to Sunday" that seems not to be the same in OpenWeather