Skripte für Aktivieren/Deaktivieren

  • Hallo miteinander,


    ich benötige Hilfe zur Erstellung von 2 Skripten.

    Ich hatte früher mit Hyperiion Classic u.a. ein Skript zum beenden von Hyperion.


    Kann mir jemand helfen das für Hyperion NG (Pi 4) anzupassen und auch sagen, wo ich das ablegen muss?


    Zum Beenden war es das hier:

    Bash
    #!/bin/sh
    /storage/hyperion/scripts/hyperion-remote --priority 50 --color black --duration 0
    sleep 1
    kodi-send -a "Notification(Hyperion Info,Ambilight wurde ausgeschaltet,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_off.jpg)"
    /dev/null 2>&1 &


    Danke im Voraus!

  • hyperion-remote --help


    Dokumentation


    gruß 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

    Einmal editiert, zuletzt von pclin ()

  • Der Link zur Dokumentation ist richtig und bei hyperion-remote --help im Terminal wirst du auch fündig.


    gruß 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

  • Dein bash Script in Post #1 funktioniert dann auch nicht?

    Da verwendest du ja auch hyperion-remote...


    gruß 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

    Einmal editiert, zuletzt von pclin ()

  • Normalerweise ist nach der Installation die links zu hyperiond, hyperion-remote usw. vorhanden, installiert wird es je nach System.


    hyperion-remote -a IP --on

    hyperion-remote -a IP --off


    gruß 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

    • Offizieller Beitrag

    Johnny Auf einem Linux System (z.B. auf Deinem rpi4) kann Du über folgende Kommandos alle LED-Instanzen gleichzeitig einfach ab oder anschalten:


    Abschalten:

    pkill -USR1 -x hyperiond


    Anschalten:

    pkill -USR2 -x hyperiond

    Beim Abschalten, siehst Du auch im UI, dass die Komponenten Aus sind:

  • Gar nichts, im Log wird gar nichts vermerkt.


    Code
    2022-02-12T18:19:44.534Z [ HYPERION] (DEBUG) (Hyperion.cpp:582:handleSourceAvailability()) new source available -> Resume output processing and switch LED-Device on
    2022-02-12T18:24:09.020Z [ WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.0.176
    2022-02-12T18:24:12.740Z [ WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.0.176' switch to Hyperion instance 0
    2022-02-12T18:24:15.548Z [ WEBSOCKET] (DEBUG) (JsonAPI.cpp:1090:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.0.176

    Ich logge mich per Terminal auf Libreelec ein und gebe das ein:


    LibreELEC (official): 10.0.1 (RPi4.arm)

    LibreELEC:~ # pkill -USR1 -x hyperiond

  • Code: pkill -USR1 -x hyperiond
    2022-02-12T19:14:30.012Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:55:handleCompStateChangeRequest()) Disable Hyperion, store current component states
    2022-02-12T19:14:30.013Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Hyperion: disabled
    2022-02-12T19:14:30.015Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Smoothing: disabled
    2022-02-12T19:14:30.016Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Blackborder detector: disabled
    2022-02-12T19:14:30.016Z [ LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:245:powerOff()) Restore synchronisation with other WLED devices
    2022-02-12T19:14:30.019Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
    Code: pkill -USR2 -x hyperiond
    2022-02-12T19:15:04.897Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:72:handleCompStateChangeRequest()) Enable Hyperion, recover previous component states
    2022-02-12T19:15:04.899Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Hyperion: enabled
    2022-02-12T19:15:04.899Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Smoothing: enabled
    2022-02-12T19:15:04.900Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Blackborder detector: enabled
    2022-02-12T19:15:04.920Z [ COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
    2022-02-12T19:15:04.921Z [ LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:211:powerOn()) Disable synchronisation with other WLED devices

    gruß 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

    • Offizieller Beitrag

    Aktivieren

    kill -SIGUSR2 `pidof hyperiond`


    Ersetze einfach die hyperion-remote Zeile in Deinem anderen Script.

    Wo das Script hin muss hängt start davon ab, wie Du es starten willst…

Jetzt mitmachen!

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