not sure if this helps you or if this is what you are searching for, but I'm using the health module, which is preinstalled on each bangle js 2 as far as I know. Using the code below works fine for me - also steps are set to zero each day :)
In case health is not installed, I return 0. Probably ot would be better, to show a warning etc. instead ;)
Thanks, I've made the changes to my code but get an error "module health not found" even after I've loaded the health tracking widget.
Going to play around with it some more and try and find out what's happening.
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.
Hi,
not sure if this helps you or if this is what you are searching for, but I'm using the health module, which is preinstalled on each bangle js 2 as far as I know. Using the code below works fine for me - also steps are set to zero each day :)
In case health is not installed, I return 0. Probably ot would be better, to show a warning etc. instead ;)