Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 11
  1. #1
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    148
    Thanks (gegeben)
    95
    Thanks (bekommen)
    75
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDankeAktivitäten

    Powerstate check possible ?

    Hi there,

    is it possible to check the powerstate of the box, with a script.
    i would like a check to see if the box is switched on, or in stand-by.

    grt Lucifer

    •   Alt Advertising

       

  2. #2
    Avatar von betacentauri
    Registriert seit
    15.06.2013
    Beiträge
    2.195
    Thanks (gegeben)
    270
    Thanks (bekommen)
    1298
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDankeAktivitäten
    Box 1:
    ET-9200
     
     
    Box 2:
    ET-10000
     
     
    Box 3:
    ET-8500
     
     
    Box 4:
    ET-8000
     
     
    Box 5:
    Gigablue Quad+
     
     
    ET-10000, ET-9200, ET-8000, Gigablue Quad+

  3. Thanks Lucifer bedankten sich
  4. #3
    Senior Mitglied
    Registriert seit
    31.01.2017
    Beiträge
    483
    Thanks (gegeben)
    8
    Thanks (bekommen)
    189
    Total Downloaded
    42,51 MB
    Total Downloaded
    42,51 MB
    ReceiverDankeAktivitäten
    Box 1:
    H7S
     
     
    Box 2:
    mipsel Box
     
     
    oder fertige Sache, powerstate.sh
    Code:
    if [ $(wget -qO - http://localhost/web/powerstate?|grep -c false 2>/dev/null) = 1 ];then
         echo powerstate: on
    else
         echo powerstate: standby
    fi

  5. Thanks Lucifer bedankten sich
  6. #4
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    148
    Thanks (gegeben)
    95
    Thanks (bekommen)
    75
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDankeAktivitäten
    Thanks for the replies, it's fixed.

    I needed it for my cable-zap script.
    one of my boxes has only a dvb-c tuner, and it's not used very much.
    if it's not used for more than 2 weeks, the smartcard doesn't work anymore and needs to be activated again. (zapping to specific channels and wait, or via internet)

    so i made a script that switches on the box (if it is in standby) and starts zapping to several channels (with a delay),
    and switch the box back to standby (if it was in standby before the script started)
    if it's finished, i can execute it once a week with cron manager.

    i made 2 test scripts. the delay between zapping is short, but it are only test scripts.
    the first one 'cable_zap_1a.sh' executes the zapping if the box is switched on (when someone is watching) and shows an information message on the screen, before the zapping starts.
    the second one 'cable_zap_1b.sh' aborts the zapping if the box is switched on, and shows an abort message on the screen.

    grt Lucifer


    p.s. how do i select/create a code-box in my posts ? now i only know how to attach fies to a post.
    Angehängte Dateien Angehängte Dateien

  7. #5
    Avatar von Papi2000
    Registriert seit
    20.04.2013
    Beiträge
    18.336
    Thanks (gegeben)
    3180
    Thanks (bekommen)
    5778
    Total Downloaded
    595,11 MB
    Total Downloaded
    595,11 MB
    ReceiverDankeAktivitäten
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    E4HD ZGemma H7/H9 SF8008
     
     
    Box 5:
    diverse andere . . .
     
     
    I would suggest to use EPG-Refresh daily, so you have the same done also sure, and the benefit is, all services have actual EPG too.
    Grüßle
    Ralf
    ------------------------------------------------------------------------------------------------------------------------
    Gigablue Quad 4K-multi,Quad+-SSC,Quad-SSC, andere Gigas, Astra 19.2E, UniCable & KabelBW, oATV/ teamBlue
    (weitere: DM900uhd,Vu+Duo,Technisat,Edision),PC-DVB-S/C/T,PCH-A110,Xtreamer,BDP5200
    UE32C5700,Philips65OLED865,Tosh40xyz
    ---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----



  8. #6
    Pike_Bishop
    Gast
    Hi Lucifer,

    p.s. how do i select/create a code-box in my posts ? now i only know how to attach fies to a post.
    follow my pictures;

    first you need the extended editor (click on button with red arrow),

    Powerstate check possible ?-codebox_one.jpg

    now the next picture looks as following,

    Powerstate check possible ?-codebox_two.jpg

    as you can see in the picture you have new buttons - and in the last picture click again on the button with red arrow,

    Powerstate check possible ?-codebox_three.jpg

    now you can put in your code betweeen ] and [/


    regards
    Pike
    Geändert von Pike_Bishop (02.07.2018 um 22:11 Uhr)

  9. Thanks sgs, Lucifer bedankten sich
  10. #7
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    148
    Thanks (gegeben)
    95
    Thanks (bekommen)
    75
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDankeAktivitäten
    Hi Pike,

    thanks for explaining, it's so simple if you know how to do it. just like scripts and python code.


    @Papi2000,

    I always use the plugin EPG-Importer to get EPG data, instead of EIT data.
    the reason i wrote the script, is to update the cable smartcard.
    do you mean that the smartcard is also updated if i import EIT data and activate 'EPG-Refresh daily' ?
    can you tell me how/if that works if the box is in standby ?

    grt Lucifer

  11. #8
    Avatar von Papi2000
    Registriert seit
    20.04.2013
    Beiträge
    18.336
    Thanks (gegeben)
    3180
    Thanks (bekommen)
    5778
    Total Downloaded
    595,11 MB
    Total Downloaded
    595,11 MB
    ReceiverDankeAktivitäten
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    E4HD ZGemma H7/H9 SF8008
     
     
    Box 5:
    diverse andere . . .
     
     
    EPG-Refresh zapps to a service of each transponder of the services in the defined bouquet to be checked.
    So it does nearly the same allready, what you wish to program manually and start manually.
    And yes. It uses only EIT from the services.
    Grüßle
    Ralf
    ------------------------------------------------------------------------------------------------------------------------
    Gigablue Quad 4K-multi,Quad+-SSC,Quad-SSC, andere Gigas, Astra 19.2E, UniCable & KabelBW, oATV/ teamBlue
    (weitere: DM900uhd,Vu+Duo,Technisat,Edision),PC-DVB-S/C/T,PCH-A110,Xtreamer,BDP5200
    UE32C5700,Philips65OLED865,Tosh40xyz
    ---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----



  12. Thanks Lucifer bedankten sich
  13. #9
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    148
    Thanks (gegeben)
    95
    Thanks (bekommen)
    75
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDankeAktivitäten
    @Papi2000,

    Thank you for the info, i didn't know it worked that way.
    but i wasn't planning to start my script manually, the plan was to run it once a week automatically with Cron Manager.

    anyway, i got an answer to my original question, i got my script working, and i learned something about the EIT features of my box.
    so i'm a little wiser now.

    grt Lucifer

  14. #10
    Pike_Bishop
    Gast
    Hi Lucifer,

    i made a link to your zap scripts in the "script-collection thread" here;
    https://www.opena.tv/skripte/13213-s...tml#post116838
    so that other users (if they want use them) can found they quickly.

    good job - thanks a lot.

    regards
    Pike
    Geändert von Pike_Bishop (04.07.2018 um 18:34 Uhr)


Seite 1 von 2 12 LetzteLetzte

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 19:51 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2021 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,56%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com