NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 30 31 32 33 34 … 56 Next »
Sports Scores Plugin v1.0

 
  • 0 Vote(s) - 0 Average
Sports Scores Plugin v1.0
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#1
2006-06-18, 04:41 AM (This post was last modified: 2006-07-31, 04:12 AM by Spartan.)
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:

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
kayleigh
Offline

Senior Member

Posts: 321
Threads: 18
Joined: Oct 2004
#2
2006-06-18, 04:46 AM
Too cool! Is there a way to pull NFL scores?
[SIZE=1]
HD PVR: nPVR 4.2.2 with VLC 3.0.3 Std Skin
ASRock H170M Pro4 LGA 1151 Intel H170 HDMI-out, Intel Core i3-6100 3.7GHz, 16GB DDR4 2400, Win7 Ultimate x64, Hauppauge Colossus, 1x250GB SSD (System), 1x1TB SATA (Recordings), DirecTV HD22 STB, dtvTune.exe Ethernet channel changer

Running Samsung Smart TV plugin from Fred250
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#3
2006-06-18, 04:49 AM
kayleigh Wrote:Too cool! Is there a way to pull NFL scores?

...and you want to pull NFL scores in mid-June because........ :p

Of course there is. I just have to program it (will happen when the season rolls near).
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
kayleigh
Offline

Senior Member

Posts: 321
Threads: 18
Joined: Oct 2004
#4
2006-06-18, 06:51 PM
Yep, I thought about that with getting NHL scores... next week Smile
[SIZE=1]
HD PVR: nPVR 4.2.2 with VLC 3.0.3 Std Skin
ASRock H170M Pro4 LGA 1151 Intel H170 HDMI-out, Intel Core i3-6100 3.7GHz, 16GB DDR4 2400, Win7 Ultimate x64, Hauppauge Colossus, 1x250GB SSD (System), 1x1TB SATA (Recordings), DirecTV HD22 STB, dtvTune.exe Ethernet channel changer

Running Samsung Smart TV plugin from Fred250
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#5
2006-06-18, 11:51 PM
Ok -- so theres a problem with games that have not been played yet. New version forthcoming when fathers day & my birthday is overwith. Smile
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
kayleigh
Offline

Senior Member

Posts: 321
Threads: 18
Joined: Oct 2004
#6
2006-06-19, 03:11 AM
Nah - I'd just display "No Results For CurrentDate". Otherwise, I'm sure SportsLine displays furture games for the same day (that's where you're grepping the data from, right?)
[SIZE=1]
HD PVR: nPVR 4.2.2 with VLC 3.0.3 Std Skin
ASRock H170M Pro4 LGA 1151 Intel H170 HDMI-out, Intel Core i3-6100 3.7GHz, 16GB DDR4 2400, Win7 Ultimate x64, Hauppauge Colossus, 1x250GB SSD (System), 1x1TB SATA (Recordings), DirecTV HD22 STB, dtvTune.exe Ethernet channel changer

Running Samsung Smart TV plugin from Fred250
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#7
2006-06-19, 07:56 AM
Thanks Spartan for a nice plugin.....works perfect for me.
Nice to have now in Worldcup times.
Modified the skin for the BaseSkin.
You can include the skin in the plugin if you want to.
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#8
2006-06-19, 08:22 AM
Looks like this with MCE2HDee Theme in the BaseSkin
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#9
2006-06-19, 02:12 PM
kayleigh Wrote:Nah - I'd just display "No Results For CurrentDate". Otherwise, I'm sure SportsLine displays furture games for the same day (that's where you're grepping the data from, right?)

Yes, that's true. I have enhanced the plugin to now display games that have not been played (version 1.1 -- see the original post)

Screenshots of this feature:
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
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#10
2006-06-19, 02:16 PM
MixMan Wrote:Thanks Spartan for a nice plugin.....works perfect for me.
Nice to have now in Worldcup times.
Modified the skin for the BaseSkin.
You can include the skin in the plugin if you want to.

Hey -- thanks, it looks nice.

What exactly did you change? I think that the current skin will change often, especially in the early going, so it would be helpful to know how the skin differs...
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  New plugin - MovieTrailers imilne 11 6,184 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,368 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,423 2014-01-09, 11:16 PM
Last Post: mvallevand
  Plex Plugin - first release psycik 141 59,223 2013-06-16, 08:59 PM
Last Post: JonnyCam
  Web Cams plugin for NextPVR McBainUK 37 15,555 2012-10-19, 07:35 AM
Last Post: McBainUK
  PhotoFilter: New Photos/Videos plugin to browse using metadata cncb 1 1,992 2012-08-10, 04:06 PM
Last Post: cncb
  Any interest in a Spotify Plugin for NextPVR? McBainUK 38 14,079 2012-05-22, 05:37 AM
Last Post: McBainUK
  System Plugin - CPU Temperature Monitoring imilne 1 2,028 2012-03-28, 07:59 PM
Last Post: LegioX
  System Plugin - 2nd Test Release (4th Feb) imilne 31 10,756 2012-02-24, 12:22 PM
Last Post: Reddwarf
  System Plugin - New Test Release (29th Jan) imilne 38 11,063 2012-02-07, 08:38 AM
Last Post: imilne

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

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

Linear Mode
Threaded Mode