Flirc keymaps für Hyperion Ambilight

  • Hi,
    nachdem ich schon viele stunden versucht habe die funktionen zur Ambilght auf Tasten der FB zu legen suche ich hier mal nach hilfe.
    Habe folgende keymaps.xml in /storage/.kodi/userdata/keymaps erstellt:

    <[definition=10,0][definition='3','0']keymap[/definition][/definition]>
    <global>
    <keyboard>
    <key id="zero">system.exec("/storage/.kodi/userdata/hyperion_kodi_aktivieren.sh")</key>
    <key id="one">system.exec("/storage/.kodi/userdata/hyperion_grabber_aktivieren.sh")</key>
    <key id="two">system.exec("/storage/.kodi/userdata/hyperion_beenden.sh")</key>
    <key id="three">system.exec("/storage/.kodi/userdata/hyperion_toggle_switch.sh")</key>
    </keyboard>
    </global>
    </[definition=10,0][definition='3','0']keymap[/definition][/definition]>

    leider passiert gar nichts und ich fürchte die Datei wird gar nicht ausgelesen.
    Normale Programmierung ohne mapping funktioniert problemlos.


    wenn ich die Befehle einzeln eingebe kommt kein Fehler:
    LibreELEC:~ # /storage/.kodi/userdata/hyperion_kodi_aktivieren.sh

    killall: hyperiond: no process killed
    Sending: {'content': 'Notification(Hyperion Info,Ambilight f\xc3\xbcr Kodi aktiviert,7000,http://powerpi.de/wp-content/upl…_thumb_kodi.jpg)', 'type': 'action'}
    Traceback (most recent call last):
    File "/usr/bin/kodi-send", line 103, in <module>
    main()
    File "/usr/bin/kodi-send", line 94, in main
    packet = PacketACTION(actionmessage=action['content'], actiontype=ACTION_BUTTON)
    File "/usr/lib/python2.7/site-packages/kodi/xbmcclient.py", line 465, in __init__
    self.append_payload( format_string(actionmessage) )
    File "/usr/lib/python2.7/site-packages/kodi/xbmcclient.py", line 104, in format_string
    return msg.encode() + b"\0"
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 38: ordinal not in range(128)
    Hyperion Ambilight Deamon (2917)
    Version : V1.03.5 (GitHub-66bef6b/fb413cd-1566231780
    Build Time: Aug 25 2019 10:39:29
    INFO: Selected configuration file: /storage/.config/hyperion.config.kodi.json
    HYPERION INFO: ColorTransform 'default' => [0; 137]
    HYPERION INFO: ColorCorrection 'default' => [0; 137]
    HYPERION INFO: ColorAdjustment 'default' => [0; 137]
    LEDDEVICE INFO: configuration:
    {
    "colorOrder" : "rgb",
    "name" : "MyHyperionConfig",
    "output" : "/dev/spidev0.0",
    "rate" : 1000000,
    "type" : "ws2801"
    }


    HYPERION INFO: Json forward to 127.0.0.1:19446
    HYPERION INFO: Proto forward to 127.0.0.1:19447
    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0.01 (3)
    BLACKBORDER INFO: mode:default
    started
    INFO: Kodi checker created and started
    INFO: Json server created and started on port 19444
    PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19447
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    BLACKBORDER INFO: threshold set to 0.01 (3)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    KODICHECK INFO: Kodi Connected
    KODICHECK INFO: switching to OFF mode
    EFFECTENGINE INFO: effect finished

    Im [definition='1','0']log[/definition] erscheint beim drücken der Taste"1"

    2020-12-12 14:50:41.615 T:3001021296 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
    2020-12-12 14:50:41.615 T:2463744880 DEBUG: Thread Timer start, auto delete: false
    2020-12-12 14:50:41.643 T:3011095008 DEBUG: Keyboard: scancode: 0x02, sym: 0x0031, unicode: 0x0031, modifier: 0x0
    2020-12-12 14:50:41.644 T:3011095008 DEBUG: HandleKey: one (0xf031) pressed, action is Number1
    2020-12-12 14:50:42.031 T:2463744880 DEBUG: Thread Timer 2463744880 terminating
    2020-12-12 14:50:42.043 T:3011095008 DEBUG: Keyboard: scancode: 0x02, sym: 0x0031, unicode: 0x0031, modifier: 0x0


    Hoffe irgend jemand hat eine Idee wie ich weiter machen soll. Danke !

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!