Where can i find where enigma2 stores its epg cache, and where to find what the file format is?
Have a small windows app (yes i know, windows blows etc.) that can read blleb annd rt xml placein a db (sql express at the moment), woudl liek to add an export item to this program to export an epgcache file that can be dropped on teh dreambox (im talking 800 mipsel here)
there was mentioned in the Jade release notes there you had provided a "way into" the epgdata, plugin comming soon..
any new on this, what formats will it be able to accept, etc. etc.
Enigma2 EPG location
Started by dinkster, 29 Jul 2008 07:11
7 replies to this topic
Re: Enigma2 EPG location #2
Posted 29 July 2008 - 08:50
enigma2 stores the epg cache in memory, at the moment.
There is an epg backup store, to which the data is dumped when enigma shuts down, and read back when it boots, but that doesn't provide a clean way to import events on the fly.
So the only way is to feed the events directly to e2.
Oudeis prepared an import interface, which we integrated into jade. (he is working on a complete import backend as well).
here you find more information:
http://www.pli-image...9069#post_69069
It basically boils down to this:
eEPGCache got a new member
Use something like this
[code=auto:0]
from enigma import eEPGCache
epgcache = eEPGCache.getInstance()
epgcache.importEvent(serviceref, eventlist)
[/quote]
serviceref is a string.
eventlist is a list of objects.
each object is a list of fields:
1. start time (long)
2. duration (int)
3. event title (string)
4. short description (string)
5. extended description (string)
6. event type (byte)
There is an epg backup store, to which the data is dumped when enigma shuts down, and read back when it boots, but that doesn't provide a clean way to import events on the fly.
So the only way is to feed the events directly to e2.
Oudeis prepared an import interface, which we integrated into jade. (he is working on a complete import backend as well).
here you find more information:
http://www.pli-image...9069#post_69069
It basically boils down to this:
eEPGCache got a new member
void importEvent(SWIG_PYOBJECT(ePyObject) serviceReference, SWIG_PYOBJECT(ePyObject) list);wrapped by swig.
Use something like this
[code=auto:0]
from enigma import eEPGCache
epgcache = eEPGCache.getInstance()
epgcache.importEvent(serviceref, eventlist)
[/quote]
serviceref is a string.
eventlist is a list of objects.
each object is a list of fields:
1. start time (long)
2. duration (int)
3. event title (string)
4. short description (string)
5. extended description (string)
6. event type (byte)
Re: Enigma2 EPG location #3
Posted 29 September 2015 - 21:03
pieterg-> could you explain me how I can use this code
from enigma import eEPGCache epgcache = eEPGCache.getInstance() epgcache.importEvent(serviceref, eventlist)
I need to write simple app/plugin to export EPG data to TXT file.
sorry for question, but I'm newbie in Enigma and Python
Re: Enigma2 EPG location #4
Posted 8 October 2015 - 19:06
No one can't help me ?
I try but, but no result, I cant't load module "enigma".
nbox:/usr/lib/enigma2/python# python test.py Traceback (most recent call last): File "test.py", line 2, in <module> from enigma import eEPGCache File "/usr/lib/enigma2/python/enigma.py", line 30, in <module> File "/usr/lib/enigma2/python/enigma.py", line 22, in swig_import_helper ImportError: No module named _enigma nbox:/usr/lib/enigma2/python#
Re: Enigma2 EPG location #5
Re: Enigma2 EPG location #6
Re: Enigma2 EPG location #7
Re: Enigma2 EPG location #8
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users