Difference between revisions of "Install Bravia"
From xPL
(→Set-up the TV) |
(→Check the settings) |
||
Line 23: | Line 23: | ||
which pip | which pip | ||
easy_install pip | easy_install pip | ||
+ | pip install requests | ||
exit | exit | ||
Download [https://github.com/darkosancanin/bravia_console Bravia Console]. | Download [https://github.com/darkosancanin/bravia_console Bravia Console]. | ||
− | + | su control | |
− | + | wget https://github.com/darkosancanin/bravia_console/archive/master.zip -O ~/Downloads/bravia_console.zip | |
− | + | unzip ~/Downloads/bravia_console.zip -d /tmp/ | |
− | + | chmod 775 /tmp/bravia_console-master/bravia_console.py | |
− | + | /tmp/bravia_console-master/bravia_console.py | |
> exit | > exit | ||
Revision as of 16:34, 15 March 2018
The Sony Bravia series are powered by Android.
Different python packages allow to control the TV from a PC:
- Bravia Console
- py-sony-bravia-remote, Python 3
- BraviaRC, Python 3
- sonybraviacontrol
- bravialib
Set-up the TV
Controlling the TV requires a mix of its:
- IP address
- device name
- device id
- PIN (entered at setup time)
- Pre-Shared Key (PSK)
Check the settings
Install pip
if it isn't done yet:
su which pip easy_install pip pip install requests exit
Download Bravia Console.
su control wget https://github.com/darkosancanin/bravia_console/archive/master.zip -O ~/Downloads/bravia_console.zip unzip ~/Downloads/bravia_console.zip -d /tmp/ chmod 775 /tmp/bravia_console-master/bravia_console.py /tmp/bravia_console-master/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