added getSteps() to retrieve step count by other apps

pull/643/head
hughbarney 2021-01-25 12:57:08 +00:00
parent e3777d6ca9
commit 75189ac3ef
1 changed files with 5 additions and 1 deletions

View File

@ -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) {