Posts by gadio

    Thanks, s3n0! I tried the script, but still have the same problem - the receiver's clock go ahead with 2 hours after every reboot.

    I think that the problem may be is because oscam starts before enigma 2? Is there any oscam settings for the clock time?

    Is it possible oscam to start automagically after boot or reboot?

    I tried with crontab:


    Code
    @reboot oscam -b

    , but after reboot receiver's clock is two hours ahead, than actual time, and after every reboot two hours are added.

    I use OpenATV 6.2 if it's matter.

    For me it's enough to know if some channel is running or not. Anyway I also made and this script to check stb status and turn it off or on:


    Powerstate can be changed to deep standby or reboot enigma or receiver.

    Is it possible to change channels from the command line?


    Yes. You can do this with following command:


    wget -q -O - http://127.0.0.1/web/zap?sRef=1:0:1:3EB:1:1:1862FEF:0:0:0:


    were 1:0:1:3EB:1:1:1862FEF:0:0:0: is the channel reference. You can see them in userbouquets which are at /etc/enigma2 folder.


    If you have password protection add it like this:


    wget -q -O - http://user:password@127.0.0.1/web/zap?sRef=1:0:1:3EB:1:1:1862FEF:0:0:0:


    For more info see this page:

    https://wiki.tuxbox-neutrino.org/wiki/Enigma2:WebInterface


    I use this function as alias (placed in .profile file in home directory) to see whether receiver is sleeping or which channel is running.


    function channel () { wget -O - -q http://user:pass@127.0.0.1/web/getcurrent | grep "\(<\|</\)e2servicename" | tr -d '\n' | sed "s/.*<e2servicename>\(.*\)<\/e2servicename.*/\\1\n/"; }


    So when I write channel in telnet it shows me empty space if receiver is sleeping or the channel name if it is on.

    First you need to install this packages on both receivers :


    Code
     opkg install openssh-keygen openssh-ssh openssh-scp


    (openssh-keygen is needed only on the receiver from which will be copied files)


    Then you have to create ssh-key


    Code
    ssh-keygen

    just press enter every time system asking you and at the end you have to see something like this:



    Now you have to copy this key to the other receiver with this command (just replace dest.stb.ip with the ip of the receiver which you will copy the key):


    Quote


    cat ~/.ssh/id_rsa.pub | ssh root@dest.stb.ip "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"


    You'll be asked to enter the root password on the other receiver. And that's it. Now you can copy things between the receivers with scp command, like picons, bouqetlist, lamedb and etc. You can automate this with a crontab manager.


    For example to copy picons between the receivers, just type (replace dest.stp.ip with the ip of the receiver you'll copy the picons):


    Quote


    scp /usr/share/enigma2/picon/*.png root@dest.stb.ip:/usr/share/enigma2/picon/

    The path to the picons folder may be different, you can find it with this command:


    Quote


    find / -name picon


    I personally use it to receive the ip address form one of the receivers to the other with this script, putted on crontab to send it daily:


    Bash
    #!/bin/bash
    
    wget http://ipecho.net/plain -O - -q  > osninoip.txt ;
    
    scp /home/root/osninoip.txt root@dest.stb.ip:/home/root/osninoip.txt

    I turned off https in openwebif and it start to ask me for username and password. But now, every time I change the channel, I have to enter username and pass again. I can put it like this for every channel in playlist:



    http://username:password@192.168.0.101:8001/1:0:1:3EB:1:1:1862FEF:0:0:0:


    but I don't think it's safe.


    For now I'll close port forwarding for 8001, and I'll open it just when I want to watch tv, and then will close it again.

    When I change the outside port on the router, I can't use the playlist taken from OpenWebIf. I have to manually change the port in the playlist for all channels.

    Is there any way to put password prompt for the stream from that port - 8001?


    I saw that it isn't installed streamproxy on the reciever. Do I have to install it?


    I found the command to see who is using this port:


    Quote

    netstat -tn


    Is there any way to block it?

    I forwarded port 8001 to my public IP, so I can watch tv when I'm outside home, but someone else also start to watch it. How can I found how is watching, and how to stop it?

    I enabled on OpenWebif settings password identification for stream, but when I start my old playlist it still starts without asking me for password.