1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Souces switch for hyperion with favorites in Kodi

Discussion in 'Software Support' started by Timo76761, 30 December 2018.

  1. Timo76761

    Timo76761 New Member

    Messages:
    8
    Hardware:
    RPi3
    Hello, I have a Raspbery Pi 3 with OSMC and Hyperion, the Ambilight works, but what I would like to do, is to use the External Grabber as well as Kodi (internal grabber), would be a simple switchover of the source for Hyperion or simple switching between internal and external grabber.

    For this I have the instructions of PowerPi taken. In the favorites of Kodi 3 Buttons creates with which you can turn on then Grabber for Kodi, for external or just turn off Ambilight.

    The only button I've got up to now is the Ambilight quit button. Does anyone also run the Raspi with osmc and Hyperion and also uses the Favorites to switchen the sources or maybe has another ingenious solution.

    I have no prgramming skill.
    And sorry for the Bad Englisch.

    I would be very grateful for help.
    Thank you in advance
     
  2. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    70
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    What do you mean with this? You have given up on configuring a button for turning off ambilight?

    Cloud you please explain how exactly you accomplished this 3 buttons? Does this buttons trigger a command on the pi? If yes, which commands you have set up?

    Regarding another solution for this topic: Sadly I am not familiar with "classic " Hyperion since I joined this project with hyperion. ng but in ng I solved this as follows:
    1. internal Grabber to a priority lower than external grabber (eg. 890)
    2. external grabber priority higher than internal (eg. 900)
    3. Install Kodi Plugin and activate the kodi check in hypercon
    4. here you can specify that ambilight should be turned off If you are in the menu
    Now here is the point where I don't know if normal hyperion have a priority autodetection. If yes Hyperion will switch to priority 900 if kodi is in menu and will switch back to 890 if you play a video in kodi.
     
  3. Timo76761

    Timo76761 New Member

    Messages:
    8
    Hardware:
    RPi3
    I had a little succes.

    If i start the following script in ssh over putty:
    Code:
    #!/bin/sh
    sudo killall hyperiond
    sleep 1
    kodi-send -a "Notification(Hyperion Info,Ambilight Kodi aktiviert,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_kodi.jpg)"
    /usr/share/hyperion/bin/hyperiond /etc/hyperion/hyperion.config.kodi.json
    </dev/null >/dev/null 2>&1 &
    
    Then i see the following log in putty:
    the scip thas done what it should do (Hyperion is started in Kodi mode) but now it sems i am in the script, there is no more -> [email protected]:~$

    Is there a failure in the script?