ich habe OSMC und bin den Guides gefolgt. Nun wollte ich auf meiner Harmony die Rot/Gelb/Grün Tasten für das Umschalten des Hyperion nutzen (Kodi, Grabber, Aus). So wie quasi beschrieben. Hier mal meine Dateien, die unmittelbar damit zu tun haben.
/home/osmc/.kodi/userdata/keymaps/remote.xml
Code: Alles auswählen
<keymap>
<global>
<remote>
<green>system.exec("/home/osmc/.kodi/userdata/hyperion_kodi_aktivieren.sh")</green>
<yellow>system.exec("/home/osmc/.kodi/userdata/hyperion_grabber_aktivieren.sh")</yellow>
<blue>system.exec("/home/osmc/.kodi/userdata/hyperion_beenden.sh")</blue>
</remote>
</global>
</keymap>
/home/osmc/.kodi/userdata/hyperion_beenden.sh
Code: Alles auswählen
#!/bin/sh
/opt/hyperion/bin/hyperion-remote --priority 50 --color black --duration 0
sleep 1
kodi-send -a "Notification(Hyperion Info,Ambilight wurde ausgeschaltet,3500,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_off.jpg)"
</dev/null >/dev/null 2>&1 &
/home/osmc/.kodi/userdata/hyperion_kodi_aktivieren.sh
Code: Alles auswählen
#!/bin/sh
killall hyperiond
sleep 1
kodi-send -a "Notification(Hyperion Info,Ambilight für Kodi aktiviert,3500,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_kodi.jpg)"
/opt/hyperion/bin/hyperiond /etc/hyperion.config.kodi.json
</dev/null >/dev/null 2>&1 &
/home/osmc/.kodi/userdata/hyperion_grabber_aktivieren.sh
Code: Alles auswählen
#!/bin/sh
killall hyperiond
sleep 1
kodi-send -a "Notification(Hyperion Info,Ambilight für externe Geräte aktiviert,3500,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_hdmi.jpg)"
/opt/hyperion/bin/hyperiond /etc/hyperion.config.grabber.json
</dev/null >/dev/null 2>&1 &
Das hier ergab mein ls -la => http://paste.debian.net/378976/
Und hier http://paste.debian.net/378978/ seht ihr den Inhalt meines Hyperion Ordners. Die hyperiond ist z.B. keine .sh Datei wie bei openelec!
Wenn ich zum testen in die Konsole einfach mal direkt den Befehl aus der hyperion_kodi_aktivieren.sh eingebe, kommt dann die Fehlermeldung (siehe unten)
also das hier eingegeben: /opt/hyperion/bin/hyperiond /etc/hyperion.config.kodi.json
Code: Alles auswählen
Application build time: Mar 6 2015 20:57:44
QCoreApplication initialised
Selected configuration file: /etc/hyperion.config.kodi.json
ColorTransform 'default' => [0; 93]
Device configuration:
{
"colorOrder" : "rgb",
"name" : "MyPi",
"output" : "/dev/spidev0.0",
"rate" : 250000,
"type" : "ws2801"
}
Black border threshold set to 0.01 (3)
Creating linear smoothing
Created linear-smoothing(interval_ms=40;settlingTime_ms=100;updateDelay=0
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Cold mood blobs
Effect loaded: Full color mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Warm mood blobs
Effect loaded: Police Lights Single
Effect loaded: Police Lights Solid
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
Effect loaded: X-Mas
Initializing Python interpreter
Hyperion created and initialised
run effect Rainbow swirl fast on channel 0
Boot sequence(Rainbow swirl fast) created and started
XBMC video checker created and started
Display opened with resolution: 1920x1080
Frame grabber created and started
terminate called after throwing an instance of 'std::runtime_error'
what(): Json server could not bind to port
Jemand ne Ahnung?