Austech




iTrader Today's Posts Donate My Posts Classifieds Site Rules FAQ's
Go Back   Austech > Satellite , Digital Terrestrial and Cable TV. > Satellite Television > Dreambox
Register Members List Upgrade Account Search Today's Posts Mark Forums Read

Dreambox Discussion and unofficial support for Dream Multimedia's Linux based Dreambox. Includes DM500 clones.

Reply
 
LinkBack (6) Thread Tools Search this Thread Display Modes
Old 04-08-08, 09:56 PM   2 links from elsewhere to this Post. Click to view. #1 (permalink)
Junior Member
 

iTrader: (0)
Join Date: May 2008
Posts: 6
Spent time on board: 5:38:25
billykdz is on a distinguished road
Default Keep that whitey updating using Cccam

This a pretty crude method but it has been working now for 2 weeks.

I have multiple Dm's sharing off 1 Dm500 not connected to anything except for a card reader and ethernet port no dish.

This server is running cccam2.0.8 and the config had no B: #### line.

All the clients are cccam 2.0.4 or 5 expect for one which has 2.0.5 & 2.0.8.
This client is the only one allowed to send Emm's to the server.

On this box the default cam is 2.0.5 but "weather active" is set to 2.0.8.

So in the timer section of this DM500 I get the box to switch to weather active between 4:30am and 5:30am every day.

No great solution but hey it works.
billykdz is offline   Reply With Quote
Old 04-08-08, 10:49 PM   #2 (permalink)
Premium Member
 
covert's Avatar
 

iTrader: (8)
Join Date: Jan 2008
Location: My Imagination
Posts: 648
covert is on a distinguished road
Default

Nice idea of switching cams.
__________________
By reading this, you have already given me control over a tiny slice of your mind
covert is offline   Reply With Quote
Old 05-08-08, 07:24 AM   #3 (permalink)
Special Member
 
nfnovice's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 330
Spent time on board: 4 Days and 3:41:02
nfnovice is on a distinguished road
Default

good thinking billy - not too sure what "weather active" is though

I note that cccam restarts whenever a new cccam.cfg is copied in
you could achieve a similar thing by having two cron jobs
one to copy in a config which allows the updates
and one hour later a config which doesnt (normal operating)

In theory might work like yours
again - good thinking mate
nfnovice is offline   Reply With Quote
Sponsored Links
Old 06-08-08, 07:32 AM   #4 (permalink)
Premium Member
 
gado's Avatar
 

iTrader: (7)
Join Date: Jan 2008
Posts: 222
Spent time on board: 3 Weeks, 4 Days and 17:50:41
gado is on a distinguished road
Default

The best way I have seen and have setup.
Run at Linux CCcam server - Debian, Clasrkconnect with basic kernel and services. CCcam 2.09 installed, all clients connect with CCcam 1.71 except one client run 2.09 to update the card. Create to CCcam.cfg files one with the B: lione one without. Schedule a Cron job at 3am every night to copy one config over the other for 5 minutes then schedule another Cron job to copy the file without the B: back. Work like a treat. My mates server has run for 3 months untouched like this.
gado is offline   Reply With Quote
Old 06-08-08, 07:40 PM   #5 (permalink)
Junior Member
 

iTrader: (0)
Join Date: Apr 2008
Posts: 19
Spent time on board: 0:39:17
xlrate is on a distinguished road
Default

Sounds like a good idea "gado" !

Care to share the script or could someone help out with one.

Pls

Not very good at scripts

Say from /media/cf/CCCamBlocked with config file in the folder.
And the other from /media/cf/CCCamUnblocked with config file in the folder.
xlrate is offline   Reply With Quote
Old 06-08-08, 11:27 PM   #6 (permalink)
Junior Member
 
Zepic's Avatar
 

iTrader: (0)
Join Date: Jul 2008
Posts: 22
Spent time on board: 2 Days and 7:18:04
Zepic is on a distinguished road
Default

Yeah, I got this to work
Here is the script I created

/var/etc/cccamAU.sh

