Switching Hyperion on/off via keyboard/remote?!

  • Next time just don't post images.


    Anyway, your keyboard.xml is wrong. Try this.

    XML
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <keymap>
    3. <global>
    4. <keyboard>
    5. <doublequote>XBMC.RunScript(/storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py)</doublequote>
    6. </keyboard>
    7. </global>
    8. </keymap>


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • Thank you at least I get a reaction from the key now. This is what the Log says. (switching Hyperion on & off still not working)


  • Now run in console and post the result what you get:

    Code
    1. ps
    2. python /storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py
    3. ps
    4. python /storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py
    5. ps


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • Seems you don't use hyperion from libreelec because there is no service file.


    Try this hyperion_switch.sh then

    Shell-Script
    1. #!/bin/sh
    2. if ps | grep -v grep | grep hyperiond > /dev/null
    3. then
    4. killall hyperiond
    5. else
    6. /storage/hyperion/bin/hyperiond.sh &
    7. fi


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • We're getting closer :) The script stops Hyperion but doesn't open it on keypress again.


  • How do you start hyperion now? From autostart? What is the command line there (if even)?

    Just replace line

    Code
    1. /storage/hyperion/bin/hyperiond.sh &

    with whatever you have to start hyperion.


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • Hyperion is automatically started when I start the rpi. All files I ever layed hands on were the ones in the zip.


    The hyperiond.sh is present in the folder of your code. I don't know why it does not start...

  • And how did you install hyperion? Because I think it is not libreelec addon but something else - because there is no service.


    Try using in file hyperion_switch.sh

    Code
    1. /bin/sh /storage/hyperion/bin/hyperiond.sh &


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • YES!!! Did it :))) I just added the directory to the config file into your link now it works like a charm! THANK YOU!!!


    Code
    1. /bin/sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json