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

RPi + Other Software JSON command to restart Hyperion

Discussion in 'Software Support' started by NeeeeB, 20 July 2020.

  1. NeeeeB

    NeeeeB Member

    Messages:
    59
    Hardware:
    RPi3
    Hi !!
    I'm trying to add some custom commands to Yatse in order to control Hyperion.
    I've had a look here :
    https://docs.hyperion-project.org/en/json/

    and so far I've managed to create custom commands to enable/disable Hyperion (with component ALL set to false/true).
    I'd like to know if there is a json command to restart/reboot Hyperion, I couldn't find one in the wiki.

    Many thanks !
     
  2. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    • Like Like x 1
  3. NeeeeB

    NeeeeB Member

    Messages:
    59
    Hardware:
    RPi3
    Thanks, it works but I get a "unexpected end of stream" message every Time I use it.
    This is the json I send : {"command":"config","subcommand":"reload"}

    Also, after a fresh install, every time I restart hyperion or my Pi, hyperion stucks on the rainbow swirl (Frozen), I have to disable/enable it for it to work.
    Any Idea ? Thx
     
  4. pho08

    pho08 New Member

    Messages:
    29
    i was struggling with this as well and ultimately gave up on it.

    if SSH is an option you can use the android app tasker (with autotools) to send ssh commands to your Pi.

    in combination with IFTTT and GoogleHome this is pretty comfy :)
     
    • Like Like x 1
  5. pho08

    pho08 New Member

    Messages:
    29
    btw this way you can automate a whole lot of things which i always had to fiddle around before , e.g.

    i have a PS4 and the RPI connected to my TV
    PS4 via external grabber
    RPI internal

    so i set up a script on the RPI to switch from (a)PS4 to RPI and another one to switch from (b)RPI to PS4
    (a) for instance will copy the current hyperion.db to hyperion.db.RPI and copy the (previously set up) hyperion.db.PS4 to hyperion.db
    afterwards it restarts hyperion

    --> not only can i switch grabber-inputs this way reliably (priority setting wasn't working right for me with multiple instances) but i can also set up different color/brightness/etc values for each environment (i.e. PS4 HDR vs RPI SDR)

    combine this with tasker and the option to switch to a different HDMI channel on your TV and you can tell google to "switch from RPI to PS4" and vice versa -- without hassle
     
    • Like Like x 1
  6. NeeeeB

    NeeeeB Member

    Messages:
    59
    Hardware:
    RPi3
    Well, @Paulchen-Panther 's advice works well, just that little "unexpected end of stream" message received by YATSE, but in the end hyperion restarts so that's okay for me.

    What's bothering me more is that freeze right after the rainbow swirl effect...it happens every time, even if I restart the Pi by unplug/plug it
     
  7. m-seker

    m-seker New Member

    Messages:
    3
    Hardware:
    RPi3, 32/64bit, +PhilipsHue
    • Like Like x 1
  8. NeeeeB

    NeeeeB Member

    Messages:
    59
    Hardware:
    RPi3
    I'll give more details about my setup tomorrow.
    Also, where do I find the logs ?
    Thx

    Back with the details :

    - Pi3 running latest LibreElec (9.2.3), fresh install with almost no addon except for Cinemavision, YeeMee and Hyperion-Control.
    - WS2812b leds ran by an Arduino Uno plugged by USB to the Pi.
    - Picture is captured by an Easycap UTV007 (RCA)
    - Pi is plugged in a Yamaha RX-V385, EasyCap gets pictures from a Scart-out on the (old) LCD TV.
    - That same setup worked as intended before reinstallation (no freeze), had to fully reinstall following a crash right after update to LibreElec 9.2.3

    I've just enabled the Debug logs, I will try a restart this evening, I had to do it yesterday and it took me 5 attempts to make it work...first time Hyperion lost my PAL setting for my USBCapture device, so colors were wrong.
    And then at every restart USBCapture was said to be enabled, but Leds did not light up...
    Finally after 5 attempts it worked.

    Also, where can I find help for Hyperion-control ? I don't understand how to set up some options, it looks like it does not work...
    Thx !
     
    Last edited: 22 July 2020
  9. m-seker

    m-seker New Member

    Messages:
    3
    Hardware:
    RPi3, 32/64bit, +PhilipsHue
    @NeeeeB I have an Arduino incoming around next week, let's try to reproduce once I get it.

    Edit : No idea if it is related to Arduino or not. Just increasing the chances to reproduce ...
     
    • Like Like x 1
  10. NeeeeB

    NeeeeB Member

    Messages:
    59
    Hardware:
    RPi3
    Thanks
     
  11. m-seker

    m-seker New Member

    Messages:
    3
    Hardware:
    RPi3, 32/64bit, +PhilipsHue
    Good news, I can reproduce it. I will look for the solution...
     
    • Like Like x 1