LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2013, 01:38 PM   #4141
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by CCRS8 View Post
Been a long while since I posted in this thread. Just wanted to check in and thank you again for all your work. I got a Roku for the TV right next to my computer, so I hadn't been using mlbviewer for a season or two. However, now that the Phillies are horrible, I've been watching a second, more competitive game in the browser while the Phils pathetically lose on the TV. Got sick of the "full screen" mode of the browser player not staying full screen in one monitor when I start doing something on my second monitor, so today I just checked out the most up-to-date version of mlbviewer and things are good again. Better than ever. Thanks!
If you've been away for even a season, you should surely notice there are a ton of new features in mlbviewer 2013.

- Master scoreboard view ('m' key)
- Line scores ('b' key)
- Box scores ('x' key)
- Standings ('g' key)

And custom keybindings if you want to remap any of the keys to something more intuitive for you.

Also all windows support scrolling and resizing now.

Welcome back and enjoy!
 
Old 07-12-2013, 01:45 AM   #4142
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 518: mlbcomvideos.py renamed to mlbvideos.py and mlbstats.py !!!

Renaming mlbcomvideos.py to mlbvideos.py

But more importantly...

Finally releasing an "alpha" version of mlbstats.py

Default view will be Pitching leaders sorted on ERA.

Switch between pitching and batting leaders using 'p' and 'b' keys.

Change the sort column with the 's' key.

Change the sort order (default, ascending, and descending) with the 'o' key. (Default picks some sensible defaults like ascending for ERA, WHIP, and L but ascending for the rest.)

Toggle between current season and all-time leaders with the 'n' key.

In All-Time, you can toggle between all-time and active players with the 'a' key.

You can also filter stats based on team using the 't' key and one of the two or three letter team codes (see README for the team codes or mlbplay.py with no arguments.)

Any player can be expanded to career stats with the Enter key.

Finally, the "favorite=" is flag is supported for highlighting players on the favorite team. However, mlbstats.py uses a different config file ($HOME/.mlb/statconfig) than mlbviewer.py.

And of course, all of these keys are viewable in the help screen with the 'h' key.

The stats, especially in all-time mode, are longer than 80 columns so you'll have to expand the terminal or maximize it if you want to see all columns.

On the roadmap for future revisions:

-Add more stats e.g. page 2 from mlb.com statistics.
-Add triple crown leaders
-Add splits (pre/post All-Star break, post-season, etc)
-Add ability to filter on year
-Add ability to filter career stats on ranges of year


On the roadmap for mlbviewer:

-Expand standings view to show additional columns like interleague, vs divsion, etc
-Add Wildcard Games Back to standings
 
Old 07-12-2013, 01:47 AM   #4143
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I am releasing what I have now of mlbstats.py because I am going to become busy with moving and a work project again so it's better to have some extra eyes playing with the mlbstats.py code and telling me where the bugs may be and what features you want.

Cheers!
daftcat
 
Old 07-15-2013, 09:21 AM   #4144
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
I see the All-Star break bug has bitten us again.
Quote:
$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 977, in <module>
curses.wrapper(mainloop, mycfg, mykeys)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 163, in mainloop
listwin.statusWrite(mysched.error_str,wait=2)
AttributeError: MLBSchedule instance has no attribute 'error_str'
$
With daftcat's schedule keeping him busy this week does anyone know of a workaround to this? Not only would I like to use mlbviewer to get caught up with the weekend's action but I got a free trial to mlb.tv for participating in the Final Vote (a trial that started Friday and ends tomorrow, the cheap buggers) and I'd like to check out all of mlbviewer's abilities while I have the trial.
 
Old 07-15-2013, 03:50 PM   #4145
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You can get around it by substituting in line 163 of mlbviewer.py

'pass'

for

'listwin.statusWrite(mysched.error_str,wait=2)'

Keep the indentation the same, and don't include the quotes.
 
1 members found this post helpful.
Old 07-15-2013, 03:58 PM   #4146
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
You can get around it by substituting in line 163 of mlbviewer.py

'pass'

for

'listwin.statusWrite(mysched.error_str,wait=2)'

Keep the indentation the same, and don't include the quotes.
Bootimus! Thanks, Chris. Once the break's over I'll revert the changes, but keep them handy in case I need them again.
 
Old 07-16-2013, 02:25 AM   #4147
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I thought I fixed this early this season knowing the All-Star break always gives mlbviewer trouble. Looks like I didn't carry over enough of the old code into the rewrite. I have fixed it properly now.

BTW, the All-Star Game is national blackout. They really screwed you on this trial. You get all-you-can eat archives but only three days of live games. Hopefully your trial extends long enough to see the ASG once it's archived.
 
Old 07-16-2013, 05:25 AM   #4148
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
It turns out I completely misread the email this year.
Quote:
Thank you for participating in the 2013 All-Star Game Final Vote. We would like to reward you for being such a loyal fan of Major League Baseball by offering you a two week free trial of MLB.TV, valid from July 12-26, 2013.
They're not being cheap buggers, I'm wearing my arse for a hat again. I'll snag the update and play to my heart's content. Plus my boys in blue are on the [l]east coast after the break so I should be able to enjoy some live baseball for a change. Zang!
 
