NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) TV Listings v
« Previous 1 2 3 4 5 6 … 13 Next »
Scheduler For EPG Collector & NPVR EPG Update

 
  • 0 Vote(s) - 0 Average
Scheduler For EPG Collector & NPVR EPG Update
rwnz
Offline

Member

Posts: 89
Threads: 15
Joined: Aug 2006
#1
2012-07-16, 07:58 AM
NPVR has been running sweetly for a couple of years or so, where I used Task Scheduler to wake my computer from Sleep, run a batch file to run EPG Collector and then NPVR EPG updater, then put my computer back to sleep. I've just reformatted my hard drive and reinstalled NPVR and EPG Collector but cannot get the scheduled update to work. If I run the batch file directly it all works properly but if I use Task Scheduler to trigger it then the process stops with an error while EPG Collector is accessing its ini file.

I had the same problem when I originally installed this a couple of years ago. I thought I had determined that the cause was that Task Scheduler is very picky about having file paths written in full and all files in the chain being given full permissions. I also improved it by ticking 'Run with highest privileges'. I spent many hours trying to get it working originally and don't have the time to do so this time.

What other ways do users achieve this EPG update bearing in mind that I want to wake and sleep the computer and I must use a 3rd party utility to get the EPG data?

Cheers.
Hauppauge WinTV-HVR-2200, Intel C2D E8400; 4GB RAM; ASUS EN9400GT SILENT 512MB; Windows 10 Home 64 Bit; NPVR + EPG Collector. TVersity; Sony Smart TVs; Xtreamer Sidewinders. TV source: DVB-T
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#2
2012-07-16, 10:19 AM
If you post your batch file someone may be able to spot what is going wrong, full text of the error message may help as well. ISTR that by default the scheduler runs not as a normal user, so default paths etc do not exist.
I'm running an external grabber from the scheduler and haven't had a problem as yet.
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#3
2012-07-16, 11:08 AM
Err ummm am I missing something here?? I just use the built in NextPVR update event & using an updateEPG.bat file located in the script directory it runs EPG Collector fine.
rwnz
Offline

Member

Posts: 89
Threads: 15
Joined: Aug 2006
#4
2012-07-16, 12:11 PM
It'll be me missing something. That's why I asked. I felt there must be something simpler. I'll look into this further when I get back on at the end of the week. I see the script directory but need to find out more about the NextPVR update event.
Also noted about Task Scheduler not running as a normal user.
Thanks.
Hauppauge WinTV-HVR-2200, Intel C2D E8400; 4GB RAM; ASUS EN9400GT SILENT 512MB; Windows 10 Home 64 Bit; NPVR + EPG Collector. TVersity; Sony Smart TVs; Xtreamer Sidewinders. TV source: DVB-T
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#5
2012-07-17, 03:55 AM
The update event is fairly straight forward, it looks for UpdateEPG.bat in the scripts directory & if it finds it runs it & waits for it to end, once that happens it then does the normal internal update & when that finishes it look for PostUpdateEPG,bat in scripts & then runs that (I use this to backup my Db, config & the xxxx-backup.xml files onto my main recording drive, just in case C:\ ever dies on me)
rwnz
Offline

Member

Posts: 89
Threads: 15
Joined: Aug 2006
#6
2012-07-20, 11:25 AM
I though batch files are meant to make things simple! I've put it into Scripts but when I run EPG Collector.exe from the bat file then EPG Collector.ini doesn't load but when I run EPG Collector.exe directly it does.
Hauppauge WinTV-HVR-2200, Intel C2D E8400; 4GB RAM; ASUS EN9400GT SILENT 512MB; Windows 10 Home 64 Bit; NPVR + EPG Collector. TVersity; Sony Smart TVs; Xtreamer Sidewinders. TV source: DVB-T
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#7
2012-07-20, 11:50 AM
That is just the same as your previous problem with the scheduler isn't it? It will also probably be running as something other than you as a user.
File ownerships? paths? Post your batch file and someone may spot the oddity.
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#8
2012-07-20, 09:30 PM
So it runs EPG Collector & in the EPG Collector log is says it can't find the ini??

You can also run it pointing to an ini files like I do after it collects my DVB-S data for my second collection, DVB-T data this time...

the normal collection

Code:
REM Make sure it is back at the root of C drive
c:
cd\

REM I have EPG Collector installed in a Progs directory
cd C:\Progs\EPG Collector\Program

REM run EPG Collector
EPGCollector.exe

the second collection pointing at a different ini file

Code:
REM Run EPG Collector using a different ini file
EPGCollector.exe /ini="C:\Documents and Settings\All Users\Application Data\Geekzone\EPG Collector\EPG-Collector(DVB-T).ini"

OK so this is for XP & on Win7 the ini will be in User\something but I did find I had to put the whole path into the line including drive letter for it to work.
rwnz
Offline

Member

Posts: 89
Threads: 15
Joined: Aug 2006
#9
2012-07-21, 05:52 AM
Thanks. I've got the batch file working now. It appears to have been because I was using
C:\ProgramData\EPGCollectorV020014\EPGCollector.exe
whereas I needed to use:
CD C:\ProgramData\EPGCollectorV020014\
EPGCollector.exe

However, I can't get NPVR to run it (nor will it wake my computer from sleep). I've checked in the wiki and seem to be doing it as per instructions. My batch file is:
Code:
Rem This batch file is triggered by NPVR at the time programmed into Settings-Misc2-EPG Update Hour and downloads the EPG data from Freeview DVB-T into Freeview MHEG.xml (in C:\ProgramData\EPGCollectorV020014). Completion of this triggers NPVR to update its EPG from the Freeview MHEG.xml file.

CD C:\ProgramData\EPGCollectorV020014\

EPGCollector.exe

My batch file is in the correct location and is named correctly:
[ATTACHMENT NOT FOUND]

The configuration of NPVR is:
[ATTACHMENT NOT FOUND]

I take it that 'EPG Update Hour' = 17 is 5pm.
Hauppauge WinTV-HVR-2200, Intel C2D E8400; 4GB RAM; ASUS EN9400GT SILENT 512MB; Windows 10 Home 64 Bit; NPVR + EPG Collector. TVersity; Sony Smart TVs; Xtreamer Sidewinders. TV source: DVB-T
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#10
2012-07-21, 11:01 AM
rwnz Wrote:However, I can't get NPVR to run it (nor will it wake my computer from sleep).

We would need NextPVR logs to check what is going on in that case.... the NRecord.log is the one I think after it should have woken the PC to update the EPG

Quote:I take it that 'EPG Update Hour' = 17 is 5pm.

Sounds right to me.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete Recording crashes NPVR Bobins 14 9,453 2016-12-20, 07:08 PM
Last Post: alibert
  How to auto update EPG guide listings buckeyestargazer 4 5,564 2015-11-24, 12:19 PM
Last Post: pascalb
  "TV Listings.dll" is causing NPVR to crash on startup. MarkHotchkiss 4 3,490 2013-07-14, 08:12 PM
Last Post: mvallevand
  How to add to NPVR? Dirki 15 9,330 2013-02-28, 09:34 AM
Last Post: Dirki
  npvr with ceton - bright house - tv guide/channel setup pvrdiy 23 12,752 2013-02-02, 10:09 PM
Last Post: pvrdiy
  TV Listings not reading NPVR.db3? OTAjunkie 3 3,088 2012-10-01, 02:10 PM
Last Post: OTAjunkie
  Cannot change Recurring->Update Season->Recording Type Petrovski 1 2,210 2012-08-12, 08:20 AM
Last Post: johnsonx42
  What files are required to keep a 2nd instal NPVR running TVListing current? OTAjunkie 1 1,729 2012-02-23, 05:12 PM
Last Post: alibert
  Feature Request: Update cover image Petrovski 1 1,687 2012-01-28, 10:42 AM
Last Post: alibert
  Use with NPVR in Client Mode? Share Database? smajor 8 9,843 2012-01-01, 03:16 PM
Last Post: alibert

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode