owmweather - Fix calling weather if it is not available
parent
bd34c54eed
commit
fe240ea27c
|
|
@ -25,7 +25,7 @@ function parseWeather(response) {
|
||||||
|
|
||||||
json.weather = weather;
|
json.weather = weather;
|
||||||
require("Storage").writeJSON('weather.json', json);
|
require("Storage").writeJSON('weather.json', json);
|
||||||
require("weather").emit("update", json.weather);
|
if (require("Storage").read("weather")!==undefined) require("weather").emit("update", json.weather);
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
return /*LANG*/"Not OWM data";
|
return /*LANG*/"Not OWM data";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue