Page 1 of 1

All scripts are written when only change 1 script

Posted: Saturday 20 January 2018 17:53
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.

Re: All scripts are written when only change 1 script

Posted: Saturday 20 January 2018 18:49
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

Re: All scripts are written when only change 1 script

Posted: Monday 22 January 2018 7:12
by dannybloe
Patches to the C++ code are happily accepted ;-)