forked from FOSS/BangleApps
Replace 'Activity' with 'Motion' to be able to display motion true values
parent
d09e3c2ce1
commit
31277cd20a
|
@ -1,4 +1,4 @@
|
||||||
var locale = require("locale");
|
var locale = require("locale");
|
||||||
var fontColor = g.theme.dark ? "#0f0" : "#000";
|
var fontColor = g.theme.dark ? "#0f0" : "#000";
|
||||||
var paddingY = 2;
|
var paddingY = 2;
|
||||||
var font6x8At4Size = 32;
|
var font6x8At4Size = 32;
|
||||||
|
@ -75,11 +75,10 @@ function drawHRM(pos){
|
||||||
function drawActivity(pos){
|
function drawActivity(pos){
|
||||||
clearField(pos);
|
clearField(pos);
|
||||||
var health = Bangle.getHealthStatus('last');
|
var health = Bangle.getHealthStatus('last');
|
||||||
var steps_formated = ">Activity: " + parseInt(health.movement/10);
|
var steps_formated = ">Motion: " + parseInt(health.movement);
|
||||||
drawLine(steps_formated, pos);
|
drawLine(steps_formated, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function draw(){
|
function draw(){
|
||||||
var curPos = 1;
|
var curPos = 1;
|
||||||
g.reset();
|
g.reset();
|
||||||
|
@ -108,7 +107,6 @@ function draw(){
|
||||||
drawInput(now, curPos);
|
drawInput(now, curPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Bangle.on('HRM',function(hrmInfo) {
|
Bangle.on('HRM',function(hrmInfo) {
|
||||||
if(hrmInfo.confidence >= settings.HRMinConfidence)
|
if(hrmInfo.confidence >= settings.HRMinConfidence)
|
||||||
heartRate = hrmInfo.bpm;
|
heartRate = hrmInfo.bpm;
|
||||||
|
|
Loading…
Reference in New Issue