![]() |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
That definitely is odd, last update I did a complete removal of the data file directory and didn't run into the error you're reporting. Have you done anything odd with your user directory, or with permissions? Are you sure that the path it mentions is "/.mlb"?
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I reflashed n810 and all ok, so I must have screwed up the directory. Sorry for false alarm. j
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
No need to apologize, I could have easily screwed up coding a file path. I try hard to define path's at the beginning of the file and then just refer to them by name in my methods, but sometimes I forget or ignore it cause it will be a "quick fix".
Glad you got it to install and run. It does leave me curious as to what the problem was. I think that the home directory is looked up from the environmental variables, rather than hard coded as "/home/user", so if that variable was changed, or inaccessible, the path joining function may have assumed the root directory. Ironically, I started using this method to try and make the app "cross platform", since the home path usually depends on the user on other versions of linux, and on windows. I didn't expect that the variable could get messed up. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I'm not sure if anyone is still using mlbviewer, but I've uploaded some changes to garage.maemo.org. I have added scores and innings, support for the hardware volume key for mplayer, and support for the hardware fullscreen key.
https://garage.maemo.org/projects/mlbviewer-gui/ mlbviewer_gui-0.1.1-3_all.deb python-mlbviewer-0.0.5-3_all.deb You MUST uninstall mlbviewer_gui before installing the new mlbviewergui. I had to change the package name because the version of dpkg-deb that I used won't allow underscores. You don't need an account to view the scores. The scores do not automatically refresh, you need to hit the refresh button. I didn't want to take up too many cycles. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I have uploaded mlbviewer_gui-0.1.1-4_all.deb to garage.maemo.org.
My last fix messed up the config panel. It should be ok now. Sorry. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Is the simple-json module still required?
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Quote:
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
It seems mediaplayer isn't very resilient when connecting over cellular. So if I lose connectivity it errors out. Do you think mplayer or kmplayer might be better? It should "just work" if i change it in the config?
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I use mplayer, but I'm not connecting over cellular. You can specify a cache size for mplayer. A larger buffer might help. Change your .mlb/config file's 'audio_player' line to:
audio_player=mplayer -cache 1024 That will give you a 1 Mb cache - that might be too large. You'll have to play around with it. I'm not sure what the default cache size is. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Will mlbviewer to work with the n900?
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Maybe? From what I've read, Python will run. I would assume there will be an mplayer built (or you can use a different audio player). So the audio should work at least. As far as video, no. I don't know if there will be support for flash 10 on the N900, and the flash support doesn't matter anyway because all the mlbviewer code to do the video is no longer valid since mlb changed stuff at the start of the '09 season, so that's two strikes. I don't have any current plans to buy an N900, so I won't be able to test it.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Hello, anyone still out there? I can't test mlbviewer yet for 2010. MLB is not allowing subscriptions until March 15 for the Windows Mobile platform. While browsing the mlb web site, I came across a stripped down version for Gameday Audio. Does anyone subscribe to the full mlb.tv or regular Gameday Audio?
If so, can you try this link from your N810's browser: http://mlb.mlb.com/media/player/mpa/index.jsp It looks like this might just work on the NIT. The player does not appear to be flash based. And MLB is claiming support for the iPad, which will not do flash. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Quote:
I've also been thinking about a couple things I could do to revamp the application. In my random internet searching I ran across the xml data files used by the mlb scoreboards, box scores, and live game data. I'm starting work on .Net application to run on my desktop, but will be looking to port it to python and my n810 after I've figured out the data structure. No promises of course, but I'm going to see what I can do. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Quote:
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I'm having a problem with mlbviewer opening. I've downloaded the 4/30/09 version and it shows up as loaded and the icon appears. When I click on icon it shows "mlbviewer loading" but it doesn't load. Can you advise what I might do to get it working. Thanks.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
You need to have all three parts, python-simplejson, python-mlbviewer and mlbviewer-gui. You should download the latest of each - 4/30/09 is not the latest. It should open and show the games and scores, but the audio will not work yet. MLB has pushed back the date for Windows Mobile audio to at least March 18th.
To help diagnose the problem, open an xterm window and start: python /usr/lib/mlbviewer_gui/mlbviewer_gui.py |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Thanks for the help.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Hi. I downloaded the latest versions and ran the xterm line you suggested. Result: "not found". The application manager lists all three elements as installed. Any ideas? Thanks.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I just downloaded it to a recently flashed tablet image, and didn't have any issues. Do you know if you have python installed? (If you just type the command "python" at the command line, does it still say "not found" or does it give you a new prompt?).
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Quote:
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
It looks like you have python installed. If you type 'python xyz' it will tell you 'can't open file xyz'. The 'not found' error is when a program (like python) is not in the path.
Can you post a screen shot (or cut and paste) the exact line you typed and the exact error? |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
MLB Viewer for maemo lives! I kept sending mlb.com emails asking if they were going to support Windows Mobile streams this year and I kept getting a canned answer that didn't answer my question. I finally gave up and signed up for the regular Gameday Audio (which looks like they are calling At Bat with Audio). Just for fun, I tried mlbviewer, but it didn't work. I did some poking around on the xml for the electronic program guide and found something that changed, tweaked the code, and presto, I was listen to a game on the N810.
No special mobile account needed this year! Use the regular audio package. It costs $19.95 this year. There isn't an obvious place to sign up just for the audio, so here it is: http://mlb.mlb.com/media/player/mpa/index.jsp I have uploaded the change to: https://garage.maemo.org/frs/?group_...elease_id=3453 Download and install python-mlbviewer-0.0.5-4_all.deb I'm noticing a timezone problem. I will try to look at it this weekend. I would also like to remove the dependence on the JSON code and add the ability to pick the home or away audio stream. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I knew it was a good idea to give let you update those files! Glad you were able to figure it out. Looking at the "At bat" interface, it does a number of things better than Gameday used to, and it even seems to be running better on my laptop. Unfortunately, I can't seem to find the logout button, so I'm locked out of the audio on my tablet for a while to check the new file out. I'll try it out tomorrow.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Yeah, the logout button kept disappearing on me yesterday too. I see it there today. I ended up clicking on 'low-bandwidth' and was able to log out from there.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I have uploaded mlbviewer_gui-0.1.1-5
https://garage.maemo.org/projects/mlbviewer-gui/ I have fixed the timezone issue. I have removed the dependency on simplejson and python-mlbviewer. I moved the mlbtv.py and config.py into the mlbviewer_gui package. One package is easier than 3 :-) You can: Uninstall mlbviewer-gui, python-simplejson and python-mlbviewer, then install mlbviewer_gui. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I have uploaded a new version - and changed the version name to include 2010, since MLB changes stuff every year, might as well make it obvious.
https://garage.maemo.org/frs/?group_...elease_id=3455 Download and install mlbviewer_gui-0.2010.1_all.deb This change includes the ability to listen to the home or away audio feed without changing the audio_follow setting in the config file. I also added the venue name and team records on the game page. Hopefully it will keep working tomorrow :-) |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Works great! I listened to games last night and I'm listening now. Thanks for all your efforts. John Dalton
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I am having trouble with this app on my N900. I originally installed only mlbviewer_gui-0.1.1-5 and I got an error. (I think it was the "not found" error but can't remember exactly.) I then upgraded to mlbviewer_gui-0.2010.1 and received the same error. (My login and password were entered on both of these occasions.)
I then installed python-mlbviewwer-0.0.5-4 and could finally see the schedule for the day. However, when I click on a game in progress and then either home or away, I end up with the following error: Error fetching URL: Login was unsuccessful Again, my login and password are entered and they work just fine for Gameday Audio on my laptop. Any advice? |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I have an n900, and "at bat" aka gameday audio, I had put the "old" mlbviewer gui on and always got
"error fetching url login was unsuccessful" when i cliked on a audio stream. I have uninstalled the old mblviewergui and related programs, and installed the new 2010. I still get the same error every time. I have tried logging in and out of the mlb media center etc. Im really dying to get this working. If any one has any help or info, i would really appreciate it. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I don't have a 900, so I can't say for sure what the problem is without more info. First, what version of Python is on the 900? Open an xterm window and type python. The first line will say what version is used. Type 'quit()' or Ctl+D to exit Python.
From the xterm window, type: python /usr/lib/mlbviewer_gui/mlbviewer_gui.py If it is up and running and you see the games listed, that's a good start. Open the configuration panel. Is 'Use Mob' checked? It is required. Confirm your username and password are correct. Click on the Player Config tab. Does the 'audio' entry say 'mplayer'? Save your config if you made any changes. Click on a game in progress. Select either the home or away feed. If it does not start (it does take some time to connect and build a cache), look in the xterm window. Are there errors? If so, copy and paste them here. (There are informational messages that are not errors, like 'show available' and 'refresh_listings') You should only need to package with 2010 in the package name. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Same problem: Login was unsuccessful
Python is 2.5.4 and the audio player was mediaplayer so I changed that to mplayer. Here's the errors from Xterminal: Code:
tree_games_row_activated |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
When you start xterm, you should be in /home/user or the equivalent on the n900. Change to .mlb with:
cd .mlb Look at the config file. cat config Make sure your user and pass are what you think they are. Make sure mobile=1 Are there any non-alpha characters in your password? My password contains letters, numbers and a period, that works ok. mediaplayer should be fine to use, but we aren't getting that far yet. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
im having the same exact problem on my n900.
python version 2.5.4 new mlbviewer 2010 installed mobile audio enabled (mobile=1) only alphanumeric chars in my user/pass - except for the @ in my email address (username) i start up then select a game in progess, i am presented with home or away audio, i selected away (wgn for the cubs game on 4/11) it says "luanching audio....." in a yellow bar, then in a second or so it gives me the failed login messege in the same style yellow bar. console output is below. 2010-04-11 14:37:50.285064 run load_conf load_ui /usr/lib/mlbviewer_gui/mlbviewer_gui.py:136: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated self.wTree = gtk.glade.XML(self.glade_file) refresh_listings show available tree_games_row_activated on_cg_away_clicked Error at 2010-04-11 14:38:24.618713 Login was unsuccessful. thank you for your help. i cant wait to have this working. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
1 Attachment(s)
This is odd. It probably means the login has failed for some reason. I am currently listening to WGN and the Cubs. If you are willing to try something, download the attached mlbviewer_gui-0.2010.1_debug.deb and install it. It contains some extra output. You'll need to start it from an xterm windows with the following:
python /usr/lib/mlbviewer_gui/mlbviewer_gui.py Copy the output here (it will contain HTML). |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Have you logged out of your account from your desktop browser before starting a game on the NIT? You can't be logged in at two places.
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
Quote:
Thanks for the debug app, i will install and try it today. I was not logged into my account on my computer at all. I also tried this on my n810 and i got the exact same error - so .. im wondering if im using the wrong credentials or some thing. I log in to "at bat" with my email address and password, is that the same credentials I should be using for mlbviewer gui ?? Again, I will try the debug app today. Thanks so much for your responses. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
here is my output from the debug version.
~ $ python /usr/lib/mlbviewer_gui/mlbviewer_gui.py 2010-04-12 13:14:16.073925 run load_conf load_ui /usr/lib/mlbviewer_gui/mlbviewer_gui.py:136: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated self.wTree = gtk.glade.XML(self.glade_file) refresh_listings show available tree_games_row_activated on_cg_away_clicked auth_page:<?xml version="1.0" charset="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html> <head><title>The Official Site</title> <meta http-equiv="Cache-Control" content="no-cache"/> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="expires" content="0"/> <meta http-equiv="content-type" content="text/html" /> <style type="text/css"> <!-- body {font-family:arial,helvetica,sans-serif;} a {color:#0000cc} .hdBg {background-color:#031641;} .lsHd {background-color:#c00;} .secHd {font-weight:bold;background:#ccc;text-align:center} .hd, .hdBg {font-weight:bold} .hdBg{padding:0px;margin:0px;} .content {padding:1px} .copyright {font-size:x-small} table {width:100%;border:none;font-size:small} table.narrow {width:auto;border:none;font-size:small} td {border:0px;padding:0px;margin:0px;} .ftr{background:#eee;border-bottom:1px solid #000;border-top:1px solid #000;padding:3px;margin-bottom:4px} .sub { margin-left: 15px; white-space:nowrap; font-size:small; } .ctgy{ border-top:1px solid #999; margin-top: 4px; font-weight:bold; } .ctgy1{font-weight:bold;} .ctgy1 span,.ctgy span{margin-left:1px;color:#333;font-weight:normal;} .buy{color:#c00} dl {padding: 2px 0px; margin:2px 0px} .psO {background:#efefef;border-bottom:1px solid #ddd;border-top:1px solid #ddd;} .psE {background:#fff;border-bottom:1px solid #fff;border-top:1px solid #fff;} --> </style> </head> <!--web061-dc2--> <body class="campaign_descriptiongameday_audio" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"> <div class="hdBg"> <a name="top" href="http://m.mlb.com/index.jsp?c_id=mlb"> <img src="/images/logo_mlb.gif" border="0" width="94" height="21" alt="MLB Mobile" align="top" hspace="0" vspace="0"/> </a> </div> <div class="secHd">Gameday Audio for Windows Mobile </div> <p>Subscription Cost: A recurring monthly charge of $2.49</p> <p>Content: Live audio on your Windows Mobile device of all MLB games.</p> <p>Expiration: Your subscription will expire at the conclusion of the World Series.</p> <p>Important Info for Gameday Audio and MLB.TV PC subscribers: to enjoy Gameday Audio on your Windows Mobile device a separate subscription is required. At this time mobile access is not included in the Gameday Audio or MLB.TV packages you purchased for your PC.</p> <p>MLB Gameday Audio for Windows Mobile is only supported on Internet Explorer.</p> <p><b>Click <a href="http://m.mlb.com/enterworkflow.do?flowId=commerce.cart.mobilebillab leForm&campaignCode=MOBILE_GDA_CMPGN&voucherCode=M OBILE_GDA_VOCHR&keepWfParams=true&sku=MLBMOBILEGDA MON2009&mediaId=2035801&gameId=2010_04_12_kcamlb_d etmlb_1">here</a> to subscribe</b></p> <div id="TeamHomeLink" class="content"><a href="http://m.mlb.com/gameday_audio/index.jsp?c_id=mlb">MLBGameday Audio</a></div><div id="HomeLink" class="content">0 <a accesskey="0" href="http://m.mlb.com/">MLB.com Home</a></div><!-- {name=Unknown} --> <!--BLANK--><hr style="clear:both"/> <div class="copyright"> © MLBAM, L.P. 2001-2009.<br/> <a href="http://m.mlb.com/terms/">Terms of Use</a><br/> <a href="http://m.mlb.com/privacy/">Privacy Policy</a> </div> <!--web061-dc2--> </p> <div> <img src="http://mlbwap.112.2O7.net/b/ss/mlbwap/1/G.5--NS/9681655?ch=gameday_audio&c4=unknown&pageName=%2Fmo bile%2Fmediaplayer%2Fpurchase.jsp%3FmediaId%3D2035 801%26flowId%3Dmedia.mobilemedia%26gameId%3D2010_0 4_12_kcamlb_detmlb_1&c1=mlb&c2=gameday_audio_campa ign_description&c5=unknown&c6=Unknown&c7=iemobile& c8=1270841587834_372977452&c9=null&c10=unknown&c11 =&c12=65.200.191.241&c13=&c14=MLB_Firefox&g=http%3 A%2F%2Fm.mlb.com%2Fmobile%2Fmediaplayer%2Fpurchase .jsp&c3=Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+N T+5.1%3B+en-US%3B+rv%3A1.8.1.13%29+Gecko%2F20080311+Firefox%2F 2.0.0.13&c16=f&c17=f" width="1" height="1" border="0"/> </div> </body> </html> Error at 2010-04-12 13:14:52.191875 Login was unsuccessful. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
That's the page you get if you don't have an account. Which type of account do you have? The full package with video, or just the gameday audio?
|
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I have release a new beta version which has auto-refresh of the scores. It is a work in progress, so be prepared for problems.
I won't be able to work on it again for about a week because of other commitments. I've used it without too many problems. Sometimes the refresh fails because the mlb server gives an error. Just wait until the next refresh and it should repopulate the games list. I have also added the score to the individual game page. That refreshes too. To set the refresh rate, click the 'configuration' menu option. Select the 'System' page and pick a rate from the Refresh Rate drop down. Choices are 0, 15, 30, and 60 seconds. I don't recommend 15. https://garage.maemo.org/projects/mlbviewer-gui/ My todo list: Improve refresh speed. Add outs, balls, strikes, batter, pitcher to game page I may also add video highlights, but the quality of the videos that I found are not very good. |
Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
I do not have a video package. Last year i had "gameday audio" this year i signed up for "at bat" which was $19.95/year.
I can sign in on line and listen to audio. The mlb site sucks really bad - i couldnt figure out if my subscription was auto renewed or not.. so i just bought "at bat". |
| All times are GMT. The time now is 22:52. |
vBulletin® Version 3.8.8