update description, attempt to fix settings page

pull/2962/head
Gordon Williams 2023-08-09 08:37:20 +01:00
parent 5c96471940
commit 2508fb7374
2 changed files with 11 additions and 3 deletions

View File

@ -2,9 +2,9 @@
"name": "USGS Data fetching app",
"shortName":"USGS",
"version":"0.01",
"description": "App that fetches USGS data from configurable location",
"description": "App that fetches [USGS water data](https://maps.waterdata.usgs.gov/) for a configurable location (requires connection to Android phone)",
"icon": "app.png",
"tags": "",
"tags": "outdoors,exercise,http",
"supports" : ["BANGLEJS2"],
"readme": "README.md",
"storage": [
@ -12,5 +12,5 @@
{"name":"usgs.settings.js","url":"settings.js"},
{"name":"usgs.img","url":"app-icon.js","evaluate":true}
],
"data": [{"name":"myapp.json"}]
"data": [{"name":"usgs.json"}]
}

View File

@ -1,4 +1,12 @@
(function(back) {
var FILE = "usgs.json";
var settings = Object.assign({
loc: '03272100',
keys: {'Gage height': true, 'Discharge': true, 'Temperature, water': true},
shortenedName: {"Gage height":"Ga","Discharge":"Dis","Temperature, water":"Temp"},
tempUnitF: true,
}, require('Storage').readJSON(FILE, true) || {});
var submenu = {
"" : {
"title" : "-- DataStreams --"