From 998855b0996b710ebeacd1135526a155ebc4c7ee Mon Sep 17 00:00:00 2001 From: Marco H Date: Mon, 21 Nov 2022 10:20:23 +0100 Subject: [PATCH] Allow setting location from webinterface in the AppLoader --- apps/mylocation/ChangeLog | 1 + apps/mylocation/README.md | 2 +- apps/mylocation/custom.html | 95 +++++++++++++++++++++++++++++++++++ apps/mylocation/metadata.json | 5 +- 4 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 apps/mylocation/custom.html diff --git a/apps/mylocation/ChangeLog b/apps/mylocation/ChangeLog index c14e64ba9..b46b3b178 100644 --- a/apps/mylocation/ChangeLog +++ b/apps/mylocation/ChangeLog @@ -5,3 +5,4 @@ 0.05: Fixed issue with back option 0.06: renamed source files to match standard 0.07: Move mylocation app into 'Settings -> Apps' +0.08: Allow setting location from webinterface in the AppLoader diff --git a/apps/mylocation/README.md b/apps/mylocation/README.md index a6a16ce83..b12ed5dcf 100644 --- a/apps/mylocation/README.md +++ b/apps/mylocation/README.md @@ -4,7 +4,7 @@ To access, go to `Settings -> Apps -> My Location` -* Select one of the preset Cities or setup through the GPS +* Select one of the preset Cities, setup through the GPS or use the webinterface from the AppLoader * Other Apps can read this information to do calculations based on location * When the City shows ??? it means the location has been set through the GPS diff --git a/apps/mylocation/custom.html b/apps/mylocation/custom.html new file mode 100644 index 000000000..f9857e649 --- /dev/null +++ b/apps/mylocation/custom.html @@ -0,0 +1,95 @@ + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + diff --git a/apps/mylocation/metadata.json b/apps/mylocation/metadata.json index 4ab9aa37e..bef5b983c 100644 --- a/apps/mylocation/metadata.json +++ b/apps/mylocation/metadata.json @@ -4,11 +4,12 @@ "icon": "app.png", "type": "settings", "screenshots": [{"url":"screenshot_1.png"}], - "version":"0.07", - "description": "Sets and stores the lat and long of your preferred City or it can be set from the GPS. mylocation.json can be used by other apps that need your main location lat and lon. See README", + "version":"0.08", + "description": "Sets and stores the latitude and longitude of your preferred City. It can be set from GPS or webinterface. `mylocation.json` can be used by other apps that need your main location. See README for details.", "readme": "README.md", "tags": "tool,utility", "supports": ["BANGLEJS", "BANGLEJS2"], + "custom": "custom.html","custom": "custom.html", "storage": [ {"name":"mylocation.settings.js","url":"settings.js"} ],