Page 1 of 1

How to save output script of a Light switch action

Posted: Friday 25 November 2016 8:37
by YellowSky
Hi,
i have a switch with a script launched when it goes to On (an action)
I would like to know how to define the output of this script.
Indeed if a use script:///home/pi/domoticz/scripts/python/script.py >> /var/log/etat.log 2>&1 does not work.

Thank you for your help

Re: How to save output script of a Light switch action

Posted: Friday 25 November 2016 10:36
by YellowSky
By defaut, domoticz can't write to /var/log so first option is to give rights the second is to write into /home/pi/xxx where domoticz can write text