SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV v7 Customizations (http://forums.sagetv.com/forums/forumdisplay.php?f=47)
-   -   Plugin: Sage Recording Extender (SREv3) (http://forums.sagetv.com/forums/showthread.php?t=48413)

Slugger 05-20-2010 09:12 AM

Plugin: Sage Recording Extender (SREv3)
 
Welcome to the support thread for SREv3. This version of SRE requires SageTV v7. There are many key changes introduced in SREv3. The highlights include:
  • Support for the new SageTV event model
  • Support for the new SageTV Plugin Manager
  • Configuration of SRE settings via STV
  • Migration to new web service for event data (http://www.livepvrdata.com)
  • Complete overhaul of web interface

I apologize in advance for the lack of documentation, but I've been busy porting all my plugins to SageTV v7. Those familiar with SRE should find that, new looks aside, everything is pretty much the same.

One key change in SREv3 is the need for a Google Account. The Live PVR Data web service requires Google Account authentication. You must provide your Google Account id and password in order to use SREv3.

SREv3 is currently in beta. The beta tag is mainly to do with incomplete features. The port is not done, but monitoring of supported events is functional. Things like editing the global override map have not been ported yet, but will be before too long.

Please feel free to provide feedback and post support questions in this thread.

ohpleaseno 05-20-2010 12:10 PM

What does livepvrdata.com scrape?

Stuntman 05-20-2010 01:15 PM

Can't find web pages...
 
I just upgraded to Version 7 and installed your SRE plugin.. but the Sage web pages and the SRE pages no longer come up! They worked before upgrading, so I'm sure there is just something I've missed..

SRE shows as an installed plugin.. I have the webserver running on port 8500, at least that is what the GUI shows and it is where I had previously run it..

Has the directory structure changed? I used to use http://localhost:8500/sre

Is there some way to verify that the web service is running, other than NOT seeing the pages being served?

Slugger 05-20-2010 01:57 PM

Quote:

Originally Posted by ohpleaseno (Post 424491)
What does livepvrdata.com scrape?

Whatever it needs to determine the status of the requested event. :D With the move to this web service, SRE is no longer concerned with web scrapers, XML/JSON parsers, etc. SRE simply makes an RPC call to livepvrdata.com and livepvrdata.com returns a status object, which SRE then acts on. If you look at the source code for SREv3 you'll notice it's significantly smaller and makes no reference to espn.com or any other web site. All those yucky details of figuring out where to go for event info and how to parse it is no longer SRE's concern! :)

ohpleaseno 05-20-2010 01:59 PM

Quote:

Originally Posted by Slugger (Post 424585)
Whatever it needs to determine the status of the requested event. :D With the move to this web service, SRE is no longer concerned with web scrapers, XML/JSON parsers, etc. SRE simply makes an RPC call to livepvrdata.com and livepvrdata.com returns a status object, which SRE then acts on. If you look at the source code for SREv3 you'll notice it's significantly smaller and makes no reference to espn.com or any other web site. All those yucky details of figuring out where to go for event info and how to parse it is no longer SRE's concern! :)

I guess what I'm getting at is the list of sports that SRE can monitor expanded with livepvrdata.com expanded? That site isn't all that helpful because there is nothing there.

Specifically, is NASCAR now supported?

Slugger 05-20-2010 02:03 PM

Quote:

Originally Posted by Stuntman (Post 424541)
I just upgraded to Version 7 and installed your SRE plugin.. but the Sage web pages and the SRE pages no longer come up! They worked before upgrading, so I'm sure there is just something I've missed..

SRE shows as an installed plugin.. I have the webserver running on port 8500, at least that is what the GUI shows and it is where I had previously run it..

Has the directory structure changed? I used to use http://localhost:8500/sre

Is there some way to verify that the web service is running, other than NOT seeing the pages being served?

What do you get when you go to the url? Do you get a page not found (404) error or do you get a connection timed out error? If debug logging is enabled then you should be able to tell that Jetty started based on the output in the logs.

Slugger 05-20-2010 02:07 PM

Quote:

Originally Posted by ohpleaseno (Post 424588)
I guess what I'm getting at is the list of sports that SRE can monitor expanded with livepvrdata.com expanded? That site isn't all that helpful because there is nothing there.

Specifically, is NASCAR now supported?

No, but it may eventually be added. Currently, it's just the big 6: MLB, NFL, NHL, NBA, NCAA hoops, NCAA pigskin.

As to livepvrdata.com, it's a closed beta (very closed). Eventually that site will come to life with content, but for now it's just the web service that's running.

Stuntman 05-20-2010 03:17 PM

Quote:

Originally Posted by Slugger (Post 424590)
What do you get when you go to the url? Do you get a page not found (404) error or do you get a connection timed out error? If debug logging is enabled then you should be able to tell that Jetty started based on the output in the logs.

I get the following.. which isn't a 404...

Internet Explorer cannot display the webpage

How do I turn on debug logging and where does it keep it's logs? I'll turn it on, if it isn't already..

Thanks!

cat6man 05-20-2010 03:40 PM

are you sure this is working? i went to livepvrdata.com (your link above) and got the message 'come back later'

Slugger 05-20-2010 04:47 PM

Quote:

Originally Posted by cat6man (Post 424667)
are you sure this is working? i went to livepvrdata.com (your link above) and got the message 'come back later'

Yes, it's working. :) The web service portion is up and running, there's just no public web site yet. Everything works though.

Slugger 05-20-2010 04:49 PM

Quote:

Originally Posted by Stuntman (Post 424659)
I get the following.. which isn't a 404...

Internet Explorer cannot display the webpage

How do I turn on debug logging and where does it keep it's logs? I'll turn it on, if it isn't already..

Thanks!

Look for the plugins/sre directory under SageTV directory. In there should be an sre.log file. Is it being written to? Did you also install the web interface? Is it working? If not, disable and reenable the Jetty plugin; that may get you up and running as well.

cat6man 05-20-2010 06:39 PM

thanks so much for porting over SRE for us.
this is my one indispensable plugin.

however, since i have a game to record tonight, i won't get to play with v7
until tomorrow afternoon....i have to work in the morning, but i'll take a 1/2 day
vacation tomorrow to play with v7

cheers

cat6man 05-21-2010 11:09 AM

Quote:

Originally Posted by Stuntman (Post 424541)
I just upgraded to Version 7 and installed your SRE plugin.. but the Sage web pages and the SRE pages no longer come up! They worked before upgrading, so I'm sure there is just something I've missed..

i'm probably being dumb here but after a flawless 8 minute upgrade which went so smooth i almost couldn't believe it, i find that i cannot find SRE or nielm's web interface in the plugins.

what am i doing wrong?

thanks in advance

edit: my dumb.............looked for "sre" not sage recording extender

Slugger 05-21-2010 11:16 AM

As in you've installed them, but they don't appear to be loading or you can't find them in the plugin manager to install them? If the latter then you'll find them under the Standard plugin type.

cat6man 05-21-2010 11:32 AM

found it and it installed itself beautifully.
i had to give my cat an email account on gmail, but SRE is now
working fine.........i'll have to give her a kitty snack as a reward.

i checked the log and it seems to be operating fine.

first test is red sox vs. phillies tonight.

thanks again slugger

digression
{
why the *&&!@ do we get the phillies when the yankees get
the mets?
}
end digression

cat6man 05-21-2010 12:27 PM

using

http://192.168.1.111:8500/sre/SREClient.html

using the old web interface address, i get 404 not found error.

nielm's web interface works ok.

is there something else i need for web interface in SRE?

Slugger 05-21-2010 12:30 PM

Quote:

Originally Posted by cat6man (Post 425292)
using

http://192.168.1.111:8500/sre/SREClient.html

using the old web interface address, i get 404 not found error.

nielm's web interface works ok.

is there something else i need for web interface in SRE?

Try /sre/SRE3.html

EDIT: /sre/ by itself should also work.

(I know, I know :) It's been kind of a mad scramble to get all the plugins ported to v7 so you'll have to bare with me on the outdated/missing docs).

cat6man 05-21-2010 03:05 PM

Quote:

Originally Posted by Slugger (Post 425299)
Try /sre/SRE3.html

that one works for me!
now that plugin options can be changed within sage7 or the hd200, the only reason (i think)
to use the web access is for overrides.........is that your thinking also?

thanks once again

do you still want to get rid of the 'slug'?

edit: how often does SRE go out to check? i don't see a variable /option for that and i also didn't see
tonight's phillies/sox game with a check mark (that would indicate it was found?)

Slugger 05-21-2010 03:32 PM

Quote:

Originally Posted by cat6man (Post 425423)
that one works for me!
now that plugin options can be changed within sage7 or the hd200, the only reason (i think)
to use the web access is for overrides.........is that your thinking also?

Yes.

Quote:

do you still want to get rid of the 'slug'?
??

Quote:

edit: how often does SRE go out to check? i don't see a variable /option for that and i also didn't see
tonight's phillies/sox game with a check mark (that would indicate it was found?)
Check frequency is no longer a configurable option - I'm limited by the web service constraints. Prior to the day of an event SRE will check the validity once a day. On the day of an event it will check approximately 30 mins before the scheduled start time of the recording (however, I don't think SRE is doing this permitted check [yet]). It will check again when the recording starts then it will sleep until 30 mins before the scheduled end of the recording at which time it will check every two minutes until the event is determined to have completed.

Do you have a warning symbol? Or just blank? When the recording starts it will definitely check again. Keep an eye on SageTV\plugins\sre\sre.log. Ensure there are no Google Account auth errors - that will prevent SRE from doing anything.

cat6man 05-21-2010 06:00 PM

Quote:

Originally Posted by Slugger (Post 425439)


Do you have a warning symbol? Or just blank? When the recording starts it will definitely check again. Keep an eye on SageTV\plugins\sre\sre.log. Ensure there are no Google Account auth errors - that will prevent SRE from doing anything.

i see only yellow triangles for all recordings.
i'll check log file shortly

p.s. vernon wells?


All times are GMT -6. The time now is 12:30 PM.

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