diff --git a/apps/gpstouch/README.md b/apps/gpstouch/README.md index 1d6bb5d17..7329f9833 100644 --- a/apps/gpstouch/README.md +++ b/apps/gpstouch/README.md @@ -1,5 +1,16 @@ # GPS Touch +- A touch controlled GPS watch for Bangle JS 2 +- Key feature is the conversion of Lat/Lon into Ordinance Servey Grid Reference +- Swipe left and right to change the display +- Select GPS and switch the GPS On or Off by touching twice in the top half of the display +- Select LOGGER and switch the GPS Recorder On or Off by touching twice in the top half of the display +- Displays the GPS time in the bottom half of the screen when the GPS is powered on, otherwise 00:00:00 +- Select display of Course, Speed, Altitude, Longitude, Latitude, Ordinance Servey Grid Reference + ## Screenshots - +![](screenshot1.png) +![](screenshot2.png) +![](screenshot3.png) +![](screenshot4.png) diff --git a/apps/gpstouch/gpstouch.app.js b/apps/gpstouch/gpstouch.app.js index 3b2c54569..9a022095d 100644 --- a/apps/gpstouch/gpstouch.app.js +++ b/apps/gpstouch/gpstouch.app.js @@ -1,5 +1,6 @@ const h = g.getHeight(); const w = g.getWidth(); +let geo = require("geotools"); let last_fix; function resetLastFix() { @@ -99,7 +100,7 @@ const infoData = { calc: () => formatTime(last_fix.time), }, OS_REF: { - calc: () => 'NZ 208 987', + calc: () => last_fix.lat == 0 ? "Searching.." : geo.gpsToOSMapRef(last_fix), }, GPS_POWER: { calc: () => (Bangle.isGPSOn()) ? 'GPS On' : 'GPS Off', @@ -204,7 +205,6 @@ Bangle.on('lcdPower', on => { draw(); }); - resetLastFix(); // add listenner if already powered on, plus tag app diff --git a/apps/gpstouch/screenshot1.png b/apps/gpstouch/screenshot1.png new file mode 100644 index 000000000..03cb1e2a9 Binary files /dev/null and b/apps/gpstouch/screenshot1.png differ diff --git a/apps/gpstouch/screenshot2.png b/apps/gpstouch/screenshot2.png new file mode 100644 index 000000000..a05794b34 Binary files /dev/null and b/apps/gpstouch/screenshot2.png differ diff --git a/apps/gpstouch/screenshot3.png b/apps/gpstouch/screenshot3.png new file mode 100644 index 000000000..9e3115d72 Binary files /dev/null and b/apps/gpstouch/screenshot3.png differ diff --git a/apps/gpstouch/screenshot4.png b/apps/gpstouch/screenshot4.png new file mode 100644 index 000000000..924371f5f Binary files /dev/null and b/apps/gpstouch/screenshot4.png differ