"module health not found" is probably displayed on orange in the IDE? You don't have to worry about that - it's just the IDE saying it can't find it - but it'll be installed on your Bangle and will work fine.
However I'd suggest just using Bangle.getHealthStatus("day").steps which will return a step count that resets at midnight. It's a lot faster than asking the health module as I think that one may actually end up scanning through the file on the Bangle's storage to try and sum up the steps from every 10 minute interval.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
"module health not found"
is probably displayed on orange in the IDE? You don't have to worry about that - it's just the IDE saying it can't find it - but it'll be installed on your Bangle and will work fine.However I'd suggest just using
Bangle.getHealthStatus("day").steps
which will return a step count that resets at midnight. It's a lot faster than asking thehealth
module as I think that one may actually end up scanning through the file on the Bangle's storage to try and sum up the steps from every 10 minute interval.