How to save output script of a Light switch action

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
YellowSky
Posts: 65
Joined: Tuesday 12 May 2015 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Last
Location: Belgium
Contact:

How to save output script of a Light switch action

Post 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
YellowSky
Posts: 65
Joined: Tuesday 12 May 2015 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Last
Location: Belgium
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest