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

Kodi Addon Hyperion starts again after shutdown

Discussion in 'Software Support' started by Marciano, 7 January 2017.

  1. Marciano

    Marciano New Member

    Messages:
    23
    Hardware:
    32/64bit, +Arduino
    Hi,

    I'm running hyperion on libreelec 7.90.010 on Odroid C2 and after send a command "killall hyperiond" hyperion shutdown and after a couple of seconds it starts again?

    Is there a proper way to shutdown hyperion so the leds stay off?

    Thanks!
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    781
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    set them black... :)
     
  3. Marciano

    Marciano New Member

    Messages:
    23
    Hardware:
    32/64bit, +Arduino
    How and where i can do that?
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    655
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Hyperion-remote -c 000000
     
    • Like Like x 1
  5. Marciano

    Marciano New Member

    Messages:
    23
    Hardware:
    32/64bit, +Arduino
    Thank you i found out that hyperion won't start after killall hyperiond when i did

    systemctl disable service.hyperion.service

    I found a script on a tutorial for toggle hyperion on and off using my remote for my tv and it works now perfectly.

    I don't know if this is the right way to do it but it works finally.

    Here is the script that i found.

    Code:
    #!/bin/sh
    SERVICE='hyperiond'
    if ps | grep -v grep | grep $SERVICE > /dev/null
    then
    killall hyperiond
    curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Hyperion","message":"Disabled","image":"/storage/hyperion/hyperion.png"}}' http://192.168.178.57:8080/jsonrpc
    else
    /storage/.kodi/addons/service.hyperion/bin/hyperiond /storage/.kodi/userdata/addon_data/service.hyperion/hyperion.config.json</dev/null >/dev/null 2>&1 &
    curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Hyperion","message":"Enabled","image":"/storage/hyperion/hyperion.png"}}' http://192.168.178.57:8080/jsonrpc
    fi