• Vítejte na XBMC-Kodi.cz
  • Česko-slovenská komunita fanoušků XBMC/Kodi
Vítejte návštevníku! Přihlášení Registrace


Hodnocení tématu:
  • 0 Hlas(ů) - 0 Průměr
  • 1
  • 2
  • 3
  • 4
  • 5
HowTo: LG TV power off via KODI power off
#1
Posielam navod ako nastavit vypinanie LG TV sucasne s KODI TV boxom. Sa ospravedlnujem za anglictinu, ale nechcelo sa mi to prekladat, posielam aj link z CoreELEC fora kde som umiestnil povodny navod v anglictine, https://discourse.coreelec.org/t/howto-l...r-off/1064
 
Scope:
  • This script will turn off LG TV (from 2011 to 2015+) when you turn off the TV box (via KODI power menu, remote controller or button on the box).
  • LG smart TVs are very known for their very bad managed HDMI CEC compatibility, at least old TV model <2015 (does not support power off via CEC command)

Requirements:
  • LG TV >2011
  • TV needs to be connected to the same network as TV BOX
  • Mecool KIII PRO (S912), CoreELEC 8.90.5
  • Putty or similar SSH software

Integration process (scripts as an attachment):

  1. Save service file shutdown_with_net.service to folder /storage/.config/system.d/
  2. Put your shutdown script shutdown_with_net.sh to folder /storage/.config/
  3. Put your python script lg_tv_control_lan.py to folder /storage/.config/
  4. Edit lg_tv_control_lan.py and set TV ip address and paring key
  5. Pairing key can be find out also by running script sh shutdown_with_net.sh with TV IP address and random key, TV will display pairing key which needs to be updated to python script
  6. Set permissions for the service and scripts, chmod 755 shutdown_with_net.sh and chmod 755 lg_tv_control_lan.py and chmod 755 shutdown_with_net.service
  7. Start the service systemctl enable shutdown_with_net.service
  8. Restart the box


Přiložené soubory
.zip   scripts.zip (Velikost: 1,36 KB / Stažení: 9)
 
Citovat
#2
Za prvé Skvělé, žes to sem dal pro majitele zmíněného HW.
Za druhé škoda, že se ti to nechtělo okomentovat překladem.
Za třetí takový návod patří do tématu Tipy, triky, návody http://www.xbmc-kodi.cz/forum-tipy-triky-a-navody
Kodi 20 -LibreELEC/LinuxMint/Win/Android -RPi4/3/2/ IntelPC/xMiStick4K -Router 1Gbit 2.4+5GHz
 
Citovat
#3
Prelozim, prehodim do tipy / triky casti a nahlasim poziadavku o zmazanie
 
Citovat
  


Přejít na fórum:


Prochází: 1 host(ů)