![]() |
I've also updated the script -- now you can select days by using the side arrows.
Download from the same place (link on the previous page). I'll just keep replacing it until it seems worthwhile to start giving version numbers. I'll let you know when I make significant changes. I've looked at pylirc, and that seems like it should work for adding remote control support, so pretty soon, using Theophile's button, there should be clunky but workable mythtv support. (I personally prefer a full screen transparent terminal.) |
I got a fullscreen transparent terminal using konsole profiles, class names, and wm rules. I'm not using compiz/beryl on my MythTV machine, but if you are, it's a lot easier t get a transparent terminal. I also significantly increased the font size and I'm using Xine for playback because it handles buffering better and has the ability to change the aspect ratio on the fly.
I love it! Thanks! |
Hacked mlbviewer.py to do radio, away streams only
I just hacked up your brilliant mlbviewer.py script to deal with gameday audio. I did just enough to make it work....away streams only.
One difference is that the text section of the JSON just has the radio station call letters. Code:
--- mlbviewer.py 2008-04-05 14:49:40.000000000 -0400 |
That's great. Thanks for the patch. When I get done with my current project (adding lirc support), I'll see if I can fold that in to the larger script. Maybe press "v" for video, "a" for audion, or something...
|
Quote:
|
Update: I made a few more minor changes in day switching (makes sure you can't select non-games, etc), and fixed a problem with refreshing I introduced in the second version. If you're using it, you should probably download the version online now. Sorry about that -- release early, release often, and all that.
|
If I may make a suggestion:
In the next revision, I think it would be helpful to move the player configuration (PLAYER =) and the stream selection (400k or 800k) to the .mlbtv config file containing the username and password. That way, we don't have to reconfigure those items every time the script is revised. That said, this really is an amazing piece of work. Even better than Mosaic IMHO. It's simple and it actually works! |
Trying a live game for the first time. Got "connection reset" messages, both in firefox and in the script. Finally those went away and I got this (using latest version):
Code:
pgk@pgk-desktop:~$ python mlbviewer.py |
Maybe you all could help me out with getting this to work. I made the mlbviewer.py file & the password file. I installed ClientForm, ClientCookie, and simplejson, but when I try to run it, I get:
[don@localhost ~]$ python mlbviewer.py Traceback (most recent call last): File "mlbviewer.py", line 48, in <module> import ClientCookie ImportError: No module named ClientCookie It looks like it isn't finding ClientCookie (but what do I know?) ClientCookie is in /usr/lib/python2.2 directory. Assume I know very little about Linux and nothing about python. Thanks |
Python 2.2? Maybe you need 2.4, that's what I'm running. At any rate go to your package manager (I guess Fedora uses Synaptic?) and search for clientcookie. It should be the only package containing that in the name. Make sure it's marked as installed.
|
Quote:
|
No, I just tried again after a few minutes. The game was stuttering a little at times too (and my connection is plenty fast), and there was the firefox message right before it, so I think their servers aren't coping well. Works for me at this moment though.
|
Thanks for reporting the errors.
I just tried the chisox/tigers game and it didn't work. Looked closely and it turned out that it was part of their weekend nationalblackout rules. I don't think that was the issue with the links earlier in the day, but they might still be working out the kinks. Anyway, as it is now, the script isn't capable of telling you it's blacked out ahead of time (or just not listing it) but the information is available in the listing, so I'll get it in in the next version. Local team blackouts will require a more elegant error message, which I'll also add in. |
Quote:
|
Hi jkr,
I get the following when trying to run mlbviewer.py: matthew@tango:~$ ./mlbviewer.py File "./mlbviewer.py", line 78 class MLBSchedule(): ^ SyntaxError: invalid syntax Vague and frustrating, isn't it? And I thought oracle error tracebacks were bad. :-( I'm using Debian Etch with python2.4 installed plus python-clientcookie, python-clientform, and python-simplejson. If I can get this working, I can add this to my howto page if you'd like. Thanks, Matthew |
All times are GMT -5. The time now is 07:26 PM. |