Nasledne som sa tu na fore docital ze ten kluc vydrzi na karte 16,5 hodiny. Takze som zacal zhanat nejake info a vysvetlenia ohladom ovladania primaca sh scriptami z servera RP3. Tu som od peter54 dostal prve vysvetlenia , ktore ma nasmerovali na: https://github.com/s3n0/e2scripts/blob/ ... refresh.sh kde som od uzivatela @s3n0 /tymto mu dakujem/ script na refresh emm oscam. Pouzil som cast tohoto scriptu a nasledne som urobil v nom upravu lebo mam nestandartnu situlaciu mam 2 karty SKylink - jednu s SK lokalizaciou a jednu s CZ lokalizaciou. Cize urobil som services pre SK kartu a pre CZ kartu. Na rp3 bezi OSCAm 2 krat, SK lokalizacia na porte 8888, CZ lokalizacia na 9999.
Princip je ale v tom / k tomu ma logicky doviedol peter54/ ze na server RB3 tu emm posiela klient lebo je obsiahnuty v signali poskytovatela. tu je script, ktory pouzivam :
Kód: Vybrat vše
#### USER CONFIGURATION:
WEBIF_ENIGMA="http://192.168.1.187:1313"
WEBIF_OSCAM="http://192.168.1.187:8888"
EMM_AWAITING="2m"
SRC_MARKIZA="1:0:19:3731:C8E:3:EB0000:0:0:0:"
SRC_CT1="1:0:1:1F41:CA1:3:EB0000:0:0:0:"
LOG_FILE="/root/log_oscam.log"
LOG_MAXSIZE=25000
AU_AWAITING="30s"
USERNAME="localcard"
#### function to check the Standby (e2/OpenWebif power-state)
is_standby(){
[ "$(wget -q -O - $WEBIF_ENIGMA/web/powerstate | sed -n 's:.*<e2instandby>\(.*\)</e2instandby>.*:\1:p')" = "True" ]
}
#### reduction the log file size, if neccessary (delete first 20 lines)
if [ -f "$LOG_FILE" ] && [ $(wc -c < "$LOG_FILE") -gt $LOG_MAXSIZE ]; then sed -i -e 1,20d "$LOG_FILE"; fi
#### if Enigma is not in standby, exit the script
if ! is_standby; then echo "$(date '+%Y-%m-%d %H:%M:%S'): Enigma2 is not in Standby. Script canceled." >> $LOG_FILE; exit 0; fi
#### - nastavenie AU klienta na au=1 /defaultne mam v primaci nastavene na au=0
curl -s -o /dev/null "$WEBIF_OSCAM/user_edit.html?user=$USERNAME&au=1&action=Save"
sleep $AU_AWAITING
for program in $SRC_MARKIZA $SRC_CT1; do
wget -q -O - "$WEBIF_ENIGMA/web/zap?sRef=$program" >> /dev/null 2>&1
echo "$(date '+%Y-%m-%d %H:%M:%S'): Start channel descrambling - $program + waiting for EMM arrival for $EMM_AWAITING time." >> $LOG_FILE
sleep $EMM_AWAITING
done
#### - nastavenie AU klienta spat na au=0
curl -s -o /dev/null "$WEBIF_OSCAM/user_edit.html?user=$USERNAME&au=0&action=Save"
sleep $AU_AWAITING
#### at the end of script execution we have to recheck the standby mode
#### if a user has accidentally switched on a satellite receiver until the script was waiting for EMMs write
if ! is_standby
then
echo "$(date '+%Y-%m-%d %H:%M:%S'): Enigma2 has been awakened by user's intervention ? using the remote control ?. Script canceled." >> $LOG_FILE
exit 0
else
echo "$(date '+%Y-%m-%d %H:%M:%S'): Stop channel descrambling." >> $LOG_FILE
wget -q -O - "$WEBIF_ENIGMA/web/powerstate?newstate=5" > /dev/null 2>&1
echo "$(date '+%Y-%m-%d %H:%M:%S'): Set-top-box has been switched to Standby" >> $LOG_FILE
fi
exit 0
Okrem tycto prikazov som objavil aj ako prepinat kanaly a podobne. Neviem sa vsak vysomarit z tych stavov powerstate, resp. nikde som nenasiel ich popis. Takze som chcel zalozit toto vlakno aj na to sk by vy znalejsi ste sem volaco dali mohli by sme sa my ostatny cosi naucit.
Este k scriptu, je urobeny tak ze moze obsahovat aj viac instrukcii na spustenie streamov na update emm. Cize aj viac karie ako 2. Staci len doplnit do konfiguracie a dopisat do cyklu. Povodne bol script pre enigmu ale ja ho pustam na prismcube ruby na image confluence takze tie IP a porty na to.
Tak hadam sa to tu chyti....
mna by tiez zaujimalo kde sa da zistit:
Kód: Vybrat vše
Service Reference Code = 1:0:19:3731:C8E:3:EB0000:0:0:0: