restart domoticz daily with dzvenst script

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
jandirkv
Posts: 27
Joined: Monday 19 February 2018 6:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9117
Contact:

restart domoticz daily with dzvenst script

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: restart domoticz daily with dzvenst script

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: restart domoticz daily with dzvenst script

Post by Egregius »

Why would you need to restart daily?
Or from within the domoticz event system?
jandirkv
Posts: 27
Joined: Monday 19 February 2018 6:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9117
Contact:

Re: restart domoticz daily with dzvenst script

Post by jandirkv »

Because after a few days my dzvents stop working. After restart they work again
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: restart domoticz daily with dzvenst script

Post by Egregius »

If dvents stops it can’t help you.
You need a shell script in cron. Search the forum, there are multiple available.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: restart domoticz daily with dzvenst script

Post by dannybloe »

dzVents won’t stop. Perhaps the eventsystem in domoticz. Better figure out what is wrong. Somehow.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest