FAQ  •  Register  •  Login

NHL Gamecenter Live

<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Wed Jan 11, 2012 3:02 am

NHL Gamecenter Live

I have completed my NHL Gamcenter Live plugin for Serviio. Version 0.6.1 of Serviio or greater is required to use it. The plugin also has an external dependency on groovy http-builder which can be found here http://groovy.codehaus.org/modules/http-builder/. What I have done on linux to accomodate the external dependency is to create a new folder somewhere and extract all the jars from the http-builder archive into that directory and then update bin/serviio.sh to add this to the classpath. You should be able to do something similar on the other platforms; worst case, add the jars to serviio/lib (zip probably won't like this idea though).

Once you have all that goodness working, all you should need to is add a new Web Resource Item in the console with URL http://www.nhl.com/ice/gamecenterlive.htm and change the user name and password to your gamecenter username and password in the attached NHLGameCenterPlugin.groovy (at the top) then you should be rocking live hockey in Serviio!

I have been the only tester for this so far, so any questions or issues please post in this thread.

Here is a video showing it on my Samsung D series TV: http://t.co/cY5IuOPu
Attachments
NHLGameCenterPlugin.groovy
NHL Gamecenter Live plugin
(7.99 KiB) Downloaded 1119 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 11, 2012 10:21 am

Re: NHL Gamecenter Live

Good job Craig, what exactly do you need from HttpBuilder? Maybe we can take the discussion to the plugin dev forum.
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Tue Jan 17, 2012 11:14 am

Re: NHL Gamecenter Live

Hi Craig, i put this groovy file in my plugins folder then add the Web Resource  in the console and that's it? ( i also added my username and pw in the file as instructed ) cause i've done that and hav'ent got anyerthing in my folder, i'm new to serviio world but i would really love to get this thing working! Thanks from Sweden
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Tue Jan 17, 2012 6:41 pm

Re: NHL Gamecenter Live

2012-01-17 19:40:34,188 WARN [PluginCompilerThread] Plugin NHLGameCenterPlugin.groovy failed to compile: startup failed:
/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 9: unable to resolve class groovyx.net.http.ContentType
@ line 9, column 1.
import static groovyx.net.http.ContentType.*
^

/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 9: unable to resolve class groovyx.net.http.ContentType
@ line 9, column 1.
import static groovyx.net.http.ContentType.*
^

/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 51: unable to resolve class HTTPBuilder
@ line 51, column 16.
def tvHttp = new HTTPBuilder(tvAuthUrl);
^

/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 103: unable to resolve class HTTPBuilder
@ line 103, column 16.
def tvHttp = new HTTPBuilder(tvReqUrl);
^

/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 136: unable to resolve class HTTPBuilder
@ line 136, column 22.
def tvGameHttp = new HTTPBuilder('http://gamecenter.nhl.com');
^

/Users/imac/Downloads/serviio-0.6.1-osx 2/Serviio.app/Contents/Resources/Java/plugins/NHLGameCenterPlugin.groovy: 212: unable to resolve class HTTPBuilder
@ line 212, column 16.
def tvHttp = new HTTPBuilder(tvReqUrl);
^

6 errors






//// I get this in logs.. Please help me out on this one...Really appreciate it!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 17, 2012 8:08 pm

Re: NHL Gamecenter Live

You will need the http-builder library as described above
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Tue Jan 17, 2012 8:21 pm

Re: NHL Gamecenter Live

Ok, thanks for your response but i was on that site tryin to figure out what i need from their and where to put it on my mac?

Thanks again buddy for help!
<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Tue Jan 17, 2012 9:14 pm

Re: NHL Gamecenter Live

As a first step I would try to use Grape. I didn't have much luck with it, but I plan to try it again on 0.6.2. To try it, add the following line to the very top of the groovy file:

  Code:
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2' )


Let me know how it works.
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Tue Jan 17, 2012 9:48 pm

Re: NHL Gamecenter Live

