Help sending a url command Topic is solved

Python and python framework

Moderator: leecollings

Post Reply
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Help sending a url command

Post 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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Help sending a url command

Post by simon_rb »

Managed to sort it using urllib.request.urlopen

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest