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

How to tell cccam to use certain Cline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coley65
    Senior Member
    • Sep 2013
    • 128

    How to tell cccam to use certain Cline

    Really the title says it all
    I have 2 clines installed in my config I want ccam to prefer to use only one of the clines on that certain providor

    Thanks
    Dreambox DM800HD Runnining Openpli Orbit 1m Dish with a Inverto Black Ultra LNB, Technomate TM-2600 diseqc motor
  • DirtyDonki
    Senior Member
    • May 2011
    • 133

    #2
    Re: How to tell cccam to use certain Cline

    I do not know of any way to do this automatically but you could use the ccc@minfo plugin info to switch between the two configs.

    eg: create two seperate cfg files ccc@am_0 & ccc@am_1, each with a line in it and load up to /etc then use ccc@info to switch between the two.

    Comment

    • gianni253
      Experienced Board Member
      • Nov 2012
      • 903

      #3
      Re: How to tell cccam to use certain Cline

      Use cccam.prio file.
      Or simply let ccc*am automatically choose the best cline (basing on the shortest ecm time)

      Comment

      • herrr
        Experienced Board Member
        • Jan 2012
        • 1080

        #4
        Re: How to tell cccam to use certain Cline

        I've already explained how to do this some times.
        (not prio but lines syntax)
        There is proper syntax.
        Now I'm searching the link...cause I remember I've explained it quite well...

        Edit:

        I'm no more able to find it: I hope to explain quite well again and especially not to do syntax errors, cause I must use only my memory in this moment.
        Let's make a simplified example, you want all from the first line and swiss SRG from another (no SRG from the first line, only SRG from the second):
        C: server1 12000 user pass { 0:0:3, 0500:023800:0, 0500:040810:0, 0500:050800:0 }
        C: server2 12000 user pass { 0:0:0, 0500:023800:3, 0500:040810:3, 0500:050800:3 }
        This is simplified, but we can also write more complicated things...ask your problem as an example.

        Comment

        • peremacedonia
          Experienced Board Member
          • Jun 2010
          • 872

          #5
          Re: How to tell cccam to use certain Cline

          It is possible to block certain cards from getting to your server
          Example:
          You would like to block provider 0919 so to get the newer 093b cards from that provider.
          In that case it would be necessary to make your C: line like this:
          C: server.noip.com 12000 username password no { 0:0:2, 0919:0 }
          Or use Prio and Ignore Config:
          in this file you can configure what CAIDs CCcam should prefer or ignore
          defaults to /var/etc/CCcam.prio
          file content can have ignores (I) and prio lists (P)

          1: ignore allways this caid, all idents, on all channels
          I: caid

          2: ignore allways this caid/ident pair
          I: caid:ident

          3: ignore this caid/ident pair, on channel 'sid'
          I: caid:ident:sid

          4: when both caid1 and caid2 exist for a channel, prefer caid1 over caid2
          P: caid1, caid2

          5: when caid1:ident1 till caidN:identN exist for a channel, use them in order of this list.
          P: caid1:ident1, caid2:ident2, .., caidN:identN

          6: when caid1:ident1 till caidN:identN exist for channel 'sid', use them in order of this list.
          Sid on first caid/ident pair identifies sid for which list is used. All other sids ignore this list.
          P: caid1:ident1:sid, caid2:ident2, .., caidN:identN
          Rule n.33 kid..... Concentrate

          Comment

          • aplok
            Experienced Board Member
            • Jun 2013
            • 1155

            #6
            Re: How to tell cccam to use certain Cline

            ok, try this:

            let's assume 3 cccam config fiies:

            /var/etc/cccam.1.cfg
            /var/etc/cccam.2.cfg
            /var/etc/cccam.3.cfg


            as cccam.exe reload /var/etc/CCcam.cfg on any change, if you

            cp /var/etc/cccam.1.cfg /var/etc/CCcam.cfg

            cccam.exe will reload it

            the solution is then

            cp /var/etc/cccam.1.cfg /var/etc/CCcam.cfg
            or
            cp /var/etc/cccam.2.cfg /var/etc/CCcam.cfg
            or
            cp /var/etc/cccam.3.cfg /var/etc/CCcam.cfg


            with an appropriate addon

            the next problem is to transfer a given param 1 or 2 or 3 from the box-enigma-interface to the addon
            i do not have this trick

            however, as the enigma1 command

            wget __http://10.0.0.51/cgi-bin/streaminfo -O - |sed 's/<tr>/\n/g; s/<[^>]*>//g;'


            gives

            Name:Rai 2
            Provider:RAI
            Service reference:1:0:1:2140:3070:13e:820000:0:0:0:
            VPID:0201h (513d)
            APID:028bh (651d)
            PCRPID:0201h (513d)
            TPID:0241h (577d)
            TSID:3070h
            ONID:013eh
            SID:2140h
            PMT:0451h


            we can zap to Rai 3, to enter the 3 param for cccam.3.cfg (...), and the command

            wget __http://dbox/cgi-bin/streaminfo -O - |sed 's/<tr>/\n/g; s/<[^>]*>//g;' |grep Name: |sed 's/.*://; s/ //g'

            gives

            Rai3

            as an input param, to be bash-switched

            Rai3) cp /var/etc/cccam.3.cfg /var/etc/CCcam.cfg ;;

            Comment

            • sjamesamuel
              Board Senior Member
              • Jul 2013
              • 251

              #7
              Re: How to tell cccam to use certain Cline

              Originally posted by herrr
              C: server1 12000 user pass { 0:0:3, 0500:023800:0, 0500:040810:0, 0500:050800:0 }
              C: server2 12000 user pass { 0:0:0, 0500:023800:3, 0500:040810:3, 0500:050800:3 }
              This is simplified, but we can also write more complicated things...ask your problem as an example.
              I believe there has to be yes/no after the pass:

              user pass no { 0:0:3,

              Comment

              • bokkie
                Experienced Board Member
                • Feb 2012
                • 1561

                #8
                Re: How to tell cccam to use certain Cline

                I use the method described by peremacedonia to block my satlover server 2 line from opening sly u.k.
                Works great.

                Comment

                • aplok
                  Experienced Board Member
                  • Jun 2013
                  • 1155

                  #9
                  Re: How to tell cccam to use certain Cline

                  Originally posted by sjamesamuel
                  I believe there has to be yes/no after the pass:

                  user pass no { 0:0:3,
                  C: cccam.org 12000 user pass no { 0:0:3 }

                  no = card only, no emu

                  Comment

                  • herrr
                    Experienced Board Member
                    • Jan 2012
                    • 1080

                    #10
                    Re: How to tell cccam to use certain Cline

                    Originally posted by aplok
                    C: cccam.org 12000 user pass no { 0:0:3 }

                    no = card only, no emu
                    exactly: no/yes...
                    I've told you: "I will forget something"...

                    Comment

                    • aplok
                      Experienced Board Member
                      • Jun 2013
                      • 1155

                      #11
                      Re: How to tell cccam to use certain Cline

                      Originally posted by aplok
                      ok, try this:

                      let's assume 3 cccam config fiies:

                      /var/etc/cccam.1.cfg
                      /var/etc/cccam.2.cfg
                      /var/etc/cccam.3.cfg


                      ... bla bla bla ...
                      # --- solution

                      # --- create your cccam.*.cfg serie

                      cd /var/etc
                      [ ! -f CCcam.cfg.0 ] && cp CCcam.cfg CCcam.cfg.0
                      for i in 1 2 3 4 5; do aa=cccam.$i.cfg; { echo "# --- $aa"; cat CCcam.cfg.0; } >$aa; done
                      ls -la cccam.*


                      # --- create you addon

                      cd /var/tuxbox/plugins


                      # --- /var/tuxbox/plugins/mycccam.sel.sh

                      ch=$( wget http://127.0.0.1/cgi-bin/streaminfo -O - |sed 's/<tr>/\n/g; s/<[^>]*>//g;' |grep Name: |sed 's/.*://; s/ //; s/ .*//g; s/Rai//' )
                      if [ $ch ]; then
                      cd /var/etc
                      cp cccam.$ch.cfg CCcam.cfg
                      echo
                      echo --- mycccam.sel
                      head -n5 CCcam.cfg |grep '#'
                      echo .
                      fi


                      # --- /var/tuxbox/plugins/mycccam.sel.cfg

                      name=my cccam selector
                      depend=
                      type=3
                      needfb=0
                      needrc=0
                      needlcd=0
                      needenigma=0


                      # --- privileges

                      chmod 755 mycccam.sel.cfg mycccam.sel.sh


                      # --- check it

                      ls -la mycccam.sel*


                      # --- how to
                      zap to rai 1,2,3,4,5 (trick to enter the parameter 1,2,3,4,5 via rai1,2,3,4,5)
                      hit yellow button >addon >mycccam.sel

                      enjoy !

                      Comment

                      • coley65
                        Senior Member
                        • Sep 2013
                        • 128

                        #12
                        Re: How to tell cccam to use certain Cline

                        thanks for all the input sorry I have not posted back but been try to solve another problem all day and its been driving me crazy. I will look at these tomorrow now as my eyes are giving up

                        Kind Regards
                        Dreambox DM800HD Runnining Openpli Orbit 1m Dish with a Inverto Black Ultra LNB, Technomate TM-2600 diseqc motor

                        Comment

                        Working...