mirror of https://github.com/espruino/BangleApps
parent
4a08dcbaea
commit
b1f0b9af1b
|
@ -1,2 +1,4 @@
|
||||||
0.01: First, proof of concept
|
0.01: First, proof of concept
|
||||||
0.02: Load AGPS data on app start and automatically in background
|
0.02: Load AGPS data on app start and automatically in background
|
||||||
|
0.03: Do not load AGPS data on boot
|
||||||
|
Increase minimum interval to 12 hours
|
||||||
|
|
|
@ -16,13 +16,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.enabled) {
|
if (settings.enabled) {
|
||||||
let lastUpdate = settings.lastUpdate;
|
|
||||||
if (!lastUpdate || lastUpdate + settings.refresh * 1000 * 60 < Date.now()){
|
|
||||||
if (!waiting){
|
|
||||||
waiting = true;
|
|
||||||
require("agpsdata").pull(successCallback, errorCallback);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
if (!waiting && NRF.getSecurityStatus().connected){
|
if (!waiting && NRF.getSecurityStatus().connected){
|
||||||
waiting = true;
|
waiting = true;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "A-GPS Data Downloader App",
|
"name": "A-GPS Data Downloader App",
|
||||||
"shortName":"A-GPS Data",
|
"shortName":"A-GPS Data",
|
||||||
"icon": "agpsdata.png",
|
"icon": "agpsdata.png",
|
||||||
"version":"0.02",
|
"version":"0.03",
|
||||||
"description": "Once installed, this app allows you to download assisted GPS (A-GPS) data directly to your Bangle.js **via Gadgetbridge on an Android phone** when you run the app. If you just want to upload the latest AGPS data from this app loader, please use the `Assisted GPS Update (AGPS)` app.",
|
"description": "Once installed, this app allows you to download assisted GPS (A-GPS) data directly to your Bangle.js **via Gadgetbridge on an Android phone** when you run the app. If you just want to upload the latest AGPS data from this app loader, please use the `Assisted GPS Update (AGPS)` app.",
|
||||||
"tags": "boot,tool,assisted,gps,agps,http",
|
"tags": "boot,tool,assisted,gps,agps,http",
|
||||||
"allow_emulator":true,
|
"allow_emulator":true,
|
||||||
|
|
|
@ -35,7 +35,7 @@ function buildMainMenu() {
|
||||||
},
|
},
|
||||||
"Refresh every" : {
|
"Refresh every" : {
|
||||||
value : settings.refresh / 60,
|
value : settings.refresh / 60,
|
||||||
min : 1,
|
min : 12,
|
||||||
max : 168,
|
max : 168,
|
||||||
step : 1,
|
step : 1,
|
||||||
format : v => v + "h",
|
format : v => v + "h",
|
||||||
|
|
Loading…
Reference in New Issue