Created
August 24, 2019 02:07
-
-
Save kenichimiki/6f78ba999a3eb852aa479440c4e603e2 to your computer and use it in GitHub Desktop.
Control Toshiba Regza TV via python using web I/F
This file contains hidden or 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
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