python-lgtv/example.py

12 lines
306 B
Python
Raw Permalink Normal View History

2014-07-04 00:39:52 +02:00
from lg import Remote
if __name__ == "__main__":
address = Remote.find_tvs(first_only=True)
remote = Remote(address)
2019-01-31 18:56:19 +01:00
key = input('Enter pairing key: ')
remote.set_pairing_key(key)
2014-07-04 00:39:52 +02:00
2019-01-31 18:10:45 +01:00
print("EXAMPLE: remote.send_command(INSERT_CMD_HERE, remote.session)")
import pdb; pdb.set_trace()