oh i'm getting so frustrated, i added the string as you said but now i'm having issues with getting logs, and for the matter it doesn't show up on my tv!

Any more ideas on this and maybe whats up with my logging...
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Tue Jan 17, 2012 10:00 pm

Re: NHL Gamecenter Live

ok here is some log

2012-01-17 22:59:07,807 WARN [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://www.nhl.com/ice/gamecenterlive.htm. Message: No plugin for web resource http://www.nhl.com/ice/gamecenterlive.htm has been found.
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:177)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:184)
at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:158)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:95)


Thanksagain!
<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Wed Jan 18, 2012 1:36 am

Re: NHL Gamecenter Live

looks like the plugin didnt get loaded there. was this after you added the @Grab? if so, you should try to manually add the dependencies. I don't know where they go on mac. maybe someone else can help with that
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Wed Jan 18, 2012 11:08 am

Re: NHL Gamecenter Live

What do you mean with "dependencies" ? This log is after i updated it with the line you asked to add.

You think i should delete that aswell?

BR
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Wed Jan 18, 2012 11:23 am

Re: NHL Gamecenter Live

Ah now i get it, but haven't tried it yet, you think i should insert this in the groovy file?

<dependency>
<groupId>org.codehaus.groovy.modules.http-builder</groupId>
<artifactId>http-builder</artifactId>
<version>0.5.2</version>
</dependency>

?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 18, 2012 11:27 am

Re: NHL Gamecenter Live

I assume you have to store this file http://repository.codehaus.org/org/code ... -0.5.2.jar into the lib folder (next to the other .jar files) inside Serviio.app and restart the app.
<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Wed Jan 18, 2012 1:49 pm

Re: NHL Gamecenter Live

<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Wed Jan 18, 2012 2:21 pm

Re: NHL Gamecenter Live

Ok, thanks guys i'll add these files in that folder and we'll see how it works!

CraigD - Do you think i should keep that first line in the groovy file wich you recomended?..
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Jan 18, 2012 2:23 pm

Re: NHL Gamecenter Live

The line was supposed to fetch the required files and put them in the correct place. If you are adding those files yourself, I would assume you do not need that extra line and can leave the file as it was (except for username/password changes etc)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Jan 18, 2012 3:38 pm

Re: NHL Gamecenter Live

I was getting alot of errors from this plugin, so I removed it from the directory.

CraigD wrote: change the user name and password to your gamecenter username and password in the attached NHLGameCenterPlugin.groovy (at the top) then you should be rocking live hockey in Serviio!



Is there any way to stop the plugin if the username and passord is not changed with out downloading the required files.

The plugin might already do this, cause I did not downlaod the required extra files.

Basically can the plugin stop itself without downloading any files, unless a user puts in his username and password.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Wed Jan 18, 2012 5:36 pm

Re: NHL Gamecenter Live

CraigD
Streaming enthusiast
Posts: 46
Joined: Tue Nov 08, 2011 2:05 pm
Wed Jan 18, 2012 1:49 pm
Re: NHL Gamecenter Live
You actually may need all the jars from http://repository.codehaus.org/org/code ... .2-all.zip


Craig - I unzipped this file now and it's a folder named http-builder-0.5.2 with content within it , should i place this file like this?

serviio (NOT console) - contents - resources - java -library - http-builder-0.5.2

Thanks!!
<<

jockebure

Serviio newbie

Posts: 19

Joined: Tue Jan 17, 2012 11:13 am

Post Wed Jan 18, 2012 5:50 pm

Re: NHL Gamecenter Live

Took a screenshoot of how it lays now... http://imageshack.us/photo/my-images/82 ... kl184.png/
<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Wed Jan 18, 2012 5:54 pm

Re: NHL Gamecenter Live

They need to be in the lib folder not the library folder... you also need to flatten it so that all the jars are together in there at the top level. I believe the zip has some subfolders in it.
Next

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.