diff --git a/apps/solarclock/README.md b/apps/solarclock/README.md index 51c95139b..0a28af561 100644 --- a/apps/solarclock/README.md +++ b/apps/solarclock/README.md @@ -1 +1,35 @@ # Solar Clock + +## Introduction + +Ever wondered when Sunset really is, what time will it hit? When the Sun will be highest in the sky? When you phone your friend in another country, you can easily find the time, but is it light where they are? The solar clock gives you a pictoral view of the day. It also gives you the opportunity to get the same view on another city in another timezone. + +## Usage + + + +### Uploading the clock + + + +### Reading the clock through the day + +### Button 3 +Change Location + +### Button 4 and 5 +Move Time backwards and forwards + +### Button 1 +Rest to now + +## Further Details +For further details of design and working please visit [The Project Page]( https://adrianwkirk.notion.site/Solar-Clock-a2b6268075a6481686b86ecc2094dc14) + +## Requests + +Reach out to adrian@adriankirk.com if you have feature requests or notice bugs. + +## Creator + +Made by [Adrian Kirk](mailto:adrian@adriankirk.com) \ No newline at end of file diff --git a/apps/solarclock/solar_clock.js b/apps/solarclock/solar_clock.js index b3a21bf22..4c6f2f8a1 100644 --- a/apps/solarclock/solar_clock.js +++ b/apps/solarclock/solar_clock.js @@ -487,6 +487,7 @@ function schedule_draw_clock(){ Bangle.on('lcdPower', (on) => { if (on) { console.log("lcdPower: on"); + gps_status_requires_update = true; draw_clock(); start_timers(); } else { diff --git a/apps/solarclock/solar_location.js b/apps/solarclock/solar_location.js index 2f900ea06..84364393c 100644 --- a/apps/solarclock/solar_location.js +++ b/apps/solarclock/solar_location.js @@ -37,11 +37,12 @@ class LocationManager { }; console.log("Received gps fixing:" + JSON.stringify(loc_info)); storage.writeJSON("solar_loc.local.json", this.location_info); + this.setGPSPower(0); if(this.isGPSLocation()){ this.location_info = loc_info; this.notifyUpdate(); } - this.setGPSPower(0); + } }); }