Page 1 of 1

systemUptime not reset after a domoticz restart

Posted: Tuesday 11 May 2021 20:06
by usky73
I have made a simple script in dzvents to inform me if the system has been stoped or if has been restarted.
The script is using systemUptime to show the Domoticz app uptime.

If a stop the service using

Code: Select all

sudo service domoticz stop
and

Code: Select all

sudo service domoticz start
the domoticz menu in settings (about) is reseted but the domoticz info systemUptime has not been reset.

Is it a bug ? Any workaround ?

Re: systemUptime not reset after a domoticz restart

Posted: Tuesday 11 May 2021 20:35
by waaren
usky73 wrote: Tuesday 11 May 2021 20:06 I have made a simple script in dzvents to inform me if the system has been stoped or if has been restarted.
...
Is it a bug ? Any workaround ?
Is the version you show in your profile your current domoticz version?
Please share the script.

domoticz.systemUptime is the amount of seconds since the last restart of your RPI. (= uptime command from the CLI)
Maybe that is causing the confusion?

domoticz.startTime is a timeObject with the time of the last domoticz start.

Re: systemUptime not reset after a domoticz restart  [Solved]

Posted: Wednesday 12 May 2021 14:20
by usky73
I am in version 3.0.2
Your point is good, I thought it was domoticz uptime.
Thanks for your answer