Great work. Is it possible you could share your script with us ?
Hey Carrpet and others,
I've been looking into scripts with a good friend.
I think am I close to a solution but need some help and testing we can make it work .... the easy way!
I'll try to copy/paste to make into a complete posting so you don't have to browse thru pages and threads.
1) Install CrossEPG
--------------------
- download this file and FTP it to tmp folder
http://www.crossepg.com/downloads -->sh4 file (at the moment crossepg-enigma2_0.3.2-svn-33_sh4.ipk)
- open putty or other telnet programme (I used DCC)
login and at the curser put
cd /tmp
next line put
ipkg install crossepg-enigma2_0.3.2-svn-33_sh4.ipk
i had to do that twice for some reason for it to install
reboot GUI
then FTP to the file /etc/init.d/rcS ...right click and choose edit
and before the line
/usr/local/bin/enigma2
add this line
/var/crossepg/crossepg_epgmove.sh
Example:
echo "starting e2->"
/var/crossepg/crossepg_epgmove.sh
/usr/local/bin/enigma2
reboot gui again
now on menu button on remote go to setup, you will see new option " crossepg"
set up which sats you want in your EPG and other settings
now run crossepg programme in plugins
Thanks again palin as i only managed to get this working before in Iscanmod images and DGS based ones.
----------------------------------------
That was step 1 to get CrossEPG installed
2)EPG from your provider
------------------------
Now comes the part that I haven't tested yet 100% but should be working.
Big thx to
http://www.rytec.be/ where you can see different providers and files for it.
ok here we go!
Telnet into your machine
create a script file
after the prompt type:
cat > getEPG.sh (this creates a file that is comform standards)
Now you paste the txt from the commands you want it to make. I will paste mine below. Check which providers you would want and change the Rytec url for your needs.
wget
http://www.rytec.be/epg/benluk/epg.dat.gz -O /hdd/epg.dat.gz
gunzip /hdd/epg.dat.gz
cat /hdd/epg.dat > /hdd/crossepg/ext.epg.dat
rm /hdd/epg.dat
Now to create the file do a ctrl-d (I had to do it twice for the prompt to start up)
After you see the 'cuberevo' prompt type
chmod +x getEPG.sh
Ok that was it for installing CrossEPG and having the getEPG.sh script (still in the / dir so not in /tmp or so, newbie mode)
Then we need something to auto update it. Seems like cron is our friend for this one since it can schedule our script.
I found this in regards to our Enigma2.
In Linux cron daemon allows you to execute scheduled tasks at specific time/date. Useful for autoupdate keys, epg and many more...
SIFTeam Enigma2 has cron daemon already included in busybox binary. Here is a way to use it.
Telnet to your box and execute the following commands:
Code:
mkdir -p /var/spool/cron/crontabs
touch /var/spool/cron/crontabs/rootNow edit /var/etc/rcS_user.sh (seems incorrect in Enigma 0.7 version /etc/init.d/rcS is the correct one) and add the following line at the end:
Code:
# cron daemon
/usr/sbin/crond &(I know that the proper way to autostart is within init.d, but flash users cant edit it)
Now you can add jobs to the cron by editing /var/spool/cron/crontabs/root file. (for some reason crontab -e doesnt work)
Edit that root and insert the job you want.
This is an exact copy of mine, so including the *
0 3 * * * /getEPG.sh
the 3 means at 3am and /getEPG.sh the file
Ok now reboot otherwise I don't think that the cron doesn't start!!
No warranty on this one and since I like sharing and caring please let us know the results or improvements!