Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import http.client
- import json
- headers = {'Content-Type' : 'application/json', 'Accept' : 'application/json'}
- conn = http.client.HTTPConnection('dynick.frickel.club:8080')
- effectconf = {'Active' : True}
- jsonconf = json.dumps(effectconf)
- conn.request('PUT', '/devices/big/active', jsonconf, headers)
- conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement