SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-25-2006, 09:10 AM
Mahoney Mahoney is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 483
EPG plugin controlling a tuner?

I'd like to write an EPG plugin to get EPG data from a DVB-S stream. I'm wondering if I could use the existing EPG plugin mechanism to do this. I would need to query Sage to find out when it would next be using the DVB-S tuner, as obviously at that point I would need to let it tune to the station to be recorded, and I would need to query when Sage had finished using it so that I could take control of it again. Is that possible via the API? Via Studio? Looking around to try and work out what the most appropriate hook is, really.
__________________
Server:
Sage 6.1.9, Java 1.6.0_01, AthlonXP 3000+, 512MB RAM, Terratec Cinergy 2400i, Technotrend S2-3200

Client:
Sage Client 6.1.9, Java 1.6.0_01, AthlonXP 3000+, 512MB RAM, GeForce 6150, ForceWare 93.71, nForce 8.26, PureVideo 1.02-223, SageMC 6.3.2c
Reply With Quote
  #2  
Old 10-25-2006, 11:30 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
off the top of my head:

You would need something (java thread within sage? Separate app?) which captures the EPG data and saves it to a temp file

You would a thread in Sage which can inform the tuner EPG grabber task when the next scheduled recording is coming on that device (there are normal API calls for this), so that the task can release the tuner to Sage before then.

There are no asynchronous calls to Java plugins (so you cannot be told a few ms before Sage starts using the tuner)

This would mean that LiveTV on that tuner may not be possible, but you could do things like schedule the EPG grab for 3am!

You would also need to write an EPG plugin which passes the on-disk info to Sage when Sage triggers its epg update every 24h...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #3  
Old 10-25-2006, 12:10 PM
Mahoney Mahoney is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 483
I had a vague recollection that you could trigger an EPG update whenever you want, via the API?

Quote:
There are no asynchronous calls to Java plugins (so you cannot be told a few ms before Sage starts using the tuner)
That would be an issue; I wonder if you could set up a watcher thread to check the next scheduled recording every second or even less and free the tuner up rapidly enough to stop Sage falling over?

Guess it's time to start playing around, anyway. Thanks!
__________________
Server:
Sage 6.1.9, Java 1.6.0_01, AthlonXP 3000+, 512MB RAM, Terratec Cinergy 2400i, Technotrend S2-3200

Client:
Sage Client 6.1.9, Java 1.6.0_01, AthlonXP 3000+, 512MB RAM, GeForce 6150, ForceWare 93.71, nForce 8.26, PureVideo 1.02-223, SageMC 6.3.2c
Reply With Quote
  #4  
Old 10-25-2006, 02:30 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by Mahoney
I had a vague recollection that you could trigger an EPG update whenever you want, via the API?
yes, kind of, you can simulate enabling and disabling a channel in the source setup: here is the code which does it from my webserver
__________________
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)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:17 AM.


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