Skip to content

Instantly share code, notes, and snippets.

@kenichimiki
Created August 24, 2019 02:07
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 kenichimiki/6f78ba999a3eb852aa479440c4e603e2 to your computer and use it in GitHub Desktop.
Save kenichimiki/6f78ba999a3eb852aa479440c4e603e2 to your computer and use it in GitHub Desktop.
Control Toshiba Regza TV via python using web I/F
import requests
from requests.auth import HTTPDigestAuth
TV_IP = "xxx.xxx.xxx.xxx"
TV_USER = "user"
TV_PASS = "pass"
TV_VOLUME_DOWN = "40BF1E"
TV_BOTTON_8 = "40BF08"
def execjanken(key):
url = "http://" + TV_IP + "/remote/remote.htm?key=" + key
r = requests.get(url, auth=HTTPDigestAuth(TV_USER, TV_PASS))
return True
//Change channel to 8
execjanken(TV_BOTTON_8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment