From ca4bef7a1cac03a652440d121128864efbf3546c Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 2 Nov 2021 16:19:32 +0000 Subject: [PATCH] Add ability to download health info --- apps.json | 1 + apps/health/interface.html | 133 +++++++++++++++++++++++++++++++++++++ apps/health/lib.js | 1 - core | 2 +- 4 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 apps/health/interface.html diff --git a/apps.json b/apps.json index 35d95d9a7..03e20050e 100644 --- a/apps.json +++ b/apps.json @@ -55,6 +55,7 @@ "tags": "tool,system,health", "supports": ["BANGLEJS","BANGLEJS2"], "readme": "README.md", + "interface": "interface.html", "storage": [ {"name":"health.app.js","url":"app.js"}, {"name":"health.img","url":"app-icon.js","evaluate":true}, diff --git a/apps/health/interface.html b/apps/health/interface.html new file mode 100644 index 000000000..f04857926 --- /dev/null +++ b/apps/health/interface.html @@ -0,0 +1,133 @@ + + + + + +
+ + + + + diff --git a/apps/health/lib.js b/apps/health/lib.js index 20d73a907..70305bff8 100644 --- a/apps/health/lib.js +++ b/apps/health/lib.js @@ -16,7 +16,6 @@ function getRecordIdx(d) { // Read all records from the given month exports.readAllRecords = function(d, cb) { - var rec = getRecordIdx(d); var fn = getRecordFN(d); var f = require("Storage").read(fn); if (f===undefined) return; diff --git a/core b/core index 70b49d8db..5ef454a1a 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 70b49d8dbd2afa76f4485aadf679dc75e0a8b4ac +Subproject commit 5ef454a1acce54f6420015b519a7ecf461f9bc37