forked from FOSS/BangleApps
solar clock BUGFIX. Clock missing GPS update on screen
parent
07698a9cf1
commit
224975ea81
|
@ -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)
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue