Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

Continuous zapping through channels

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • aplok
    replied
    Re: Continuous zapping through channels

    so, the remote control send a msg to enigma when hitting a key, as

    (e1): --http://ip/cgi-bin/rc?_code_
    (e2): --http://dreambox/web/remotecontrol?command=_code_


    where _code_ is a key code, like 407 as an example

    this _code_ is switched by enigma to the adhoc subprocess (like next channel of the list, as an example)

    all this show us how the script gains access to the tuner ressources (as next channel subprocess) via e1/2:
    curl --http://127.0.0.1/web/remotecontrol?command=407 >/dev/null
    curl --http://ip/cgi-bin/rc?_code >/dev/null


    and make our friend sjamesamuel happy , to zap along a bouquet:

    WebBrowser.Navigate(@"http://dreambox/web/remotecontrol?command=407"); # next


    also, and further more,
    how enigma1/2 can send this related message _code_ to the bash script ?

    Leave a comment:


  • gianni253
    replied
    Re: Continuous zapping through channels

    Originally posted by sjamesamuel
    When I had enigma1 I could send the remote control commands through a c# app:
    WebBrowser.Navigate(@"http://<Box IP>/cgi-bin/rc?106");
    where 106 is the key code.

    I didn't have much time to test this on enigma2, but it's obviously different.
    I don't know if this will help here.
    In E2 it's fundamentally the same .. only commands are a little bit different.
    To zap to a given channel:
    Code:
    wget -q -O - http://root: PWD @ IP_DREAMBOX /web/zap?sRef=1:0:1:213F:3070:13E:820000:0:0:0:
    Coming to remote control, here's the command syntax:
    Code:
    http://dreambox/web/remotecontrol?command={command}
    and control codes ...
    Code:
    116 Key "Power"
    2 Key "1"
    3 Key "2"
    4 Key "3"
    5 Key "4"
    6 Key "5"
    7 Key "6"
    8 Key "7"
    9 Key "8"
    10 Key "1"
    11 Key "0"
    412 Key "previous"
    407 Key "next
    115 Key "volume up"
    113 Key "mute"
    402 Key "bouquet up"
    114 Key "volume down"
    174 Key "lame"
    403 Key "bouquet down"
    358 Key "info"
    103 Key "up"
    139 Key "menu"
    105 Key "left"
    352 Key "OK"
    106 Key "right"
    392 Key "audio"
    108 Key "down"
    393 Key "video"
    398 Key "red"
    399 Key "green"
    400 Key "yellow"
    401 Key "blue"
    377 Key "tv"
    385 Key "radio"
    388 Key "text"
    138 Key "help"

    Leave a comment:


  • sjamesamuel
    replied
    Re: Continuous zapping through channels

    Originally posted by aplok
    the interaction from the remote control to the system goes via the interface and enigma 1/2

    so the question is how the remote control interact with enigma,
    and how enigma interacts with the bash script

    When I had enigma1 I could send the remote control commands through a c# app:
    WebBrowser.Navigate(@"http://<Box IP>/cgi-bin/rc?106");
    where 106 is the key code.

    I didn't have much time to test this on enigma2, but it's obviously different.
    I don't know if this will help here.

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    Originally posted by sjamesamuel
    -Is it possible to simulate a key press (eg. channel+ or channel -) in a script?
    -Will the same script work for enigma2? Do I have to replace ip ...?
    -How to stop the script?
    the interaction from the remote control to the system goes via the interface and enigma 1/2

    so the question is how the remote control interact with enigma,
    and how enigma interacts with the bash script

    Leave a comment:


  • sjamesamuel
    replied
    Re: Continuous zapping through channels

    Thanks Gianni. This looks great.

    -Is it possible to simulate a key press (eg. channel+ or channel -) in a script?

    -Will the same script work for enigma2? Do I have to replace ip ...?

    -How to stop the script?

    Thank you very much for your help

    Leave a comment:


  • gianni253
    replied
    Re: Continuous zapping through channels

    Originally posted by aplok
    name=mycmd
    depend=
    type=2
    needfb=0
    needrc=0
    needlcd=0
    needenigma=0[/FONT]
    Put type=3

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    Originally posted by gianni253
    For Enigma1 it's even simpler ...
    1.- put all scripts in /var/tuxbox/plugins,
    ok

    2.- create corresponding .cgf,
    i did
    cp CCcaminfo.cfg mycmd.cfg
    vi mycmd.cfg
    cat mycmd.cfg

    name=mycmd
    depend=
    type=2
    needfb=0
    needrc=0
    needlcd=0
    needenigma=0


    ( ... ? what's that params ? ... )

    3.- and launch them with yellow button
    ok

    answer:
    /var/tuxbox/plugins/mycmd.so no such file

    -> how to create this mycmd.so file

    ps: mycmd is a bash script

    Leave a comment:


  • gianni253
    replied
    Re: Continuous zapping through channels

    Originally posted by aplok
    @gianni253

    nice,

    the next step: how to start this script with the dm500 addon menu

    otherwise, i can only start it by mean of a telnet session ...

    i prefer from the remote control
    For enigma2 I put all my scripts in a given directory (example /usr/scripts) and then use a plugin (Script Executer) to launch them with remote control.

    For Enigma1 it's even simpler ... put all scripts in /var/tuxbox/plugins, create corresponding .cgf, and launch them with yellow button.

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    @gianni253

    nice,

    the next step: how to start this script with the dm500 addon menu

    otherwise, i can only start it by mean of a telnet session ...

    i prefer from the remote control

    Leave a comment:


  • gianni253
    replied
    Re: Continuous zapping through channels

    Originally posted by sjamesamuel
    Hi
    Is there a way to make dreambox zap through channels automatically. So it zaps to a new channel every 5 sec for example.
    It's not that hard to do that: just write a loop script where, inside the loop, you put commands to zap the channel list.

    Example for enigma1:
    Code:
    #!/bin/sh
    
    while [ 1 ]
    do
      wget -q -O dev/null http://root:PWD@ IP_DREAMBOX /cgi-bin/zapTo?path=1:0:1:2144:3070:13e:820000:0:0:0:
      sleep 5
      wget -q -O dev/null http://root:PWD@ IP_DREAMBOX /cgi-bin/zapTo?path=1:0:1:213f:3070:13e:820000:0:0:0:
      sleep 5
      wget -q -O dev/null http://root:PWD@ IP_DREAMBOX /cgi-bin/zapTo?path=1:0:1:2140:3070:13e:820000:0:0:0:
      sleep 5
      wget -q -O dev/null http://root:PWD@ IP_DREAMBOX /cgi-bin/zapTo?path=1:0:1:2141:3070:13e:820000:0:0:0:
    done
    
    exit 0
    This code loops through 4 channels but you can add all channels you want.
    Remember this is an infinite loop, so you need another script to kill it when you have done.

    Leave a comment:


  • sjamesamuel
    replied
    Re: Continuous zapping through channels

    I understand but for some sats it's not available. Even many channels don't have websites.

    I want this for FTA channels which don't have EPG. Most encrypted ones have EPG. So the ecm delay isn't an issue.

    Even for encrypted ones, it won't be a very bad idea to take a look at each channel, giving allowance for a larger ecm delay.

    Leave a comment:


  • mahrkpat
    replied
    Re: Continuous zapping through channels

    Originally posted by pan1100
    hi

    isn't it easier to look for a good epg?
    I agree with pan1100 it is far easier even to look up on a epg or I am sure a
    on line channel guide would be there for you as well as already mentioned when
    you are zapping to quickly, the encrypted channels, you might even make your
    box freeze therefore instead of saving time you will end losing time because you
    have to reboot.

    I tested with the epg on my box and a quick glance and moving to next page
    only took 2s therefore I would get through 100 channels in 10s-15s and by the
    zap method with 5s limit you will get through only 3 channels, on my epg there
    are 12 channels per page.

    Leave a comment:


  • sjamesamuel
    replied
    Re: Continuous zapping through channels

    @pan1100:
    Sure. But some sats don't have epgs, especially for fta channels (Nilesat for example)

    @coley65:
    Yes, I keep all channels I watch in bouquets. I rarely go outside

    @aplok:
    Many channels don't require open mind (or eyes). There are just too many ads.

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    Originally posted by sjamesamuel
    ... I want to have a look through a bouquet that has 100 channels, I don't have to keep pressing the button ...
    100 [channels] * 6 [sec/channels] = 600 [sec]

    ... but you still need to keep you eyes (and your mind) open ...

    Leave a comment:


  • coley65
    replied
    Re: Continuous zapping through channels

    100 channels in 1 bouquet thats not a bouquet its sta list lol

    Leave a comment:

Working...