crontab doesn't change switch status

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
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

crontab doesn't change switch status

Post by adeibiza »

i have a python script which turns a pump on & off and changes the status in domoticz:

Code: Select all

cmd1 = "http://192.168.1.150:8080/json.htm?type=command&param=switchlight&idx=115&switchcmd=On"
hf1 = urllib.request.urlopen(cmd1)
hf1.close
when i run the script from command line the status changes fine, but when it runs from a crontab the status doesn´t change ?
adeibiza
Posts: 27
Joined: Friday 19 October 2018 18:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: crontab doesn't change switch status

Post by adeibiza »

i should add that when the crontab runs it starts & stops the pump fine - there's no change in domoticz dashboard though
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest