Twitch for any smart TV, primarly for LG's webOS. It bundles PatrickRorth's Twitch.TV app.
- Connect to your Raspberry Pi and install nodejs and nginx
- Run
sudo -H pip install streamlink
to install streamlink, the app which will get us the m3u stream-urls - Edit the Twitch API key in
html/bundle.js
at line 6 and line 59 to match your Raspberries IP - Move the
html
directory to the nginx serving directory - Run
screen
and then runnode server/server.js
to start the serving webserver - Open the browser on your smart TV and browse to the IP of your Pi, enjoy Twitch on the big screen!
sudo nano /etc/systemd/system/[email protected]
Insert:
[Unit]
Description=Twitch
After=network-online.target
[Service]
Type=simple
User=%i
Restart=always
RestartSec=10
ExecStart=/usr/bin/node /home/pi/twitch/server.js
[Install]
WantedBy=multi-user.target
Afterwards run:
sudo systemctl --system daemon-reload
sudo systemctl enable twitch@pi