<$BlogRSDURL$>
Proceeds from the ads below will be donated to the Bob Wuesthoff scholarship fund.

Thursday, May 01, 2008

Tech: Gameday Audio Finally Works Under Linux, Mac

And now I am satisfied. Didn't have to do anything magical compared to last year, though there was a billing snafu I had to get corrected.

Update: Still having trouble with live feeds. I was using archived games last night and that seemed to work okay on my Linux desktop at home.

Labels: ,


Comments:
I had audio working on my laptop under Linux, and now it's broken again. It appears that they've switched to a Flash player that doesn't work on my system, even though every other flash site works. What a crock.
 
I got the Flash player on the Dodgers game today, but the older player on the Angels game tonight. Crazy.
 
As an alternative to using their website, check out mlbviewer, it's a Python script that allows you to easily listen and/or watch baseball using a curses interface.

http://sourceforge.net/projects/mlbviewer/

The devs has spent the last month ironing the bugs out, and it's pretty solid now. You simply run the script, select the game you want to watch/listen to, hit enter to watch the video (if you have that service) or hit a to listen to the audio. Setup takes all of five minutes. Honestly, it's a hell of a lot easier than what MLB has set up... give it a try
 
The problem I had with mlbviewer is that it's not self-contained (i.e., it uses at least one Python package that doesn't ship with the default configuration) and I had no idea how to proceed once that problem arose; is the missing package in Fedora somewhere? Is it part of a CPAN-like repository somewhere, and if so, where?
 
The name of the package you need to install is "python-simplejson" and I'm pretty sure it's included with Fedora. I haven't used a RedHat product since about 2001, so I'm not sure how your rpm repositories work any more, but suffice it to say you should just have to do the equivalent of "apt-get install python-simplejson" and you should be set. It doesn't look like they included that requirement in their README, I'll suggest they put it up at the top.

If you can't get it through apt or similar, you can find it for FC8 here:

http://rpm.pbone.net/index.php3/stat/4/idpl/5320069/com/python-simplejson-1.7.3-1.fc8.i386.rpm.html

and fc9 here:

http://rpm.pbone.net/index.php3/stat/4/idpl/6644053/com/python-simplejson-1.8.1-1.fc9.i386.rpm.html

I used rpm.pbone.net to find those rpms.

Let me know if you have any further trouble. I'll be glad to help.
 
We tried to make mlbviewer use the minimum amount of external dependencies. Our two choices for getting the listings are JSON (python-simplejson) or XML. Frankly, I think the original author made the right decision going with JSON over XML. I hope you were able to get simplejson through Fedora's package management. Otherwise, you can always install it manually from:
http://www.undefined.org/python/

If you have any other problems, post to the Sourceforge forum.

Cheers!
daftcat
 
That looks like a problem I fixed a couple of weeks ago. They changed their website so the pattern I was matching wasn't matching anymore. Try the 0.1alpha7 release. For more cutting-edge code, the svn release has a couple new features currently being tested: favorite team highlighting (so you can easily pick out your team from the list) and bookmarks so you can go back and listen to particularly memorable or momentous games without having to remember what date that game was played on. These two features are available only in the svn tree right now but should be in an official release in a couple of weeks.
 
Still blowing up:

Traceback (most recent call last):
File "./mlbviewer.py", line 704, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 577, in mainloop
u = g.url()
File "/home/rlm/src/mlbviewer-0.1alpha7/MLBviewer/mlbtv.py", line 533, in url
game_info = self.workflow()
File "/home/rlm/src/mlbviewer-0.1alpha7/MLBviewer/mlbtv.py", line 456, in workflow
self.login()
File "/home/rlm/src/mlbviewer-0.1alpha7/MLBviewer/mlbtv.py", line 436, in login
raise Exception, self.error_str
Exception: Login was unsuccessful.
 
Did you ever install it globally, e.g. ran setup.py? If so, you'll probably have to install this new version globally too. Otherwise, you may be running the new "gui" code with the old library. If this isn't the case, enable debugging and check the log file. You can email that log file to me at straycat000(at)yahoo(dot)com.
 

Post a Comment

Note: Only a member of this blog may post a comment.



Newer›  ‹Older
This page is powered by Blogger. Isn't yours?
Google

WWW 6-4-2