[solved] hyperion-remote: How to get LED status

  • Hi there!


    I'm using a small script to toggle my LEDs via hyperion-remote --enable|disable LEDDEVICE.

    It would be very useful and simplify things if there were a means to get at the current status of the LEDs. But it appears there isn't, or am I missing something.


    Should I open a feature request to add a --status [SMOOTHING, BLACKBORDER, FORWARDER, BOBLIGHTSERVER, GRABBER, V4L, LEDDEVICE] parameter to hyperion-remote? It could return "0" for "Off", "1" for "On", and "-1" for "Error".


    Thanks!

    • Offizieller Beitrag

    hyperion-remote -l, --list

    List server info and active effects with priority and duration

    regards pclin

    • Offizieller Beitrag

    Example:

    Code: LEDDEVICE true/false
    > hyperion-remote -l |grep LEDDEVICE -B 1
                "enabled": true,
                "name": "LEDDEVICE"
    Code
    > hyperion-remote -l |grep LEDDEVICE -B 1 |grep enabled
                "enabled": true,
    Code
    > hyperion-remote -l |grep LEDDEVICE -B 1 |grep true | cut -d: -f2 |cut -d, -f1
     true
    Code
    > LEDDEVICE=$(hyperion-remote -l |grep LEDDEVICE -B 1 |grep true | cut -d: -f2 |cut -d, -f1)
    > if [ $LEDDEVICE = 'true' ]; then echo "LED on"; else echo "LED off"; fi
    LED on
    
    > LEDDEVICE=$(hyperion-remote -l |grep LEDDEVICE -B 1 |grep true | cut -d: -f2 |cut -d, -f1); if [ $LEDDEVICE = 'true' ]; then echo "LED on"; else echo "LED off"; fi
    LED on
    Code: Flatbuffers Server
    > FLATBUFSERVER=$(hyperion-remote -l |grep FLATBUFSERVER -B 1 |grep true | cut -d: -f2 |cut -d, -f1); if [ $FLATBUFSERVER = 'true' ]; then echo "FLatbuffers Server on"; else echo "Flatbuffers Server off"; fi
    FLatbuffers Server on

    regards pclin

  • Thanks pclin, that works! :thumbup:


    If anyone is interested, I use this to toggle the LEDs. I use this bash script:

    I can invoke this with my phone using e.g. the app RasPi Check.

    I also created a submenu (Amber skin) to invoke: System.Exec(/storage/.hyperion/blinkenlights_toggle.sh).

    Paths need to be adjusted, of course.


    [I can't find a way to mark this thread "Solved". If an admin be so kind, thanks!]

  • pclin

    Hat den Titel des Themas von „hyperion-remote: How to get LED status“ zu „[solved] hyperion-remote: How to get LED status“ geändert.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!