#!/bin/sh
CAMNAME="CCcam AU"
# end

# This method enables AU
enable_au ()
{
cp /var/etc/CCcam.cfg /var/etc/CCcamDefault.cfg
cp /var/etc/CCcamAU.cfg /var/etc/CCcam.cfg
}
# This method disables AU
disable_au ()
{
cp /var/etc/CCcamDefault.cfg /var/etc/CCcam.cfg
}
case "$1" in
enable)
echo "[SCRIPT] $1: $CAMNAME"
enable_au
;;
disable)
echo "[SCRIPT] $1: $CAMNAME"
disable_au
;;
*)
exit 1
;;
esac
exit 0



then set a cron job
0 3 * * * /var/etc/cccamAU.sh enable
5 3 * * * /var/etc/cccamAU.sh disable

create yourself a /var/etc/cccamAU.cfg with the B: line removed

thats it.

Last edited by Zepic : 07-08-08 at 12:54 PM. Reason: typo
Zepic is offline   Reply With Quote
Sponsored Links
Old 07-08-08, 11:01 AM   #7 (permalink)
Junior Member
 

iTrader: (0)
Join Date: Apr 2008
Posts: 19
Spent time on board: 0:39:17
xlrate is on a distinguished road
Default

Thanks Zepic

Made a few adjustments to locations/names etc

Tested and works a treat !
xlrate is offline   Reply With Quote
Old 13-08-08, 07:05 PM   #8 (permalink)
Premium Member
 
robpi's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 39
Spent time on board: 2 Days and 8:15:59
robpi is on a distinguished road
Default

Been playing around with this.

what do you mean setup a cron job,

0 3 * * * /var/etc/cccamAU.sh enable
5 3 * * * /var/etc/cccamAU.sh disable

Do I have to create 2 separate script files, one call enable and one disable?






Quote:
Originally Posted by Zepic View Post
Yeah, I got this to work
Here is the script I created

/var/etc/cccamAU.sh

#!/bin/sh
CAMNAME="CCcam AU"
# end

# This method enables AU
enable_au ()
{
cp /var/etc/CCcam.cfg /var/etc/CCcamDefault.cfg
cp /var/etc/CCcamAU.cfg /var/etc/CCcam.cfg
}
# This method disables AU
disable_au ()
{
cp /var/etc/CCcamDefault.cfg /var/etc/CCcam.cfg
}
case "$1" in
enable)
echo "[SCRIPT] $1: $CAMNAME"
enable_au
;;
disable)
echo "[SCRIPT] $1: $CAMNAME"
disable_au
;;
*)
exit 1
;;
esac
exit 0



then set a cron job
0 3 * * * /var/etc/cccamAU.sh enable
5 3 * * * /var/etc/cccamAU.sh disable

create yourself a /var/etc/cccamAU.cfg with the B: line removed

thats it.
robpi is offline   Reply With Quote
Old 13-08-08, 07:10 PM   #9 (permalink)
Premium Member
 
covert's Avatar
 

iTrader: (8)
Join Date: Jan 2008
Location: My Imagination
Posts: 648
covert is on a distinguished road
Default

cccamAU.sh is the script that is ran. The script file is the line from "#!/bin/sh" to the line exit 0.

enable and disable are the parameters passed to the script.
__________________
By reading this, you have already given me control over a tiny slice of your mind
covert is offline   Reply With Quote
Sponsored Links
Old 13-08-08, 07:28 PM   #10 (permalink)
Premium Member
 
robpi's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 39
Spent time on board: 2 Days and 8:15:59
robpi is on a distinguished road
Default

See if I get this,

if i run the same script it will automatically enable or disable depending what state it was prior?
robpi is offline   Reply With Quote
Old 13-08-08, 07:59 PM   #11 (permalink)
Premium Member
 
covert's Avatar
 

iTrader: (8)
Join Date: Jan 2008
Location: My Imagination
Posts: 648
covert is on a distinguished road
Default

