Merge pull request #4 from espruino/master

update
master
Ben Jabituya 2021-01-05 19:02:27 +00:00 committed by GitHub
commit c7d5e70839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -1341,7 +1341,7 @@
"name": "Active Pedometer",
"shortName":"Active Pedometer",
"icon": "app.png",
"version":"0.04",
"version":"0.05",
"description": "Pedometer that filters out arm movement and displays a step goal progress. Steps are saved to a daily file and can be viewed as graph.",
"tags": "outdoors,widget",
"readme": "README.md",
@ -2496,7 +2496,7 @@
"name": "Heart Rate Variability monitor",
"shortName":"HRV monitor",
"icon": "hrv.png",
"version":"0.02",
"version":"0.03",
"description": "Heart Rate Variability monitor, see Readme for more info",
"tags": "",
"readme": "README.md",

View File

@ -1,2 +1,3 @@
0.01: New App!
0.02: Added options to either run as a one-off reading, or a continuous mode to log data until the watch is reset
0.03: Add RMSSD recording

View File

@ -1,4 +1,5 @@
0.01: New Widget!
0.02: Distance calculation and display
0.03: Data logging and display
0.04: Steps are set to 0 in log on new day
0.04: Steps are set to 0 in log on new day
0.05: Fix default step/distance display if it hasn't been set up first

View File

@ -68,6 +68,8 @@
'stepSensitivity' : 80,
'stepGoal' : 10000,
'stepLength' : 75,
'lineOne' : "Distance",
'lineTwo' : "Steps",
};
if (!settings) { loadSettings(); }
return (key in settings) ? settings[key] : DEFAULTS[key];
@ -160,7 +162,6 @@
if (active == 1) g.setColor(0x07E0); //green
else g.setColor(0xFFFF); //white
g.setFont("6x8", 2);
if (setting('lineOne') == 'Steps') {
g.drawString(kFormatterSteps(stepsCounted),this.x+1,this.y); //first line, big number, steps
}
@ -229,4 +230,4 @@
timerStoreData = setInterval(storeData, storeDataInterval); //store data regularly
//Add widget
WIDGETS["activepedom"]={area:"tl",width:width,draw:draw};
})();
})();

View File

@ -20,6 +20,7 @@ This app allows you to remotely control devices (or anything else you like!) wit
First, you'll need a device that supports BLE.
Install EspruinoHub following the directions at [https://github.com/espruino/EspruinoHub](https://github.com/espruino/EspruinoHub)
Install [Node-RED](https://nodered.org/docs/getting-started)
## Example Node-RED flow