2014-07-04 00:39:52 +02:00
|
|
|
from lg import Remote
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2014-07-04 10:27:23 +02:00
|
|
|
address = Remote.find_tvs(first_only=True)
|
|
|
|
remote = Remote(address)
|
|
|
|
|
|
|
|
key = raw_input('Enter pairing key: ')
|
|
|
|
remote.set_pairing_key(key)
|
2014-07-04 00:39:52 +02:00
|
|
|
|
|
|
|
remote.send_command(Remote.VOLUME_UP)
|