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
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke

    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.359
    Thanks (gegeben)
    287
    Thanks (bekommen)
    1399
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDanke
    Box 1:
    hd51
     
     
    Box 2:
    vuduo4kse
     
     
    Box 3:
    und noch 20-30 andere
     
     
    hd51, vuduo4se,....

  3. Thanks Lucifer bedankten sich
  4. #3
    Senior Mitglied
    Registriert seit
    31.01.2017
    Beiträge
    691
    Thanks (gegeben)
    25
    Thanks (bekommen)
    297
    Total Downloaded
    44,00 MB
    Total Downloaded
    44,00 MB
    ReceiverDanke
    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
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    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
    24.824
    Thanks (gegeben)
    4679
    Thanks (bekommen)
    9077
    Total Downloaded
    596,61 MB
    Total Downloaded
    596,61 MB
    ReceiverDanke
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    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 Quad4K-mixed, UE4K, Trio4K, Quad_Plus-SSC, UE_Plus-SC, X2/X3-SC, UltraUE-SC, ...
    Astra 19.2E UniCable & KabelBW, oATV/teamBlue
    (u.a.: DM900uhd,Vu+Duo,ZGemma H9Twin & H7S), PC-DVB-S/C/T, Xtreamer, BDP5200, Philips 24PFS4022/12, 65OLED855/12,UE32C5700, RPi3+
    ---- 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 23:11 Uhr)

  9. Thanks sgs, Lucifer bedankten sich
  10. #7
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    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
    24.824
    Thanks (gegeben)
    4679
    Thanks (bekommen)
    9077
    Total Downloaded
    596,61 MB
    Total Downloaded
    596,61 MB
    ReceiverDanke
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    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 Quad4K-mixed, UE4K, Trio4K, Quad_Plus-SSC, UE_Plus-SC, X2/X3-SC, UltraUE-SC, ...
    Astra 19.2E UniCable & KabelBW, oATV/teamBlue
    (u.a.: DM900uhd,Vu+Duo,ZGemma H9Twin & H7S), PC-DVB-S/C/T, Xtreamer, BDP5200, Philips 24PFS4022/12, 65OLED855/12,UE32C5700, RPi3+
    ---- 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
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Themenstarter
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    @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 19: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 01:46 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,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com