Page 1 of 1

restart domoticz daily with dzvenst script

Posted: Monday 30 April 2018 16:08
by jandirkv
Hello, a short question

Is it possible to restart domoticz with a dzvents Command? I tried:

Code: Select all

domoticz.restart()
but that didn't work

Re: restart domoticz daily with dzvenst script

Posted: Monday 30 April 2018 16:41
by waaren
Not directly but you can trigger an os script from dzVents.
Other option is to use openURL from within dzVents to send json to domoticz to reboot complete system.

Re: restart domoticz daily with dzvenst script

Posted: Monday 30 April 2018 18:04
by Egregius
Why would you need to restart daily?
Or from within the domoticz event system?

Re: restart domoticz daily with dzvenst script

Posted: Wednesday 02 May 2018 22:23
by jandirkv
Because after a few days my dzvents stop working. After restart they work again

Re: restart domoticz daily with dzvenst script

Posted: Wednesday 02 May 2018 22:34
by Egregius
If dvents stops it can’t help you.
You need a shell script in cron. Search the forum, there are multiple available.

Re: restart domoticz daily with dzvenst script

Posted: Wednesday 02 May 2018 22:39
by dannybloe
dzVents won’t stop. Perhaps the eventsystem in domoticz. Better figure out what is wrong. Somehow.