Rozsah:
Implementacia (prilozene skripty uvedene v texte dole):
- Tento skript vypina LG TV (r.v. 2011 - 2014, netcast os) pomocou TV boxu (tj. cez KODI power menu, TV box dialkovym ovladacom pripadne napajaciom tlacidlom na TV boxe)
- LG smart TV su zname nekvalitnou implementaciou HDMI CEC protokolu / kompatibilitou, minimalne pre modely < 2015 (nepodporuju vypinanie cez HDMI CEC command)
- LG TV >2011
- TV BOX a LG TV pripojene do stejnej siete
- Mecool KIII PRO (S912), CoreELEC 8.90
- Putty alebo podobny SSH napojenie
Implementacia (prilozene skripty uvedene v texte dole):
- Ulozit servisny subor shutdown_with_net.service do adresara /storage/.config/system.d/
- Ulozit vypinaci skript script shutdown_with_net.sh do adresara /storage/.config/
- Ulozit python skript lg_tv_control_lan.py do adresara /storage/.config/
- Otvor skript v editacnom nastroje (napr. nano) lg_tv_control_lan.py a nastav TV IP adresu a parovaci kluc
- Parovaci kluc mozes tiez najst spustenim prikazu sh shutdown_with_net.sh s TV ipdaresov a nahodnym parovacim klucom, TV vypise na obrazovke kluc ktory je potrebne zadat do python skriptu
- Nastav povoleni pre subory, chmod 755 shutdown_with_net.sh, chmod 755 lg_tv_control_lan.py, chmod 755 shutdown_with_net.service
- Spust prikaz systemctl enable shutdown_with_net.service
- Restartni TV BOX
- https://harizanov.com/2013/12/control-lg...pberry-pi/
- https://www.domoticz.com/wiki/LG_2012_smart_tv
- http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.references.book%2Fhtml%2FUDAP%2FUDAP%2FAnnex+A+Table+of+virtual+key+codes+on+remote+Controller.htm
- https://wiki.libreelec.tv/autostart.sh
- https://github.com/CoreELEC/CoreELEC/blob/master/packages/mediacenter/kodi/system.d/kodi-poweroff.service
- https://forum.kodi.tv/showthread.php?tid=317441