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

RPi + Other Software Control Multiple Instances/Leds

Discussion in 'Software Support' started by koenig, 14 January 2021.

  1. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I'm a bit lost, I recently switched from Hyperion to HyperionNG, got all the Hardware running, in depth two esp01-ws2812b, ArduinNano(neobob)-TM1829 and RPI-lvlShift-ws2812b.

    Now i simply want to switch off all my lights (instances)
    my Workaround now is to switch through all instances via website and clear all effects separately.
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    2,009
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  3. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    sure, still no clue how to handle ALL instances.
    tell me first, is there a way to clear the instaces from commandline via hyperion-remote?
    i can clear every LED Hardware/Instance via "-I" option, but not all, can i?
     
    Last edited: 14 January 2021
  4. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    389
    Hardware:
    RPi3, 32/64bit
    If you would like to switch off whole Hyperion processing from Commandline, you can also use a SIGUSR.
    I need to look up the Signal number.
     
  5. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    389
    Hardware:
    RPi3, 32/64bit
    Suspend Hyperion

    kill -SIGUSR1 $(pidof hyperiond)

    Resume Hyperion

    kill -SIGUSR2 $(pidof hyperiond)
     
  6. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    389
    Hardware:
    RPi3, 32/64bit
    Please check, if this is what you were look for...
     
  7. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    No, Not the instance of hyperion service, but the instance of each led Hardware in hyperion.NG, sorry if i was misleading.
     
  8. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    389
    Hardware:
    RPi3, 32/64bit
    If you want to switch off all LEDs, why do you want to keep the grabbing and processing on? Just for my curiosity...
     
    • Like Like x 1
  9. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Cause I use it as "Ambient Lightning control", not for "ambilight"-clone. Grabber isn't used at all.
     
    Last edited: 15 January 2021
  10. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    i Use:
    Hyperion-remote -I [0-2] -clear
    To darken all LEDs ONE BY ONE, I need the command to clear all,
    Like in ol'hyperion -clear-all option.
    Btw,
    "sudo service hyperion* stop" would be my way to stop the service.
     
    Last edited: 15 January 2021
  11. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Workaround via Script:

    # called with &> /dev/null to supress shell messages
    #!/bin/bash
    hyperion-remote -I CaseLight --clearall
    hyperion-remote -I Lampe --clearall
    hyperion-remote -I Gaming --clearall
    hyperion-remote -I CapRegal --clearall
     
  12. koenig

    koenig New Member

    Messages:
    11
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino, +nodeMCU/ESP8266
    For explanation, there's no display plugged into raspberyPi, it is just a Lightning control/instance for my Leds, which gets controlled by fhem.

    Since yesterday I run hyperion-x11 on another system (libreelec) separately for grabbing, which works fine when called with lower Priority of 100-199, which clears all instances at once when screensaver is activated, which can be done by json, script or remote button.