Jump to content


Photo

Enigma2 EPG location


  • Please log in to reply
7 replies to this topic

#1 dinkster

  • Member
  • 2 posts

0
Neutral

Posted 29 July 2008 - 07:11

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.

Re: Enigma2 EPG location #2 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

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
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 szaro

  • Member
  • 6 posts

0
Neutral

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 szaro

  • Member
  • 6 posts

0
Neutral

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 Robinson

  • Senior Member
  • 2,613 posts

+30
Good

Posted 8 October 2015 - 22:25

This forum is not for your box.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Enigma2 EPG location #6 szaro

  • Member
  • 6 posts

0
Neutral

Posted 10 October 2015 - 08:36

But, I using OpenPLI 8.6.



Re: Enigma2 EPG location #7 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 10 October 2015 - 08:47

There is only OpenPli 4 available. Look in the download section. There you also find all supported boxes. nbox is not supported and the image you use was not build from OpenPli.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Enigma2 EPG location #8 szaro

  • Member
  • 6 posts

0
Neutral

Posted 12 October 2015 - 14:58

OK, now I understand.
But, the main part of software is the same, so may be you can help me.
I ask only about importing module in Python.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users