[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

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

    6 Mal editiert, zuletzt von 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!]

    --
    Interested in a free, open source OS?
    Get Haiku at https://www.haiku-os.org

    Einmal editiert, zuletzt von humdinger () aus folgendem Grund: Merged a post created by humdinger into this post.

  • 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!