Way overthinking this. Time is coming from browser in the first place. If I want to print it, print it from the browser, don't pull it from the controller.
Haven't seen a packet in this system in four days, but there should have been a bunch yesterday.
Trying to think of how to keep the connection alive without cron or some other timer. I would do…
It's not horrible.
When I try to format the date differently than return rtc.now().timestamp();, like toString(), the device…
All back on local time now. The current time is saved with an epoch shift according to the timezone offset in JS. The start program time is local by default from the HTML form. Both are stored as…
I can get the submitted unix time copied into a file/variable, but it might be local time rather than UTC?
HTML field is datetime-local, which needs to be labeled as UTC.
https://www.w3schools.com/tags/att_input_type_datetime-local.asp
Comes out as 2023-09-02T05:34 format.
If using ardino-timer (https://github.com/contrem/arduino-timer), how to set this up?
- get start time of program from webform
- start time should be in unix utc, but RTC uses seconds…