I have produced an app which adds a settings menu to set the lat/lon of mylocation to mylocation.json. This can then be used by other apps to do calculations based on lat/lon.
For example I am using it in my Pastel clock to work out sunrise / sunset. Choose from 6 preset cities or set from the GPS.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I have produced an app which adds a settings menu to set the lat/lon of mylocation to mylocation.json. This can then be used by other apps to do calculations based on lat/lon.
For example I am using it in my Pastel clock to work out sunrise / sunset. Choose from 6 preset cities or set from the GPS.
See Readme.
https://github.com/hughbarney/BangleApps/blob/master/apps/mylocation/README.md