Weather: Fix linting warnings
parent
c94e53e6aa
commit
6f9b5ad0b4
|
|
@ -97,8 +97,8 @@ function update(weatherEvent) {
|
||||||
} else if (weather1.weather != null && weather1.weather.feels === undefined) {
|
} else if (weather1.weather != null && weather1.weather.feels === undefined) {
|
||||||
// Grab feels like temperature as we have it in v2
|
// Grab feels like temperature as we have it in v2
|
||||||
weather1.weather.feels = decodeWeatherV2FeelsLike(weatherEvent);
|
weather1.weather.feels = decodeWeatherV2FeelsLike(weatherEvent);
|
||||||
storage.write("weather.json", weather);
|
storage.write("weather.json", weather1);
|
||||||
exports.emit("update", weather);
|
exports.emit("update", weather1);
|
||||||
}
|
}
|
||||||
|
|
||||||
cloned = undefined; // Clear memory
|
cloned = undefined; // Clear memory
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(back) => {
|
(function (back) {
|
||||||
const storage = require("Storage");
|
const storage = require("Storage");
|
||||||
let settings = storage.readJSON("weatherSetting.json", 1);
|
let settings = storage.readJSON("weatherSetting.json", 1);
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
const DATA_TYPE = ["basic", "extended", "forecast"];
|
const DATA_TYPE = ["basic", "extended", "forecast"];
|
||||||
|
|
||||||
menuItems = {
|
let menuItems = {
|
||||||
"": { "title": "Weather" },
|
"": { "title": "Weather" },
|
||||||
"Expiry": {
|
"Expiry": {
|
||||||
value: "expiry" in settings ? settings.expiry : 2 * 3600000,
|
value: "expiry" in settings ? settings.expiry : 2 * 3600000,
|
||||||
|
|
@ -84,4 +84,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
E.showMenu(menuItems);
|
E.showMenu(menuItems);
|
||||||
};
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue