mirror of https://github.com/espruino/BangleApps
commit
550eae9aec
|
@ -11,3 +11,4 @@
|
||||||
Support to choose between humidity and wind speed for weather circle progress
|
Support to choose between humidity and wind speed for weather circle progress
|
||||||
Support to show time and progress until next sunrise or sunset
|
Support to show time and progress until next sunrise or sunset
|
||||||
Load daily steps from Bangle health if available
|
Load daily steps from Bangle health if available
|
||||||
|
0.07: Allow configuration of minimal heart rate confidence
|
||||||
|
|
|
@ -29,6 +29,7 @@ function loadSettings() {
|
||||||
settings = storage.readJSON("circlesclock.json", 1) || {
|
settings = storage.readJSON("circlesclock.json", 1) || {
|
||||||
'minHR': 40,
|
'minHR': 40,
|
||||||
'maxHR': 200,
|
'maxHR': 200,
|
||||||
|
'confidence': 0,
|
||||||
'stepGoal': 10000,
|
'stepGoal': 10000,
|
||||||
'stepDistanceGoal': 8000,
|
'stepDistanceGoal': 8000,
|
||||||
'stepLength': 0.8,
|
'stepLength': 0.8,
|
||||||
|
@ -599,9 +600,11 @@ Bangle.on('lock', function(isLocked) {
|
||||||
|
|
||||||
Bangle.on('HRM', function(hrm) {
|
Bangle.on('HRM', function(hrm) {
|
||||||
if (isCircleEnabled("hr")) {
|
if (isCircleEnabled("hr")) {
|
||||||
hrtValue = hrm.bpm;
|
if (hrm.confidence >= (settings.confidence || 0)) {
|
||||||
if (Bangle.isLCDOn())
|
hrtValue = hrm.bpm;
|
||||||
drawHeartRate();
|
if (Bangle.isLCDOn())
|
||||||
|
drawHeartRate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "circlesclock",
|
{ "id": "circlesclock",
|
||||||
"name": "Circles clock",
|
"name": "Circles clock",
|
||||||
"shortName":"Circles clock",
|
"shortName":"Circles clock",
|
||||||
"version":"0.06",
|
"version":"0.07",
|
||||||
"description": "A clock with circles for different data at the bottom in a probably familiar style",
|
"description": "A clock with circles for different data at the bottom in a probably familiar style",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [{"url":"screenshot-dark.png"}, {"url":"screenshot-light.png"}],
|
"screenshots": [{"url":"screenshot-dark.png"}, {"url":"screenshot-light.png"}],
|
||||||
|
|
|
@ -35,6 +35,16 @@
|
||||||
},
|
},
|
||||||
onchange: x => save('maxHR', x),
|
onchange: x => save('maxHR', x),
|
||||||
},
|
},
|
||||||
|
'hr confidence': {
|
||||||
|
value: "confidence" in settings ? settings.confidence : 0,
|
||||||
|
min: 0,
|
||||||
|
max : 100,
|
||||||
|
step: 10,
|
||||||
|
format: x => {
|
||||||
|
return x;
|
||||||
|
},
|
||||||
|
onchange: x => save('confidence', x),
|
||||||
|
},
|
||||||
'step goal': {
|
'step goal': {
|
||||||
value: "stepGoal" in settings ? settings.stepGoal : 10000,
|
value: "stepGoal" in settings ? settings.stepGoal : 10000,
|
||||||
min: 2000,
|
min: 2000,
|
||||||
|
|
Loading…
Reference in New Issue