Page 1 of 1

Is it possible to have an 'external function' which can be used by multiple dzVents scripts?

Posted: Wednesday 04 April 2018 20:14
by Timmiej93
I have a bit of code which I use in multiple dzVents scripts, which I'd prefer to be a centralized instance, making maintenance easier and the other scripts clearer. Normally, I'd do this by putting this code in a new function that all other scripts can access. Is this possible in dzVents, or does all code have to be in the function that's executed by dzVents?

Re: Is it possible to have an 'external function' which can be used by multiple dzVents scripts?

Posted: Wednesday 04 April 2018 20:17
by waaren
Very interesting reading stuff here... :D

https://www.domoticz.com/wiki/DzVents:_ ... _functions

Re: Is it possible to have an 'external function' which can be used by multiple dzVents scripts?

Posted: Wednesday 04 April 2018 20:19
by Timmiej93
How on earth have I missed that after looking at that page so much...
Thank you, and my apologies!

Re: Is it possible to have an 'external function' which can be used by multiple dzVents scripts?  [Solved]

Posted: Friday 06 April 2018 17:22
by poudenes
Since i understand this im rewrites my scripts and they seem so nice :) haha ...