Seite 2 von 2 ErsteErste 12
Ergebnis 11 bis 11 von 11
  1. #11
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.460
    Thanks (gegeben)
    91
    Thanks (bekommen)
    418
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    This is old TOPIC but I came across it today.

    Channel switching is also possible with direct SRC (Service Reference Code).
    Code:
    #!/bin/sh
    sRefCode=1:0:19:13B4:C95:3:EB0000:0:0:0:
    wget -q -O - "http://127.0.0.1/web/zap?sRef=$sRefCode" > /dev/null 2>&1
    The disadvantage of SRC switching is that the provider can occasionally change the data for its station (for example, frequency or transponder) and then, of course, the SRC changes.
    The disadvantage of switching over the remote control is that the user can not reorder the list of user channels (userbouquet files).

    To use the remote control unit via OpenWebif, I recently created a dedicated function for bash script. It's not perfect, but it works:
    Code:
    #!/bin/sh
    
    #### -usage:     webif_rc "keycode:pause:repeat" "keycode:pause:repeat" "keycode:pause:repeat" . . . .
    
    webif_rc()
    {
        for button in "$@"                 #    in ${arr[@]}
        do
    	    key=$(  echo $button | cut -f1 -d ':'  )
    	    tim=$(  echo $button | cut -f2 -d ':' | cut -f1 -d ':'  )
    	    rep=$(  echo $button | cut -f3 -d ':' | cut -f1 -d ':'  )
    	    # echo  ---- button=$button ---- key=$key -- pause=$tim -- repeat=$rep
    
    	    until [ $rep == "0" ]
    	    do
    	        wget -q -O - http://127.0.0.1/web/remotecontrol?command=$key > /dev/null 2>&1
    	        sleep 0.1s
    	        sleep $tim
    	        rep=$[$rep-1]
    	    done
        done
    }
    
    
    
    #### -example:
    webif_rc "364:2.0:1" "158:0.1:1"  "108:0.5:4" "352:0.8:1" "108:0.3:1" "352:2.0:1" "103:0.5:2" "352:0.5:1"
    ####      FAV         Recall       DOWN x 4    OK          DOWN        OK          UP x 2      OK
    ////////////// EDIT :

    The answer, for the first question is here:
    Code:
    #!/bin/sh
    
    #### a simple function to check the Standby mode (e2/OpenWebif power-state)
    
    function is_standby() {
    	[ "$(wget -q -O - http://127.0.0.1/web/powerstate | grep '</e2instandby>' | cut -f 1)" == "true" ]
    }
    
    
    if is_standby ; then
        echo `date '+%Y-%m-%d %H:%M:%S'`" Enigma2 is in Standby. Enigma2 is sleeping."
    else
        echo `date '+%Y-%m-%d %H:%M:%S'`" Enigma2 is not in Standby."
    fi

  2. Thanks - bedankten sich
    •   Alt Advertising

       


Seite 2 von 2 ErsteErste 12

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 20:42 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,56%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com