Enigma 2 (7025,800,8000 or IPBOX 9000HD) sly EPG

digidude

Sheep worrier.
VIP Member
Joined
Aug 8, 2001
Messages
24,754
Reaction score
3,741
Location
The edge.
E2_LOADEPG is written in Python 2.5 and can be launched from Enigma2 STB (Dreambox 7025,800,8000 or IPBOX 9000HD see note 1) or everywhere is installed a Python 2.5 interpreter (PC, Mac ...). It downloads the events list from many web sites or satellite trasponder and create the ENIGMA2 EPG cache. It's intended to be run once a day manually or using CRON. It's not a ENIGMA2 plugin: it's a stand-alone software.

Note 1: SifTeam has developed an Enigma2 image running on IPBOX 9000 HD

- BSKYB : United Kingdom SKYUK/BSKYB from Radiotimes website (internet connection required)

HISTORY AND DOWNLOAD

13/12/2008
New version 0.46 beta
Solved a bug about title length > 250 characters
Added FLASHZA module in main distribution (Internet connection required)
Added RAISAT module for downloading Italy RAI4 epg (from RaiSat website: Internet connection required)


E2_LOADEPG - December 2008 by ambrosa EDG-NEMESIS

__author__ = "ambrosa http://www.dreamboxonline.com"
__version__ = "0.46 beta"
__copyright__ = "Copyright (C) 2008 Alessandro Ambrosini"
__license__ = "CreativeCommons by-nc-sa http://creativecommons.org/licenses/by-nc-sa/3.0/"


** INSTALLATION **

E2_LOADEPG uses a lot of disk space and then the installation must be carried out in the DM7025 Compact Flash (/media/cf) or HardDisk (/media/hdd). Starting from version 0.40 performance is equal by using CF or HDD. Try on your own system what it's better. Global performance is better than previous versions.
Make sure you have enough free space on CF / HDD ! About 50 MB free should be enough.

NOTE 1 : Starting from version 0.40 a complete reinstallation is required. I changed the configuration files and more else. So if you are upgrading from an earlier version (0.33), you have to start from scratch.
NOTE 2 : e2_loadepg.py can be run manually, but it's better to run automatically once a day using CRON. See your favourite DM7025 image documentation for howto setup your CRON deamon.


-- Get the compressed file e2_loadepg-nnn.tar.gz

-- Copy it on your DM7025 /media/cf or /media/hdd or /media/usb

-- (as root) go in installation directory ('cd /media/cf' or 'cd /media/hdd' or 'cd /media/usb') and unpack it with
tar xvzf e2_loadepg-nnn.tar.gz
the directory e2_loadepg will be created with the program files inside

WARNING: If you already have a previous installation of E2_LOADEPG, your files will be OVERWRITTEN. Make a backup first.



** CONFIGURATION **

In the installation directory there are the following:

- e2_loadepg.conf : the main configuration text file. Edit it according to your needs.

- e2_loadepg.py : the main program. During the execution useful information are displayed to video (also saved in file 'e2_loadepg.log'). It's also displayed the presence of network errors and congruence failure between the name of the channel stored in remote web site and the one stored in your DM7025 as well other information.

- dl_modules/ : this directory contains the modules that are involved in the downloading files from remote websites and create files that will be put in local cache. There are configuration files for each module (eg skyitalia.conf, bskyb.conf) and configuration channel list file for each module (eg skyitalia-channel_list.conf, bskyb-channel_list.conf).
Note: even if there seems not necessary, don't delete file __init__.py

- e2_coremod/ : this directory contains files relating to the program operation. You do not have interest of its content.
Note: even if there seems not necessary, don't delete file __init__.py

- dl_modules/ : *- channel_list.conf: the configuration file about channels
You have to edit it to reflect your needs. Originally this file contains the channels on the remote site (SKY or BSKYB) and all described by comments. You must, by editing the file, indicate which channels will not be downloaded, which will be loaded and put in local cache, which have to be always downloaded anyway.
WARNING: starting from rel. 0.40 it is mandatory set the channel name after the option 0|1|2|3 , even if it is equal to the one in the DM7025 channel list
It is also possible, optional, set the name of the provider of that channel. At the beginning of the file there is the provider name used by default.
The name of the channel and the name of provider are crucial because they are the only cross-reference available for the channel SID stored in the file / etc/enigma2/lamedb
At the beginning of conf file there is the detailed explanation about how to operate the configuration.
The file included in the package is that I use on my DM7025 with my personal settings. Adapt it to your needs.
Be careful that very often the channels names present in remote website don't match your channel of interest and then there will be no error, but you will not see EPG because is associated with a different channel.
Example: In the SKY ITALY website , italian national TV is coded as "Rai Uno". In the DM7025 channels list (received by transponder) there is a "Rai Uno" (not visible, encrypted Seca) and "RAI1" (free-to-air). Because there is a "Rai Uno" in lamedb, you will never have errors "channel not found" but the epg is associated with the wrong channel. You have to change channel_list.conf to associate the correct channel, namely "RAI1"
WARNING: If you change a channel name or a provider name, you have to manually delete the cached files for that channel in order to be recreated with the next run.

- dl_modules/*-channel_list_generator.py : you can launch it one-time in order to recreate file *-channel_list.conf by yourself
WARNING: your file *-channel_list.conf, if any, will be OVERWRITTEN. Make a backup first.

- excluded_sid.conf : if for some reason you do not want that a channel will be processed, you can add its SID in this file.

"So, and now ?"
For a first run you should:
1) edit /usr/bin/enigma2.sh (see below)
2) edit dl_modules/*- channel_list.conf according to your needs
3) run e2_loadepg.py and check carefully the log (on video or 'e2_loadepg.log' file): there will be many useful infos for debugging your configuration error


** CHANGE /usr/bin/enigma2.sh **

It's mandatory to change the script /usr/bin/enigma2.sh
Just before 'LD_PRELOAD' add one of the following lines (depending on your image and EPGDAT option in e2_loadepg.conf) so that, after a Enigma2 Restart GUI, ext.epg.dat will be re-read.

Examples:

Instead of command "mv" (move) you can also use the command "cp" (copy).
In this way the file ext.epg.dat will never be erased and will always be available in case of reboot


GEMINI 3.x :
----------------------------- enigma2.sh ---------------------------------------
[ -f /media/cf/ext.epg.dat ] && mv /media/cf/ext.epg.dat /media/cf/gemini.epg.dat
LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
--------------------------------------------------------------------------------
or
----------------------------- enigma2.sh ---------------------------------------
[ -f /media/hdd/ext.epg.dat ] && mv /media/hdd/ext.epg.dat /media/hdd/gemini.epg.dat
LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
--------------------------------------------------------------------------------


LT 4 :
----------------------------- enigma2.sh ---------------------------------------
[ -f /media/cf/ext.epg.dat ] && mv /media/cf/ext.epg.dat /media/cf/epg.dat
LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
--------------------------------------------------------------------------------
or
----------------------------- enigma2.sh ---------------------------------------
[ -f /media/hdd/ext.epg.dat ] && mv /media/hdd/ext.epg.dat /media/hdd/epg.dat
LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
--------------------------------------------------------------------------------


** OPERATION **

After correctly configured *-channel_list.conf, simply run e2_loadepg.py

At the end remember to restart Enigma2 (by remote control: Restart GUI). Be careful not to have recordings running.
In the file e2_loadepg.conf there is the option RESTART_GUI to automatically restart just ended ext.epg.dat file creation


** NOTES **

1) LOG to video and/or to file: in e2_loadepg.conf there are two options LOG_VIDEO and LOG_FILE to enable or disable the log display to video and/or the log recording to file (default filename is 'e2_loadepg.log')

2) The log file e2_loadepg.log is the main source of information for solving problems. There are reported errors related to wrong channel name, wrong provider name (with providers list available for that channel) and so forth. READ IT !

3) to avoid overloading remote website there is a variable delay . You can change it dl_modules/skyitalia.conf and bskyb.conf, options RANDOM_MIN and RANDOM_MAX. Avoid to set it to 0 (zero). Moreover, tests carried out, this delay helps a lot in avoiding downloading errors. By setting the two options RANDOM_ a 0.0 greatly increases the error rate

4) in the case that in your DM7025 channel list there are two or more channels of the same provider with the same name (for example two channels SkyItalia "SKY TG 24"), for all these channels will be assigned the same EPG.

5) the channel name and provider name are case insensitive.

6) starting from version 0.20 WebInterface is used for control certain function of DM7025. Make sure that WebIf is active and without password (no authorisation)

download file here
 
also works well with dm600 enigma2 for those who like to try a e2 image :)


cheers

osborne82
 
How much difference is there between enigma1 and enigma2?

what sort of benefits do they offer?

i read somewhere that a team has cracked freesat EPG and that its possible to read it all from sat streams?
 
The freesat epg has been 'cracked' for some while and some non-official receivers can access the epg, such as Fortec and Mvision receivers. The work has been going on to get this working on Enigma2 receivers too (thanks go to Rat for keeping me updated) and i think the latest release is up to version 6 - http://www.pli-images.org/getfile.php?type=a&file_id=5600

I havent tried it because i'm fine with using the RT feed for full epg via network (which has worked for many months on enigma1 images), but it should be more stable than previous freesat epg versions, and work continues to improve it.

Btw freesat epg by sat stream, or sky epg by internet, are different. :)
 
Last edited:
Back
Top