There is an RTC in the Puck (and all of the Bluetooth Espruinos), but yeah, when the battery dies, the time is lost... But it would be in any RTC.
A simple option would be to add another battery to it via a diode - so when the first battery gets low or gets removed, the other one will take over and everything will be fine. Even just adding a big capacitor would allow you to swap the battery over quickly without a reset.
Otherwise you could add an external RTC like the DS3231 that there's a module for already - however that will require its own external voltage source as well.
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,
There is an RTC in the Puck (and all of the Bluetooth Espruinos), but yeah, when the battery dies, the time is lost... But it would be in any RTC.
A simple option would be to add another battery to it via a diode - so when the first battery gets low or gets removed, the other one will take over and everything will be fine. Even just adding a big capacitor would allow you to swap the battery over quickly without a reset.
Otherwise you could add an external RTC like the DS3231 that there's a module for already - however that will require its own external voltage source as well.