Page 1 of 1
Transfer dzVents scripts from one domoticz to another
Posted: Monday 23 September 2024 13:16
by HvdW
Hi
I copied dzVents scripts from one domoticz to another.
Changed ownwership to root:root but the scripts are not displayed.
Ctrl-F5 didn't change the situation.
Even worse: after a restart of the system the newly added script vanished!
What's the cause of this and how should I act to add these scripts to domoticz.
Re: Transfer dzVents scripts from one domoticz to another
Posted: Monday 23 September 2024 16:38
by HansieNL
To what folder did you copy the scripts? If to folder generated_scripts see README.md in that folder:
"This folder will contain scripts that are created inside Domoticz using the internal script editor. Don't remove this folder and do not edit the scripts in here as they will be overwritten."
Re: Transfer dzVents scripts from one domoticz to another
Posted: Monday 23 September 2024 17:41
by HvdW
HansieNL wrote: ↑Monday 23 September 2024 16:38
To what folder did you copy the scripts? If to folder generated_scripts see README.md in that folder:
"This folder will contain scripts that are created inside Domoticz using the internal script editor. Don't remove this folder and do not edit the scripts in here as they will be overwritten."
That's a good one and it has provent to be correct.
Unless there's another solution I'll have to copy/past the scripts.
Re: Transfer dzVents scripts from one domoticz to another
Posted: Monday 23 September 2024 19:23
by HansieNL
You can copy the scripts in the /dzVents/scripts folder and see README.md in that folder:
"Scripts folder
Place all your scripts in this folder. Only these scripts will be executed by dzVents. See the example folder for some script examples and check the README.md in the root for instructions."
Scripts in this folder should be backed-up separately, because they are are not stored in the database.
Re: Transfer dzVents scripts from one domoticz to another
Posted: Monday 23 September 2024 19:30
by waltervl
There are 2 ways to use dvents scripts:
1. With the internal editor. These scripts are stored in the database and published after save and every day at midnight in the domoticz/scripts/dzVents/generated_scripts folder.
If you want to copy these scripts to another Domoticz environment make a new script with the online editor and paste the contents of the script from the old to the new environment and save them in the editor in the new environment.
2. Create scripts outside the Domoticz environment and store those in the folder domoticz/scripts/dzVents/scripts. You can just copy these script files from one environment to the other.
See as usual also the dzVents wiki:
https://www.domoticz.com/wiki/DzVents:_ ... h_Domoticz