Page 1 of 1

Help sending a url command

Posted: Sunday 29 September 2019 22:41
by simon_rb
Hi all,

I'm a little bit stuck. Someone has kindly put up a python 3 script to download files from a dash cam and when it finishes it executes turn_off_camera() I think I just need to let the script know what that is. All I need it to do is switch off a switch in domoticz. I have the url to switch the switch off via json..

What would be the best way in doing this? As you can see I have tried to implement it where it says #turn_off_camera

Many Thanks

Simon
blackvuesync copy 2.txt
(26.26 KiB) Downloaded 51 times

Re: Help sending a url command

Posted: Monday 30 September 2019 0:02
by simon_rb
Managed to sort it using urllib.request.urlopen

Cheers