Difference between revisions of "Install Bravia"
From xPL
(→Check the settings) |
(→Check the settings) |
||
Line 36: | Line 36: | ||
Edit <code>bravia_console.py</code> to match the script to your PSK: | Edit <code>bravia_console.py</code> to match the script to your PSK: | ||
self.psk = "0000" | self.psk = "0000" | ||
+ | |||
+ | Connect to the TV: | ||
+ | ./bravia_console.py | ||
+ | > show info | ||
+ | > show commands | ||
+ | > hdmi1 | ||
+ | > poweroff | ||
+ | > tvpower | ||
+ | |||
+ | Change input source: | ||
+ | ./bravia_console.py -c hdmi2 > /dev/null | ||
+ | ./bravia_console.py -c hdmi1 > /dev/null |
Revision as of 14:44, 3 November 2017
The Sony Bravia series are powered by Android.
Different python packages allow to control the TV from a PC:
Set-up the TV
Controlling the TV requires a mix of its
- IP address
- device name
- device id
- PIN
- Pre-Shared Key (PSK)
Check the settings
Install pip
if it isn't done yet
su which pip easy_install pip exit
Download Bravia Console.
cd /tmp/ cp ~/Downloads/bravia_console-master.zip . unzip bravia_console-master.zip sudo pip install requests ./bravia_console.py > exit
The console interface shows how to set-up the Pre-Shared Key (PSK).
Edit bravia_console.py
to match the script to your PSK:
self.psk = "0000"
Connect to the TV:
./bravia_console.py > show info > show commands > hdmi1 > poweroff > tvpower
Change input source:
./bravia_console.py -c hdmi2 > /dev/null ./bravia_console.py -c hdmi1 > /dev/null