Jump to content


Photo

Save epg on mmc or usb


  • Please log in to reply
28 replies to this topic

#1 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 29 December 2017 - 19:15

I use rel. 6.1rc but i dont find or is not present the possibility to save epg found with Rytec XMLTV 

Its possible select a folder or other where save it ?

 

Thank

Hispa



Re: Save epg on mmc or usb #2 mymon

  • Senior Member
  • 145 posts

+5
Neutral

Posted 29 December 2017 - 19:50

there are two things you can do

1) change the epg path in /etc/enigma2/settings

2) create an alias/symlink for mmc1 and call it hdd - I prefer this solution on Zgemma and RPI as it works for other things 

ln -s /media/mmc1 /hdd

Vu+ Duo, Solo2, Solo4K OpenPLi
CN: DM800Se, SoloPro, Duo, Solo2Se, Solo2 Lonrisun & Sunray, Zgemma Star H.2S

Re: Save epg on mmc or usb #3 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 29 December 2017 - 20:15

 

there are two things you can do

1) change the epg path in /etc/enigma2/settings

2) create an alias/symlink for mmc1 and call it hdd - I prefer this solution on Zgemma and RPI as it works for other things 

ln -s /media/mmc1 /hdd

Ok understand but:

 

for option 1 where you change epg path in /etc/enigma2/settings ?? from menu or from file settings in etc/enigma2/settings i have:

config.audio.volume=100
config.autolanguage.audio_defaultac3=true
config.av.videomode.DVI=1080i
config.av.videoport=DVI
config.av.videorate.1080i=multi
config.hdmicec.bookmarks=['/hdd/']
config.hdmicec.enabled=true
config.misc.firstrun=false
config.misc.hotkey.channeldown=Infobar/zapUp
config.misc.hotkey.channelup=Infobar/zapDown
config.misc.hotkey.cross_down=Infobar/zapUp
config.misc.hotkey.cross_up=Infobar/zapDown
config.misc.hotkey.favorites=
config.misc.hotkey.green=ZapPanic/1:0:19:1BCD:384:110:EEEE0000:0:0:0:
config.misc.hotkey.showTv=Infobar/showServiceListOrMovies
config.misc.initialchannelselection=false
config.misc.languageselected=false
config.misc.startCounter=14
config.misc.videowizardenabled=false
config.movielist.last_videodir=/media/mmc/
config.movielist.videodirs=['/hdd/movie/', '/media/mmc/']
config.Nims.0.diseqcA=130
config.Nims.0.diseqcB=192
config.Nims.0.diseqcC=3601
config.Nims.0.diseqcD=3601
config.Nims.1.multiType=1
config.osd.language=it_IT
config.plugins.autobackup.enabled=true
config.plugins.autobackup.epgcache=true
config.plugins.autobackup.wakeup=5:0


Re: Save epg on mmc or usb #4 Abu Baniaz

  • PLi® Contributor
  • 2,513 posts

+64
Good

Posted 29 December 2017 - 20:18

Install the epgcache selector plugin.

Re: Save epg on mmc or usb #5 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 29 December 2017 - 20:44

Install the epgcache selector plugin.

Is not present on download plugin....

 

Hispa



Re: Save epg on mmc or usb #6 mymon

  • Senior Member
  • 145 posts

+5
Neutral

Posted 29 December 2017 - 21:02

add this into /etc/enigma2/settings 

config.misc.epgcache_filename=/media/mmc1/epg.dat

reboot and see if file gets created on mmc after updating epgimport


Vu+ Duo, Solo2, Solo4K OpenPLi
CN: DM800Se, SoloPro, Duo, Solo2Se, Solo2 Lonrisun & Sunray, Zgemma Star H.2S

Re: Save epg on mmc or usb #7 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 29 December 2017 - 21:10

add this into /etc/enigma2/settings 

config.misc.epgcache_filename=/media/mmc1/epg.dat

reboot and see if file gets created on mmc after updating epgimport

 

I have mmc so i change in config.misc.epgcache_filename=/media/mmc/epg.dat

Right ?

 

Hispa



Re: Save epg on mmc or usb #8 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 December 2017 - 21:11

The epg.dat file is only a backup file to provide reboot-persistence, why would you want to create it? 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Save epg on mmc or usb #9 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 29 December 2017 - 21:18

The epg.dat file is only a backup file to provide reboot-persistence, why would you want to create it? 

No i ask only if it possible specify where it it saved after epg importer

 

Hispa



Re: Save epg on mmc or usb #10 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 December 2017 - 22:36

Afaik the importer imports it directly into memory, if it creates a file on disk, I wouldn't know why, as it will not be complete in most cases, and overwritten as soon as you shutdown Enigma.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Save epg on mmc or usb #11 mymon

  • Senior Member
  • 145 posts

+5
Neutral

Posted 29 December 2017 - 22:57

correct.. the only thing that can be saved is the dat file.. AFAIR epgimport creates a temp file during the import in /tmp and sucks into memory once its done

my understanding was hispanico wanted to save the dat file onto mmc as his box doesn't have native HDD

there is a way to create a ram cache on mmc1 and put /tmp on it but it makes sense if the read/write is fast.. but I wouldn't recommend it to non advanced users

hispanico you got us confused - what are you trying to do?


Vu+ Duo, Solo2, Solo4K OpenPLi
CN: DM800Se, SoloPro, Duo, Solo2Se, Solo2 Lonrisun & Sunray, Zgemma Star H.2S

Re: Save epg on mmc or usb #12 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 December 2017 - 23:10

If the question is "how do I change the path of Enigma's epg backup", you answer was 100% spot on... ;) I wanted to answer the same, but got confused by the epgimporter reference.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Save epg on mmc or usb #13 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 30 January 2018 - 15:51

add this into /etc/enigma2/settings 

config.misc.epgcache_filename=/media/mmc1/epg.dat

reboot and see if file gets created on mmc after updating epgimport

 

Does this one line (or similar, depending on the path) ensure that the EPG is not lost after a power cut or after GSOD?


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Save epg on mmc or usb #14 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 30 January 2018 - 15:58

I think that the epg.dat is saved when Enigma2 is set into stand-by.

So if you import EPG in the morning with your STB up and running and you have a GSOD without having put it into standby in between, the epg.dat is not yet saved.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Save epg on mmc or usb #15 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 30 January 2018 - 16:25

Correct.

 

EPG is stored in memory, so it is gone with a crash. I know there are plugins that can save the EPG ( = create the backup file mentioned above ), but not sure it that can be automated.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Save epg on mmc or usb #16 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 30 January 2018 - 20:42

EPG is stored in memory, so it is gone with a crash.


And that's on purpose. The corrupted EPG may have been the source of the crash, so in case of crash you definitely don't want to keep it.


Real musicians never die - they just decompose

Re: Save epg on mmc or usb #17 Abu Baniaz

  • PLi® Contributor
  • 2,513 posts

+64
Good

Posted 31 January 2018 - 01:27

Two different issues/conditions being mixed up.

Condition 1.
PLI will use /media/hdd/epg.dat in preference to /etc/enigma2.dat as the epg cache location. This is default behaviour.
If you don't believe me, please try it with a mountpoint of hdd. Disable EPG importer. Just to be sure stop E2 with "init 4", delete all instances of epg.dat, wherever it/they may reside for you.
Restart E2, preferably in console mode. Let it absorb EPG data. Stop E2 again. You will see epg.dat saved in /media/hdd/

Someone coded using a hdd storage device if it exists for epg storage. Live EPG data is held in RAM.

Issue 2.
A lot of people do not have have an actual hdd mounted. PLI will mount a USB HDD/device as USB, and MMC device as MMC (sorry if I have got case wrong), so they never meet the criteria of having a hdd.

If you mount your USB stick/MMC device as /media/hdd or create a symlink, you will find that epg will be saved/loaded to/from the device without doing anything else. Alternatively, use the epg cache selector plugin

In my opinion, if a physical hdd is not connected, PLi should mount storage devices as hdd like other images do. Saves all the issues of recording path, timeshift path, backup path, restore path, crash dump location etc. Just to paraphrase one of the developers, granny should not have to less around with all the computer stuff.

There is an open issue on GitHub for selecting EPG cache location.

Re: Save epg on mmc or usb #18 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 31 January 2018 - 09:10

I think that the epg.dat is saved when Enigma2 is set into stand-by.

So if you import EPG in the morning with your STB up and running and you have a GSOD without having put it into standby in between, the epg.dat is not yet saved.

 

1) Do you mean standby and not deep standby?

2) And what if Rytec EPG is imported when the box is in standby, will it be saved to epg.dat file?

3) Basically, I would need a mechanism that all the EPG is not lost after a power cut or a reboot from telnet.

4) Abu Baniaz, what does cache selector plugin do? Does it ensure the epg.dat is always stored and read from epg.dat after booting?


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Save epg on mmc or usb #19 Abu Baniaz

  • PLi® Contributor
  • 2,513 posts

+64
Good

Posted 31 January 2018 - 15:30

EPG data is saved to cache file on a controlled shutdown, deep standby, or restart. A power cut is none of those, so not possible. Receiver will load what was last saved when you restart it.

Corrupt EPG will not be loaded.

EPG cache selector just allows you to select EPG cache location. Other images have this in the GUI, there is an issue open on Github for adding this to the user interface. If you don't have it set, defaults are used for saving and loading.

Edited by Abu Baniaz, 31 January 2018 - 15:31.


Re: Save epg on mmc or usb #20 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 31 January 2018 - 15:57

 

I think that the epg.dat is saved when Enigma2 is set into stand-by.

So if you import EPG in the morning with your STB up and running and you have a GSOD without having put it into standby in between, the epg.dat is not yet saved.

 

1) Do you mean standby and not deep standby?

2) And what if Rytec EPG is imported when the box is in standby, will it be saved to epg.dat file?

3) Basically, I would need a mechanism that all the EPG is not lost after a power cut or a reboot from telnet.

4) Abu Baniaz, what does cache selector plugin do? Does it ensure the epg.dat is always stored and read from epg.dat after booting?

 

 

1) Standby (never work with deep standby)

2) Yes it is

3) The epg.dat is reloaded after a reboot

 

But if the epg.dat file gets corrupted then you will have crashes at each reboot, so you need to connect via telnet and delete the file, Then restart an EPGimport.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users