All scripts are written when only change 1 script

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

Moderator: leecollings

Post Reply
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

All scripts are written when only change 1 script

Post by htilburgs »

No error, but just noticed.
Is it normal behavior when editing or creating 1 dzVents event-script, that all existing (and active) are saved?
2018-01-20 17:48:55.020 EventSystem: reset all events...
2018-01-20 17:48:55.022 EventSystem: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/PIR.lua
2018-01-20 17:48:55.023 EventSystem: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Ganglicht voordeur.lua
2018-01-20 17:48:55.023 EventSystem: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Zonsonderdergang.lua
Also when i look at "/domoticz/scripts/dzVents/generated_scripts $" I see them all having the date and time of saving.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: All scripts are written when only change 1 script

Post by emme »

I think is by design:
events edited in the UI are normally stored inside the local db (domoticz.db)
Once you save any dzVents file all these events are also copied into the filesystem to allow dzvents framework to use them...
but this is my own personal idea about it :P :P

I think that once a script can be considered in 'production' you can move it into /domoticz/scripts/dzVents/scripts
The most dangerous phrase in any language is:
"We always done this way"
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: All scripts are written when only change 1 script

Post by dannybloe »

Patches to the C++ code are happily accepted ;-)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest