crontab doesn't change switch status
Posted: Monday 09 May 2022 12:33
i have a python script which turns a pump on & off and changes the status in domoticz:
when i run the script from command line the status changes fine, but when it runs from a crontab the status doesn´t change ?
Code: Select all
cmd1 = "http://192.168.1.150:8080/json.htm?type=command¶m=switchlight&idx=115&switchcmd=On"
hf1 = urllib.request.urlopen(cmd1)
hf1.close