04-25-2026, 11:39 AM
It doesn't have to be every second, in fact that would be excessive, just include the information whenever other MQTT updates are made, it's a big JSON blob so it'd just be one extra field in there. It's not acting as a heartbeat but just reporting how long the system has been running since the last restart occurred so it doesn't have to be instant.
One other thing in case the original post wasn't clear, please make whatever gets reported an uptime, so time elapsed since the last restart, and not an absolute time, so the time of the last restart. The time zone sometimes gets messed up so knowing that the uptime was three hours is better than knowing that that last restart was at time X which is being modified by the time zone setting.
One other thing in case the original post wasn't clear, please make whatever gets reported an uptime, so time elapsed since the last restart, and not an absolute time, so the time of the last restart. The time zone sometimes gets messed up so knowing that the uptime was three hours is better than knowing that that last restart was at time X which is being modified by the time zone setting.

