Page 1 of 1

crontab doesn't change switch status

Posted: Monday 09 May 2022 12:33
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 ?

Re: crontab doesn't change switch status

Posted: Monday 09 May 2022 12:34
by adeibiza
i should add that when the crontab runs it starts & stops the pump fine - there's no change in domoticz dashboard though