New wiki page:
http://gbpvr.com/pmwiki/pmwiki.php/Plugin/SportsScores
Disclaimer -- this is my first real plugin -- please be gentile! :p
I've put together a very basic sports scores plug-in (mostly as a proof of concept) and am making it available for download. Note that this is very much version 1.0, so don't expect a whole lot.
Details:
-> Has been compiled against .NET 2.0, so only GB-PVR 97.9 and up is supported.
-> Will display current scores of Major League Baseball, NHL, and the World Cup
-> Grabs an HTML page from cbs.sportsline.com and parses it for display.
-> Features a manual refresh button to update the scores.
Installation instructions:
-> Download the attached zip file and extract in your devnz directory (no fancy installer)
-> Make sure you have GbpvrUiElements installed.
-> Activate the plugin via the config app. Choose which leagues you would like to view, specify your favorite teams (which will always appear on top), and indicate whether you would like the ticker to be defautled on or off as well as the time interval between score updates.
NOTE: To enable the ticker, you MUST manually edit the config.xml file like so:
Use any available number -- not necessarily #4.
Future considerations:
-> Go back and view results of previous days as well as future matchups. (done -- 1.2)
-> Provide data for more sports (duh!)
-> Enable a configurable automatic refresh (ticker automatically refreshes in 1.4.)
-> Configure which leagues you are interested in (also for turning off leagues in the off-season) (done -- 1.3)
-> Select a game to view the details
-> Ticker to display scores while watching a program (done -- 1.4)
-> Specify favorite teams to always display those on top (Regular expression?) (done -- 1.3)
File manifest:
gbpvr/HtmlAgilityPack.dll
gbpvr/skin/blue/SportsScores/skin.xml
gbpvr/plugins/SportsScores.dll
Changelog:
1.1:
-> Correctly displays information for games that are not yet underway for MLB and WorldCup.
1.2:
-> Correctly displays information for games that are not yet underway for NHL.
-> Use the yellow and blue buttons to view previous and future dates. Use the red button to view today's scores.
-> Fix bug in MLB part of skin where it had the team data associated with the wrong team.
1.3:
-> Specify which sports to view via the config app
-> Refactored code for easy exapansion
-> Specify favorite teams which will always be displayed on top of the list (Supports regular expressions)
1.4:
-> Ticker can now popup latest scores on-screen while watching a video/program. Ticker intervals are configured via the config app, and can be enabled/disabled on-screen though the plug-in screen.
-> Fixed a bug with the refresh button where you could no longer control the plugin via the remote when it was selected.
1.5 (in testing):
-> Added Tennis Support -- tennis does not work with ticker yet
-> Improved support for tennis matches in progress.
-> Advanced ticker support -- now you can show only your favorite teams on the ticker.
-> Added CFL Support -- check it out, eh?
Screenshots
http://gbpvr.com/pmwiki/pmwiki.php/Plugin/SportsScores
Disclaimer -- this is my first real plugin -- please be gentile! :p
I've put together a very basic sports scores plug-in (mostly as a proof of concept) and am making it available for download. Note that this is very much version 1.0, so don't expect a whole lot.
Details:
-> Has been compiled against .NET 2.0, so only GB-PVR 97.9 and up is supported.
-> Will display current scores of Major League Baseball, NHL, and the World Cup
-> Grabs an HTML page from cbs.sportsline.com and parses it for display.
-> Features a manual refresh button to update the scores.
Installation instructions:
-> Download the attached zip file and extract in your devnz directory (no fancy installer)
-> Make sure you have GbpvrUiElements installed.
-> Activate the plugin via the config app. Choose which leagues you would like to view, specify your favorite teams (which will always appear on top), and indicate whether you would like the ticker to be defautled on or off as well as the time interval between score updates.
NOTE: To enable the ticker, you MUST manually edit the config.xml file like so:
Code:
<VideoPlugin4>Sports Scores</VideoPlugin4>
Use any available number -- not necessarily #4.
Future considerations:
-> Go back and view results of previous days as well as future matchups. (done -- 1.2)
-> Provide data for more sports (duh!)
-> Enable a configurable automatic refresh (ticker automatically refreshes in 1.4.)
-> Configure which leagues you are interested in (also for turning off leagues in the off-season) (done -- 1.3)
-> Select a game to view the details
-> Ticker to display scores while watching a program (done -- 1.4)
-> Specify favorite teams to always display those on top (Regular expression?) (done -- 1.3)
File manifest:
gbpvr/HtmlAgilityPack.dll
gbpvr/skin/blue/SportsScores/skin.xml
gbpvr/plugins/SportsScores.dll
Changelog:
1.1:
-> Correctly displays information for games that are not yet underway for MLB and WorldCup.
1.2:
-> Correctly displays information for games that are not yet underway for NHL.
-> Use the yellow and blue buttons to view previous and future dates. Use the red button to view today's scores.
-> Fix bug in MLB part of skin where it had the team data associated with the wrong team.
1.3:
-> Specify which sports to view via the config app
-> Refactored code for easy exapansion
-> Specify favorite teams which will always be displayed on top of the list (Supports regular expressions)
1.4:
-> Ticker can now popup latest scores on-screen while watching a video/program. Ticker intervals are configured via the config app, and can be enabled/disabled on-screen though the plug-in screen.
-> Fixed a bug with the refresh button where you could no longer control the plugin via the remote when it was selected.
1.5 (in testing):
-> Added Tennis Support -- tennis does not work with ticker yet
-> Improved support for tennis matches in progress.
-> Advanced ticker support -- now you can show only your favorite teams on the ticker.
-> Added CFL Support -- check it out, eh?
Screenshots
GBPVR v1.0.16 | Comskip | SportsScores | Weather | I-XmlTV
Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600
Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote
Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600
Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote