Skip to content

Instantly share code, notes, and snippets.

@quozl
Created November 17, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quozl/5163dd923681e344a70e3300a22170c5 to your computer and use it in GitHub Desktop.
Save quozl/5163dd923681e344a70e3300a22170c5 to your computer and use it in GitHub Desktop.
#!/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