The script does not check what state it was in prior. It simply copies one file if the enabled parameter was passed and copies a different file if the disabled parameter was passed.

Personly I would not use the script. I would just have the 2 cron jobs do the cp command for me.
__________________
By reading this, you have already given me control over a tiny slice of your mind
covert is offline   Reply With Quote
Old 13-08-08, 08:17 PM   #12 (permalink)
Premium Member
 
gado's Avatar
 

iTrader: (7)
Join Date: Jan 2008
Posts: 222
Spent time on board: 3 Weeks, 4 Days and 17:50:41
gado is on a distinguished road
Default

Let me give you guys a firther hint to improving your scripts. Since I didnt write mine I wont post them. But here is what is in them.

Block Script

Try this cat the CCcam.cfg file using a pipe using the Sed command to insert the B line and output this file to a CCcam.block in the same script copy the CCcam.cfg.block back the the CCcam.cfg file.

No Block Script.
Cat the CCcam.cfg with the pipe using the sed command to insert at # in front of the B: line and send it to a CCcam.noblock file. Copy the CCcam.cfg.noblock to the CCcam.cfg.

Schedule the no block script to run at 3.00 to get the update then the block scripts to run at 3.05.

This means you can make edits to your CCcam.cfg to add users without the need of two separate files to update. Pretty kewl.
gado is offline   Reply With Quote
Sponsored Links
Old 13-08-08, 08:41 PM   #13 (permalink)
Premium Member
 
robpi's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 39
Spent time on board: 2 Days and 8:15:59
robpi is on a distinguished road
Default

all sounds great, but scripts is not my forte'

I have DM7000 running Gemini V4.4

using the Crond menu add the script CCcamdAU.sh as per Zepic's post.

Don't know where you add the enable parameter.

I have gone to the var/etc/cron/crontabs

and modified the file and added the enable on one line then disable on the second line.

03 20 * * * /var/script/CCcamAU.sh enable
05 20 * * * /var/script/CCcamAU.sh disable

When I go to the Crond menu on the dream it shows the two, one says enable and the other disable and the right time it should run.


but does not run.


help please.

Thanks
robpi is offline   Reply With Quote
Old 14-08-08, 11:53 AM   #14 (permalink)
Junior Member
 
Zepic's Avatar
 

iTrader: (0)
Join Date: Jul 2008
Posts: 22
Spent time on board: 2 Days and 7:18:04
Zepic is on a distinguished road
Default

Quote:
Originally Posted by robpi View Post
all sounds great, but scripts is not my forte'

I have DM7000 running Gemini V4.4

using the Crond menu add the script CCcamdAU.sh as per Zepic's post.

Don't know where you add the enable parameter.

I have gone to the var/etc/cron/crontabs

and modified the file and added the enable on one line then disable on the second line.

03 20 * * * /var/script/CCcamAU.sh enable
05 20 * * * /var/script/CCcamAU.sh disable

When I go to the Crond menu on the dream it shows the two, one says enable and the other disable and the right time it should run.


but does not run.


help please.

Thanks


You'll need to enable the crond service on your dreambox for it to run.
On a PLI image its in the settings->services menu, probably something similar on the gemini.
Also it looks like you've set yours to enable at 8:03 pm and disable at 8:05 pm
Not sure if 2 minutes is enough.
Also you may not want to do it at prime TV watching time as it will cause pauses every 15 seconds or so while it is enabled.

1 more thing, make sure you have execute permissions set on the script.

Last edited by Zepic : 14-08-08 at 11:55 AM. Reason: more info added
Zepic is offline   Reply With Quote
Old 14-08-08, 12:21 PM   #15 (permalink)
Premium Member
 
robpi's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 39
Spent time on board: 2 Days and 8:15:59
robpi is on a distinguished road
Default

Quote:
Originally Posted by Zepic View Post
You'll need to enable the crond service on your dreambox for it to run.
On a PLI image its in the settings->services menu, probably something similar on the gemini.
Also it looks like you've set yours to enable at 8:03 pm and disable at 8:05 pm
Not sure if 2 minutes is enough.
Also you may not want to do it at prime TV watching time as it will cause pauses every 15 seconds or so while it is enabled.

