Posts by Da Flex

    This is not an addon issue. If it were, then it would not be working on a windows setup. :D

    The programming of the functions are very different on Windows and Linux. Under the hood it's really something else.

    Quote

    Are you using LE? If so, does your Cast show up while watching a TV episode and pressing Info on your keyboard, or remote?

    Yes, but I only have DAZN and German TV streams. Not sure whether TVDB scraper works with it, but I'll do the test.

    PS: If you know a free and legal streaming add-on, which we can both test, let me know.

    I never noticed this before, but apparently the Asus H81M-K motherboard in my HTPC does not have an HDMI port for the on board GPU, only DVI and VGA, and without it I can't get sound in my setup.

    It's not part of the DVI standard, but many motherboards support sound over DVI. Check the EFI settings whether you have it.

    If yes, then maybe a DVI <-> HDMI adapter will do the trick. The Haswell platform is popular and has good Linux support - worth to try it.

    Quote
    Code
    (prefer) mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced

    Then despite of your thread title, 1080i is detected.

    The unusual point, compared to other users, is that you have a coloring issue. Have you already tried a different HDMI cable? If you buy a new one, look for the "HDMI High Speed" or "HDMI High Speed Premium" standard.

    PS: Ich weiss nicht, welche add-ons Du schon installiert hast. Für die verwendete Python-GPIO-Bibliothek braucht man das add-on "Raspberry Pi Tools".

    Evtl. kann es sein, dass autostart.sh und/oder volume_regulator.py mit chmod +x <Dateiname> ausführbar gemacht werden müssen.

    Du kannst autostart.sh testen, indem Du es direkt vom SSH-Terminal mit /storage/.config/autostart.sh aufrufst.

    der Befehl für Volume +- ist

    kodi-send --action="VolumeUp"

    kodi-send --action="VolumeDown"

    Das macht es einfacher. Dann fällt die umständliche Abfrage der bisherigen Lautstärke weg.

    Der Code müsste dann so aussehen (mit extra Button-Definition des Reglers zum Stumm schalten):

    Installation:

    - Ordner für das Python-Script anlegen: mkdir /storage/scripts

    - Script-Datei erstellen: > /storage/scripts/volume_regulator.py

    - Code einfügen und speichern

    - Python-Bibliothek KY040.py aus dem Start-Posting in den gleichen Ordner kopieren

    - Script beim Start von LE ausführen, dazu Inhalt von /storage/.config/autostart.sh wie folgt:

    Bash
    #!/bin/sh
    
    python /storage/scripts/volume_regulator.py

    Wie ist das mit Zeile 9-11 ?

    Das Kommando zum Setzen der Lautstärke erwartet eine Angabe in Prozent (relevant für Code-Zeilen 18 und 20).

    Beispiel: Lautstärke auf 80% mit Bildschirm-Ausgabe zur visuellen Bestätigung (Option "true"):

    Code
    kodi-send --action='SetVolume(80, true)'

    Es muss also vorher die bereits eingestellte Lautstärke in Prozent ermittelt werden. Das geht per JSON-Anfrage:

    Code
    curl  -H "Content-Type: application/json"  -d "{\"jsonrpc\": \"2.0\", \"method\": \"Application.GetProperties\", \"params\" : { \"properties\" : [ \"volume\", \"muted\" ] }, \"id\" : 1 }" http://libre-elec:8080/jsonrpc

    Ergebnis der JSON-Anfrage:

    Code
    {"id":1,"jsonrpc":"2.0","result":{"muted":false,"volume":80}}

    Problem: Das Ergebnis muss noch geparsed werden, um nur die Zahl 80 (%) zu bekommen.

    Verwende also statt Zeile 9-11 das genannte Kommando, und eine Regular Expression, mit der Du vom JSON-Ergebnis zum Prozentwert konvertierst. Dann den Step-Wert vom Regler addieren oder subtrahieren. Das Ergebnis wie gezeigt per kodi-send übergeben.

    Probiere die Kommandos im SSH-Terminal aus, bevor Du sie in Dein Python-Script übernimmst.

    Looks like the LE server was offline:

    Code
    2019-09-14 19:21:59.191 T:140409242113792   ERROR: ## LibreELEC Addon ## oe::load_url(http://releases.libreelec.tv/releases.json) ## ERROR: (URLError(error(110, 'Connection timed out'),))
    2019-09-14 19:21:59.191 T:140409242113792   ERROR: Traceback (most recent call last):
                                                  File "/var/lib/jenkins/LE/build2/workspace/Generic/build.LibreELEC-Generic.x86_64-9.0.2/LibreELEC-settings-37e206b712a46213522a567a408382f5f082502a/.install_pkg/usr/share/kodi/addons/service.libreelec.settings/oe.py", line 270, in load_url
                                                  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                                  File "/usr/lib/python2.7/urllib2.py", line 429, in open
                                                  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
                                                  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                                  File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
                                                  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
                                                URLError: <urlopen error [Errno 110] Connection timed out>

    You can switch add-on updates to manual as a workaround.