I checked the health boot.js code but if I understand correctly it also only listens for the "health" event and then saves the data to the database. And if I understand this commit correctly, "health" gets fired in libs/banglejs/jswrap_bangle.c and honestly, I was hoping for an easier approach than editing and recompiling C files for such a small feature.
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.
I checked the health boot.js code but if I understand correctly it also only listens for the "health" event and then saves the data to the database. And if I understand this commit correctly, "health" gets fired in
libs/banglejs/jswrap_bangle.c
and honestly, I was hoping for an easier approach than editing and recompiling C files for such a small feature.