owmweather: Fix One Call API 3.0 does not return city name but it is required by weather app

pull/3387/head
gsuarezc 2024-04-27 17:51:13 +01:00
parent c38f113aa4
commit 7f5d375f29
3 changed files with 3 additions and 2 deletions

View File

@ -3,3 +3,4 @@
0.03: Fix updating weather too often
0.04: Minor code improvements
0.05: Upgrade OWM to One Call API 3.0. Add pressure to weather.json
0.06: Fix One Call API 3.0 does not return city name but it is required by weather app

View File

@ -12,7 +12,7 @@ function parseWeather(response) {
weather.code = owmData.current.weather[0].id;
weather.wdir = owmData.current.wind_deg;
weather.wind = owmData.current.wind_speed;
// weather.loc = owmData.name;
weather.loc = owmData.name ? owmData.name : "";
weather.txt = owmData.current.weather[0].main;
weather.hpa = owmData.current.pressure ? owmData.current.pressure : 0;

View File

@ -1,7 +1,7 @@
{ "id": "owmweather",
"name": "OpenWeatherMap weather provider",
"shortName":"OWM Weather",
"version": "0.05",
"version": "0.06",
"description": "Pulls weather from OpenWeatherMap (OWM) API",
"icon": "app.png",
"type": "bootloader",