Skip to content

Commit

Permalink
added getSteps() to widget
Browse files Browse the repository at this point in the history
  • Loading branch information
hughbarney committed Jan 6, 2021
1 parent b2f3702 commit 39829fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/activepedom/widget.js
Expand Up @@ -229,5 +229,5 @@
setStepSensitivity(setting('stepSensitivity')); //set step sensitivity (80 is standard, 400 is muss less sensitive)
timerStoreData = setInterval(storeData, storeDataInterval); //store data regularly
//Add widget, use: WIDGETS["wpedom"].getSteps() inside another App to return todays step count
WIDGETS["activepedom"]={area:"tl",width:width,draw:draw, getSteps=>()=>steps_counted};
WIDGETS["activepedom"]={area:"tl",width:width,draw:draw, getSteps=>()=>stepsCounted};
})();

0 comments on commit 39829fa

Please sign in to comment.