Transfer dzVents scripts from one domoticz to another

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Transfer dzVents scripts from one domoticz to another

Post 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.
Bugs bug me.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Transfer dzVents scripts from one domoticz to another

Post 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."
Blah blah blah
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Transfer dzVents scripts from one domoticz to another

Post 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.
Bugs bug me.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Transfer dzVents scripts from one domoticz to another

Post 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.
Blah blah blah
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Transfer dzVents scripts from one domoticz to another

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest