Created
November 17, 2017 22:01
-
-
Save quozl/5163dd923681e344a70e3300a22170c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import requests | |
U = 'http://192.168.67.201/config' | |
P = { | |
'action': 'set', | |
'paramd': 'eParamID_MediaState', | |
'value': 1 | |
} | |
r = requests.get(U, params=P) | |
if r.status_code == 200: | |
exit(0) | |
print >>sys.stderr, r.status_code | |
exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment