SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV EPG Service
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2006, 09:33 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
Force EPG update from command line

I remember reading a while back that Alon24 had a command line utility that would force an EPG update of sage. I've tried downloading his utilities but I keep getting an error with the zip file.

The reason I was interested is because I'm having a few problems with EPG downloading, nothing major, just niggles.

I download from the Radio Times via Alan Birtles EPG grabber, which works most of the time, but 3 or 4 times a week gets an error on a channel that bombs it out. I think its more of a radio times problem than the grabber as I can re-run it manually later in the day and it works fine.

Anyway, I've knocked up a kix script to run the EPG grabber and then check the log file to see if it was successful. If not, it will sleep for 10 minutes and try again. It will loop until its successful.

After that it runs StephaneM's XMLTV importer (donated version)

This all works perfectly, but at the end of the script I'd like to be able to force sage to update its EPG.

I know its no big deal as it will update eventually anyway, and I rarely have to go 14 days into the future to schedule a recording. I was just wondering if there was a utility anyone had that would do it. That way, I can just click on one batch file and the whole process is automated. It would be ideal for testing purposes as it would save me having to go to the web interface and force an update from there.
Reply With Quote
  #2  
Old 12-20-2006, 09:42 AM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
I need to check if the code works with v6.
this was an stvi that added support when the client (or server with ui) was working

My plan is to add it as a class that is run by the "run external class" like nielm's webserver

thats on the horizon,as I have just finsihed my moving and am starting to retake my intrest in sage.
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #3  
Old 12-20-2006, 09:52 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
Thanks for your quick response. You must sit here all day staring at the forum like I do

I'll be monitoring my scripts for the next few days and may have a play over christmas if I get chance.

I'm an old mainframe cobol programmer and not used to windows based programming languages, so it could take me a while to get my head around things.
Reply With Quote
  #4  
Old 12-20-2006, 10:17 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
I tried creating a shortcut to http://localhost:8080/sage/forceepgupdate and then calling that from a script so it runs minimised, then close it down, but I forgot it would ask for a user/password

Back to the drawing board...........
Reply With Quote
  #5  
Old 12-20-2006, 11:13 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by doc
I tried creating a shortcut to http://localhost:8080/sage/forceepgupdate and then calling that from a script so it runs minimised, then close it down, but I forgot it would ask for a user/password

Back to the drawing board...........
Try
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #6  
Old 12-20-2006, 11:41 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
Quote:
Originally Posted by jreichen
internet explorer 7 just gives an error saying "windows cannot find..."

firefox pops up the message "you are about to log onto the site 'localhost' with the username 'xxxx'. Then an OK and cancel button.

If I press OK it works, I just need to get round that message....
Reply With Quote
  #7  
Old 12-20-2006, 12:41 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
try a command line browser like lynx or a web page fetching tool like wget where you can specify the http user/pass on the command line...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #8  
Old 12-20-2006, 12:58 PM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
Quote:
Originally Posted by nielm
try a command line browser like lynx or a web page fetching tool like wget where you can specify the http user/pass on the command line...
smartypants

thank you very much, it works perfectly
Reply With Quote
  #9  
Old 12-20-2006, 02:48 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by doc
smartypants
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.