diff --git a/apps/weatherClock/ChangeLog b/apps/weatherClock/ChangeLog index 4c32f4a6c..98e4b4522 100644 --- a/apps/weatherClock/ChangeLog +++ b/apps/weatherClock/ChangeLog @@ -3,4 +3,4 @@ 0.03: Minor layout extra spaces. 0.04: Layout now compatible with Bangle.js 2. 0.05: Use weather condition code for icon selection. -0.06: Dev15-New settings to optionally hide elements. Images placed into functions for performance. +0.06: Dev16-New settings to optionally hide elements. Images placed into functions for performance. diff --git a/apps/weatherClock/app.js b/apps/weatherClock/app.js index ff467cc53..8396b19a8 100644 --- a/apps/weatherClock/app.js +++ b/apps/weatherClock/app.js @@ -48,7 +48,7 @@ function chooseIcon(condition) { } if (condition.includes("drizzle")|| condition.includes("shower")|| - condition.includes("rain")) return getRain; + condition.includes("rain")) return getRain; if (condition.includes("clear")) return getSun; if (condition.includes("clouds")) return getCloud; if (condition.includes("few clouds")|| @@ -75,7 +75,7 @@ function chooseIconByCode(code) { case 2: return getStorm; case 3: return getRain; case 5: - switch (code) { + switch (code) { case 511: return getSnow; default: return getRain; } @@ -83,7 +83,7 @@ function chooseIconByCode(code) { case 7: return getPartSun; case 8: switch (code) { - case 800: return getSun; + case 800: return getSun; case 804: return getCloud; default: return getPartSun; } @@ -91,14 +91,6 @@ function chooseIconByCode(code) { } } -/** -Get weather stored in json file by weather app. -*/ -function getWeather() { - let jsonWeather = storage.readJSON('weather.json'); - return jsonWeather; -} - // timeout used to update every minute var drawTimeout;