Ergebnis 1 bis 10 von 11
Thema: Powerstate check possible ?
-
01.07.2018, 23:58 #1
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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
-
Advertising
-
02.07.2018, 06:16 #2
-
Danke - 1 ThanksLucifer bedankten sich
-
02.07.2018, 07:23 #3
- Registriert seit
- 31.01.2017
- Beiträge
- 694
- Thanks (gegeben)
- 25
- Thanks (bekommen)
- 297
- Total Downloaded
- 44,00 MB
- Total Downloaded
- 44,00 MB
Box 1:H7SBox 2:mipsel Boxoder 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
-
Danke - 1 ThanksLucifer bedankten sich
-
02.07.2018, 14:59 #4
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
ThemenstarterThanks 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.
-
02.07.2018, 17:13 #5
- Registriert seit
- 20.04.2013
- Beiträge
- 24.938
- Thanks (gegeben)
- 4700
- Thanks (bekommen)
- 9129
- Total Downloaded
- 596,61 MB
- Total Downloaded
- 596,61 MB
Box 1:GB Q4K-SC / UE4K-SC / UE4K-CBox 2:GigaBlue Q-SSC / Q+-SSCBox 3:DM900uhd-SS / Vu+DuoBox 4:ZGemma H7/H9 SF8008Box 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! ----
-
02.07.2018, 22:08 #6Pike_BishopGast
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.
first you need the extended editor (click on button with red arrow),
now the next picture looks as following,
as you can see in the picture you have new buttons - and in the last picture click again on the button with red arrow,
now you can put in your code betweeen ] and [/
regards
PikeGeändert von Pike_Bishop (02.07.2018 um 22:11 Uhr)
-
Danke - 2 Thanks
-
03.07.2018, 18:56 #7
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
ThemenstarterHi 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
-
03.07.2018, 19:39 #8
- Registriert seit
- 20.04.2013
- Beiträge
- 24.938
- Thanks (gegeben)
- 4700
- Thanks (bekommen)
- 9129
- Total Downloaded
- 596,61 MB
- Total Downloaded
- 596,61 MB
Box 1:GB Q4K-SC / UE4K-SC / UE4K-CBox 2:GigaBlue Q-SSC / Q+-SSCBox 3:DM900uhd-SS / Vu+DuoBox 4:ZGemma H7/H9 SF8008Box 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! ----
-
Danke - 1 ThanksLucifer bedankten sich
-
04.07.2018, 10:46 #9
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
Themenstarter@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
-
04.07.2018, 18:23 #10Pike_BishopGast
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
PikeGeändert von Pike_Bishop (04.07.2018 um 18:34 Uhr)
Lesezeichen