From 75189ac3ef77de4888ac26b0095fbbd2ee172e17 Mon Sep 17 00:00:00 2001 From: hughbarney Date: Mon, 25 Jan 2021 12:57:08 +0000 Subject: [PATCH] added getSteps() to retrieve step count by other apps --- apps/widpedom/widget.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/widpedom/widget.js b/apps/widpedom/widget.js index e7c3961b4..427a25e33 100644 --- a/apps/widpedom/widget.js +++ b/apps/widpedom/widget.js @@ -112,7 +112,11 @@ }); // add your widget - WIDGETS["wpedom"]={area:"tl",width:26,draw:draw,reload:reload}; + WIDGETS["wpedom"]={area:"tl",width:26, + draw:draw, + reload:reload, + getSteps:()=>stp_today, + }; // Load data at startup let pedomData = require("Storage").readJSON(PEDOMFILE,1); if (pedomData) {