Old 07-16-2013, 11:14 PM   #4149
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
It turns out I completely misread the email this year.

They're not being cheap buggers, I'm wearing my arse for a hat again. I'll snag the update and play to my heart's content. Plus my boys in blue are on the [l]east coast after the break so I should be able to enjoy some live baseball for a change. Zang!
If you live in LA, then nope. Doesn't matter where they play. If you live in their blackout region, they could be playing in Iceland and you'll still be blacked out.
 
Old 07-17-2013, 05:38 AM   #4150
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
If you live in LA, then nope. Doesn't matter where they play. If you live in their blackout region, they could be playing in Iceland and you'll still be blacked out.
As my /nic says I'm in Beantown, I just bleed Blue. 8) And last night my wifi signal was such a joke I didn't even vote for MVP. In fact I forgot about the game completely. I bet if Puig had won the Final Vote he would have seen some playing time and the NL wouldn't have gotten shut out.






/me isn't going to make the rather easy joke about Corbin possibly playing the part of Brandon League last night. Partly since it wasn't a save situation.
 
Old 07-17-2013, 09:15 PM   #4151
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
As my /nic says I'm in Beantown, I just bleed Blue. 8) And last night my wifi signal was such a joke I didn't even vote for MVP. In fact I forgot about the game completely. I bet if Puig had won the Final Vote he would have seen some playing time and the NL wouldn't have gotten shut out.






/me isn't going to make the rather easy joke about Corbin possibly playing the part of Brandon League last night. Partly since it wasn't a save situation.
I used to travel to NJ and Montreal on business. One of my favorite things about the East Coast is coming back to my hotel room, after a long day, after dinner and drink at a pub, and tucking into some West Coast baseball at 10 o'clock at night. Good way to unwind and fall asleep.

My current apartment complex and my Comcast cable modem make it really hard to enjoy a full game of MLB.TV. Between the wifi collisions of super-saturated wifi channels and the congestion in the cable network, I am so glad I am moving in a couple of weeks. I may even take the speed cut down to DSL just to get myself some dedicated bandwidth again.
 
Old 07-18-2013, 12:53 AM   #4152
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
So I just wanted to say part of the reason why I am not very active with mlbstats/mlbviewer much right now is that I have found all the work I put into mlbviewer rewrite enormously useful in my day job. I think my off-season project will be making the mlbListWin, mlbKeyBindings, and mlbConfig classes generic enough for rapid curses GUI development as I have two work projects plus two mlb-related projects (mlbviewer and mlbstats) using similar or same base classes. It would be nice to be able to make fixes/improvements to a generic ListWin class and have all of the projects immediately reap the benefits.

That is to say, the awesome love I receive from mlbviewer fans inspired me to rewrite mlbviewer in a way that has made my day job much easier.
 
Old 07-19-2013, 04:03 AM   #4153
fang2415
Member
 
Registered: Jan 2007
Posts: 195

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
So I just wanted to say part of the reason why I am not very active with mlbstats/mlbviewer much right now is that I have found all the work I put into mlbviewer rewrite enormously useful in my day job. I think my off-season project will be making the mlbListWin, mlbKeyBindings, and mlbConfig classes generic enough for rapid curses GUI development as I have two work projects plus two mlb-related projects (mlbviewer and mlbstats) using similar or same base classes. It would be nice to be able to make fixes/improvements to a generic ListWin class and have all of the projects immediately reap the benefits.

That is to say, the awesome love I receive from mlbviewer fans inspired me to rewrite mlbviewer in a way that has made my day job much easier.
Um, that rules.

Not sure what else to say other than that's great news and that this is why I love free software. So congrats -- it's great to hear that your terrific work not only lets you and us enjoy baseball but is directly advancing your professional career as well!
 
Old 07-28-2013, 04:22 PM   #4154
JDL440
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
I have a general question regarding the mlb.com web api.

If I make a call with a browser, should be able to see the url?

https://secure.mlb.com/pubajaxws/bam...entId=28931827

For the above request url is always empty. Is this due to authentication?
 
Old 07-29-2013, 01:44 AM   #4155
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by JDL440 View Post
I have a general question regarding the mlb.com web api.

If I make a call with a browser, should be able to see the url?

https://secure.mlb.com/pubajaxws/bam...entId=28931827

For the above request url is always empty. Is this due to authentication?
Absolutely due to authentication. If you could get the audio url just from making the findUserVerifiedEvent request, MLB.TV would be out of business by now.

Digging deeper into the response,

Code:
<url></url>
<auth-status><loginRequiredStatus/></auth-status>
<blackout-status><successStatus/></blackout-status>
Blackout is successStatus meaning no blackout restrictions.

But the key here is the loginRequiredStatus meaning you need to authenticate to retrieve the URL.

Which is why the url is empty.
 
1 members found this post helpful.
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration