Thanks Thanks:  0
Ergebnis 1 bis 3 von 3
  1. #1
    Mitglied
    Registriert seit
    01.11.2021
    Beiträge
    61
    Thanks (gegeben)
    14
    Thanks (bekommen)
    5
    Total Downloaded
    67,5 KB
    Total Downloaded
    67,5 KB
    ReceiverDanke
    Box 1:
    Vu+DUO4KSE
     
     
    Box 2:
    Zgemma H9.2HSE
     
     
    Box 3:
    Zgemma H9.2HSE
     
     

    Script per per mandare in deep std-by

    Ciao a tutti, vorrei mettere in CRON uno script che se il decoder non è acceso allora deve andare in shutdown.

    L'idea è circa questa suggerita da GPCHAT:

    Code:
    #!/bin/sh
     
    # Controlla lo stato del decoder
    if grep -q 'running' /proc/stb/power/state; then
        echo "Il decoder è acceso. Non faccio nulla."
    else
        echo "Il decoder è spento. Eseguo lo shutdown."
        shutdown - now
        init 0
    fi
    Il problema è che non trovo il path corretto dove l'informazine dello stato del decoder è salvato.
    Sotto /proc/stb non trovo /power/state.
    Qualcuno sa dove è salvata l'informazione ?
    Geändert von miazza (15.05.2024 um 10:31 Uhr)
    Decoder 1: Vu+ DUO4KSE - OpenATV 7.2
    Decoder 2: ZGEMMA 9.2 HSE - OpenATV 7.2 (slot 4) - OpenATV 6.4 (slot 1) - OpenATV 7 (slot 2) - OpenATV 7.1 (slot 3)

    •   Alt Advertising

       

  2. #2
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.502
    Thanks (gegeben)
    659
    Thanks (bekommen)
    1716
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    maybe that helps;

    [Info] Enigma2 Shell-Befehle

    have a look in this link under WEBIF

    am i right you want to shutdown your box if your box is in standby ?
    if yes, you didn't need a script for that you can also use a powertimer.


    regards
    Pike
    Geändert von Pike_Bishop (15.05.2024 um 19:56 Uhr)

  3. #3
    Mitglied
    Registriert seit
    01.11.2021
    Beiträge
    61
    Thanks (gegeben)
    14
    Thanks (bekommen)
    5
    Themenstarter
    Total Downloaded
    67,5 KB
    Total Downloaded
    67,5 KB
    ReceiverDanke
    Box 1:
    Vu+DUO4KSE
     
     
    Box 2:
    Zgemma H9.2HSE
     
     
    Box 3:
    Zgemma H9.2HSE
     
     
    Yes, the wget web-if is an option but I would prefer to see where the information is stored in Enigma2.
    Also the webif should take the info from somewhere.
    Decoder 1: Vu+ DUO4KSE - OpenATV 7.2
    Decoder 2: ZGEMMA 9.2 HSE - OpenATV 7.2 (slot 4) - OpenATV 6.4 (slot 1) - OpenATV 7 (slot 2) - OpenATV 7.1 (slot 3)


Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:41 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,88%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com