1 more thing, make sure you have execute permissions set on the script.

Yes Crond service is running,

Times shown where only test times I was using last night, once it works I will change them to some time in early morning.

execute permissions?? at the moment they are 644, should I change it to 755?
robpi is offline   Reply With Quote
Sponsored Links
Old 14-08-08, 01:02 PM   #16 (permalink)
Premium Member
 

iTrader: (5)
Join Date: Jan 2008
Location: Melbourne
Posts: 340
Spent time on board: 3 Weeks, 3 Days and 10:47:23
jimbo123 is on a distinguished road
Default

Quote:
Originally Posted by robpi View Post
execute permissions?? at the moment they are 644, should I change it to 755?
Yup, that would help.
jimbo123 is offline   Reply With Quote
Old 15-08-08, 04:31 PM   #17 (permalink)
Premium Member
 
robpi's Avatar
 

iTrader: (1)
Join Date: Jan 2008
Posts: 39
Spent time on board: 2 Days and 8:15:59
robpi is on a distinguished road
Default

Ok, changed permissions still nothing.

So I created two seperate scripts based on what zepic posted, added them to the Crond service on my dreambox and they work great.

So I thought I would post the scripts.

Script 1,

#!/bin/sh
CAMNAME="CCcamAU_Unblock"
# end

# This method enables AU
{
cp /var/etc/CCcam.cfg /var/etc/CCcamDefault.cfg
cp /var/etc/CCcamAU.cfg /var/etc/CCcam.cfg
}
echo "[SCRIPT] $1: $CAMNAME"
;;
exit 1
;;
esac
exit 0



and

Script 2,

#!/bin/sh
CAMNAME="CCcamAU_Block"
# end

# This method disables AU
{
cp /var/etc/CCcamDefault.cfg /var/etc/CCcam.cfg
}
echo "[SCRIPT] $1: $CAMNAME"
;;
exit 1
;;
esac
exit 0
robpi is offline   Reply With Quote
Old 15-08-08, 08:21 PM   #18 (permalink)
REG
Premium Member
 

iTrader: (1)
Join Date: Jan 2008
Posts: 56
Spent time on board: 3 Days and 23:47:36
REG is on a distinguished road
Default

Hi just to make sure im on the write page this is setup on a Linux CCcam server ? with the dreams as clients / yes . will this work running a windows xp server useing newcs ?
REG is offline   Reply With Quote
Sponsored Links
Old 17-08-08, 09:21 AM   #19 (permalink)
Senior Member
 
Chieflets's Avatar
 

iTrader: (0)
Join Date: Jan 2008
Posts: 170
Spent time on board: 5:56:36
Chieflets is on a distinguished road
Default

linux

Chieflets
Chieflets is offline   Reply With Quote
Old 17-08-08, 09:52 AM   #20 (permalink)
Senior Member
 
Chieflets's Avatar
 

iTrader: (0)
Join Date: Jan 2008
Posts: 170
Spent time on board: 5:56:36
Chieflets is on a distinguished road
Default

what images have people had sucusses on this lovely script?


Chief
Chieflets is offline   Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.austech.info/dreambox/9477-keep-whitey-updating-using-cccam.html
Posted By For Type Date
nds 1 newcs xp | BoardReader This thread Refback 14-11-08 03:07 AM
CCCAM 2 02 - forum talks | BoardReader This thread Refback 26-10-08 06:48 PM
CCCAM SERVER - Page 2 | BoardReader This thread Refback 16-10-08 01:58 AM
Dreambox [Archive] - Austech This thread Refback 06-09-08 10:48 PM
CCCAM SERVER - Page 8 | BoardReader This thread Refback 01-09-08 08:49 PM
Dreambox on Austech.Info | BoardReader This thread Refback 17-08-08 11:15 PM

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


server monitor
All times are GMT +10. The time now is 04:23 AM.


Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Ad Management by RedTyger