remove debug logs
parent
8daef5459c
commit
ac29417014
|
|
@ -3,7 +3,6 @@ function drawAlert(){
|
||||||
title:"Activity reminder",
|
title:"Activity reminder",
|
||||||
buttons : {"Ok": true,"Dismiss": false}
|
buttons : {"Ok": true,"Dismiss": false}
|
||||||
}).then(function(v) {
|
}).then(function(v) {
|
||||||
console.log(stepsArray); // todo remove
|
|
||||||
if(v == true){
|
if(v == true){
|
||||||
stepsArray = stepsArray.slice(0, activityreminder.maxInnactivityMin - 3);
|
stepsArray = stepsArray.slice(0, activityreminder.maxInnactivityMin - 3);
|
||||||
require("activityreminder").saveStepsArray(stepsArray);
|
require("activityreminder").saveStepsArray(stepsArray);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
function run(){
|
function run(){
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
var h = now.getHours();
|
var h = now.getHours();
|
||||||
console.log(stepsArray); // todo remove
|
|
||||||
if(h >= activityreminder.startHour && h < activityreminder.endHour){
|
if(h >= activityreminder.startHour && h < activityreminder.endHour){
|
||||||
var health = Bangle.getHealthStatus("day");
|
var health = Bangle.getHealthStatus("day");
|
||||||
stepsArray.unshift(health.steps);
|
stepsArray.unshift(health.steps);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue