It is currently October 26th, 2021, 5:27 pm

MLB Standings

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MLB Standings

Post by jsmorley »

Real-time feeds, especially ones that are not "screen scraping" some HTML, are hard to come by for Baseball (and other sports). Too much money to be made by these guys on their sites and apps.
User avatar
kfonda
Posts: 15
Joined: May 8th, 2015, 8:15 pm
Location: Manasquan, NJ USA

Re: MLB Standings

Post by kfonda »

If it makes any difference, the gadget is all in javascript and html. Looking through it, it looks like he is getting everything from mlb.com. All I'm really interested in is the live game score, not the stuff in the flyout. I'll look into it and see if I can figure out how to do it, but I really don't have any experience with this kind of stuff.
jake2456
Posts: 44
Joined: June 8th, 2015, 10:39 pm

Re: MLB Standings

Post by jake2456 »

Been using this for a few years now and was also using the mlb gadget for live scores. Now with windows 10 i cant get live scores anymore. Id been digging around and found some info where we might be able to get live info. Would you be willing to take a look and let me know if it might be usable?

I made a quick test skin to check if runs hits errors would update and so far its working. But i dont know if i have the skill to build something like this or not.
jake2456
Posts: 44
Joined: June 8th, 2015, 10:39 pm

Re: MLB Standings

Post by jake2456 »

I made a miniscores test version and a boxscores test version for live scores. Right now there set to a specific team and box score doesnt go past 9 innings. Box Scores only shows up around gametime. So it may show as blank sometimes.
If you guys would like to check it out or use any of the info to build something better go for it.

Right now its set for detroit tigers. If you want to change the team replace detmlb in regexp of [MeasureScores] and [MeasureScoreBoards] with your teams code: Nationals(wasmlb) , Mets(nynmlb)

Updated measures code for boxscores issue.

Mini Scores Code

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
SkinWidth=250
SkinHeight=100
@include=#@#Measures.inc

[Variables]
Color1=255,255,255,100

[OddStyle]
FontColor=#Color1#
FontSize=10
AntiAlias=1

[mAwayTeam1]
Meter=String
MeasureName=MeasureAwayTeam2
MeterStyle=OddStyle
StringAlign=Left
X=0
Y=20
Text=%1
DynamicVariables=1

[mAwayRuns1]
Meter=String
MeasureName=MeasureAwayRuns2
MeterStyle=OddStyle
StringAlign=Left
X=100
Y=20
Text=%1
DynamicVariables=1

[mAwayHits1]
Meter=String
MeasureName=MeasureAwayHits2
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=20
Text=%1
DynamicVariables=1

[mAwayErrors1]
Meter=String
MeasureName=MeasureAwayErrors2
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=20
Text=%1
DynamicVariables=1

[mHomeTeam1]
Meter=String
MeasureName=MeasureHomeTeam2
MeterStyle=OddStyle
StringAlign=Left
X=0
Y=40
Text=%1
DynamicVariables=1

[mHomeRuns2]
Meter=String
MeasureName=MeasureHomeRuns2
MeterStyle=OddStyle
StringAlign=Left
X=100
Y=40
Text=%1
DynamicVariables=1

[mHomeHits2]
Meter=String
MeasureName=MeasureHomeHits2
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=40
Text=%1
DynamicVariables=1

[mHomeErrors2]
Meter=String
MeasureName=MeasureHomeErrors2
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=40
Text=%1
DynamicVariables=1

[mStatus]
Meter=String
MeasureName=MeasureStatus2
MeterStyle=OddStyle
StringAlign=Left
X=0
Y=0
Text=%1
DynamicVariables=1

[mRuns]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=100
Y=0
Text=R
DynamicVariables=1

[mHits]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=0
Text=H
DynamicVariables=1

[mErrors]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=0
Text=E
DynamicVariables=1
BoxScore

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
SkinWidth=250
SkinHeight=100
@include=#@#Measures.inc

[Variables]
Color1=255,255,255,100

[OddStyle]
FontColor=#Color1#
FontSize=10
AntiAlias=1

[mAwayTeam1]
Meter=String
MeasureName=MeasureAwayTeam1
MeterStyle=OddStyle
StringAlign=Left
X=0
Y=20
Text=%1
DynamicVariables=1

[mAwayRuns1]
Meter=String
MeasureName=MeasureAwayRuns1
MeterStyle=OddStyle
StringAlign=Left
X=(250-40)
Y=20
Text=%1
DynamicVariables=1

[mAwayHits1]
Meter=String
MeasureName=MeasureAwayHits1
MeterStyle=OddStyle
StringAlign=Left
X=(250-27)
Y=20
Text=%1
DynamicVariables=1

[mAwayErrors1]
Meter=String
MeasureName=MeasureAwayErrors1
MeterStyle=OddStyle
StringAlign=Left
X=(250-10)
Y=20
Text=%1
DynamicVariables=1

[mHomeTeam1]
Meter=String
MeasureName=MeasureHomeTeam1
MeterStyle=OddStyle
StringAlign=Left
X=0
Y=40
Text=%1
DynamicVariables=1

[mHomeRuns2]
Meter=String
MeasureName=MeasureHomeRuns1
MeterStyle=OddStyle
StringAlign=Left
X=(250-40)
Y=40
Text=%1
DynamicVariables=1

[mHomeHits2]
Meter=String
MeasureName=MeasureHomeHits1
MeterStyle=OddStyle
StringAlign=Left
X=(250-27)
Y=40
Text=%1
DynamicVariables=1

[mHomeErrors2]
Meter=String
MeasureName=MeasureHomeErrors1
MeterStyle=OddStyle
StringAlign=Left
X=(250-10)
Y=40
Text=%1
DynamicVariables=1

[mRuns]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=(250-40)
Y=0
Text=R
DynamicVariables=1

[mHits]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=(250-25)
Y=0
Text=H
DynamicVariables=1

[mErrors]
Meter=String
MeterStyle=OddStyle
StringAlign=Left
X=(250-10)
Y=0
Text=E
DynamicVariables=1

[mInning1]
Meter=String
MeasureName=MeasureInning1
MeterStyle=OddStyle
StringAlign=Left
X=110
Y=0
Text=%1
DynamicVariables=1

[mAwayInning1]
Meter=String
MeasureName=MeasureAwayInning1
MeterStyle=OddStyle
StringAlign=Left
X=110
Y=20
Text=%1
DynamicVariables=1

[mHomeInning1]
Meter=String
MeasureName=MeasureHomeInning1
MeterStyle=OddStyle
StringAlign=Left
X=110
Y=40
Text=%1
DynamicVariables=1

[mInning2]
Meter=String
MeasureName=MeasureInning2
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=0
Text=%1
DynamicVariables=1

[mAwayInning2]
Meter=String
MeasureName=MeasureAwayInning2
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=20
Text=%1
DynamicVariables=1

[mHomeInning2]
Meter=String
MeasureName=MeasureHomeInning2
MeterStyle=OddStyle
StringAlign=Left
X=120
Y=40
Text=%1
DynamicVariables=1

[mInning3]
Meter=String
MeasureName=MeasureInning3
MeterStyle=OddStyle
StringAlign=Left
X=130
Y=0
Text=%1
DynamicVariables=1

[mAwayInning3]
Meter=String
MeasureName=MeasureAwayInning3
MeterStyle=OddStyle
StringAlign=Left
X=130
Y=20
Text=%1
DynamicVariables=1

[mHomeInning3]
Meter=String
MeasureName=MeasureHomeInning3
MeterStyle=OddStyle
StringAlign=Left
X=130
Y=40
Text=%1
DynamicVariables=1

[mInning4]
Meter=String
MeasureName=MeasureInning4
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=0
Text=%1
DynamicVariables=1

[mAwayInning4]
Meter=String
MeasureName=MeasureAwayInning4
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=20
Text=%1
DynamicVariables=1

[mHomeInning4]
Meter=String
MeasureName=MeasureHomeInning4
MeterStyle=OddStyle
StringAlign=Left
X=140
Y=40
Text=%1
DynamicVariables=1

[mInning5]
Meter=String
MeasureName=MeasureInning5
MeterStyle=OddStyle
StringAlign=Left
X=150
Y=0
Text=%1
DynamicVariables=1

[mAwayInning5]
Meter=String
MeasureName=MeasureAwayInning5
MeterStyle=OddStyle
StringAlign=Left
X=150
Y=20
Text=%1
DynamicVariables=1

[mHomeInning5]
Meter=String
MeasureName=MeasureHomeInning5
MeterStyle=OddStyle
StringAlign=Left
X=150
Y=40
Text=%1
DynamicVariables=1

[mInning6]
Meter=String
MeasureName=MeasureInning6
MeterStyle=OddStyle
StringAlign=Left
X=160
Y=0
Text=%1
DynamicVariables=1

[mAwayInning6]
Meter=String
MeasureName=MeasureAwayInning6
MeterStyle=OddStyle
StringAlign=Left
X=160
Y=20
Text=%1
DynamicVariables=1

[mHomeInning6]
Meter=String
MeasureName=MeasureHomeInning6
MeterStyle=OddStyle
StringAlign=Left
X=160
Y=40
Text=%1
DynamicVariables=1

[mInning7]
Meter=String
MeasureName=MeasureInning7
MeterStyle=OddStyle
StringAlign=Left
X=170
Y=0
Text=%1
DynamicVariables=1

[mAwayInning7]
Meter=String
MeasureName=MeasureAwayInning7
MeterStyle=OddStyle
StringAlign=Left
X=170
Y=20
Text=%1
DynamicVariables=1

[mHomeInning7]
Meter=String
MeasureName=MeasureHomeInning7
MeterStyle=OddStyle
StringAlign=Left
X=170
Y=40
Text=%1
DynamicVariables=1

[mInning8]
Meter=String
MeasureName=MeasureInning8
MeterStyle=OddStyle
StringAlign=Left
X=180
Y=0
Text=%1
DynamicVariables=1

[mAwayInning8]
Meter=String
MeasureName=MeasureAwayInning8
MeterStyle=OddStyle
StringAlign=Left
X=180
Y=20
Text=%1
DynamicVariables=1

[mHomeInning8]
Meter=String
MeasureName=MeasureHomeInning8
MeterStyle=OddStyle
StringAlign=Left
X=180
Y=40
Text=%1
DynamicVariables=1

[mInning9]
Meter=String
MeasureName=MeasureInning9
MeterStyle=OddStyle
StringAlign=Left
X=190
Y=0
Text=%1
DynamicVariables=1

[mAwayInning9]
Meter=String
MeasureName=MeasureAwayInning9
MeterStyle=OddStyle
StringAlign=Left
X=190
Y=20
Text=%1
DynamicVariables=1

[mHomeInning9]
Meter=String
MeasureName=MeasureHomeInning9
MeterStyle=OddStyle
StringAlign=Left
X=190
Y=40
Text=%1
DynamicVariables=1
Measures.inc

Code: Select all

[MeasureDay]
Measure=Time
Format=%d
DynamicVariables=1

[MeasureMonth]
Measure=Time
Format=%m
DynamicVariables=1

[MeasureYear]
Measure=Time
Format=%Y
DynamicVariables=1

[MeasureScores]
Measure=Plugin
Plugin=WebParser
URL=http://gd2.mlb.com/components/game/mlb/year_[&MeasureYear]/month_[&MeasureMonth]/day_[&MeasureDay]
RegExp=(?siU).*detmlb.*/"> (.*)</a>
DynamicVariables=1
FinishAction=[!SetOption MeasureBoxScore URL "http://gd2.mlb.com/components/game/mlb/year_[&MeasureYear]/month_[&MeasureMonth]/day_[&MeasureDay]/[MeasureTeam]boxscore.xml"][!EnableMeasure "MeasureBoxScore"][!CommandMeasure "MeasureBoxScore" "Update"]

[MeasureTeam]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScores]
StringIndex=1
DynamicVariables=1

[MeasureScoreBoard]
Measure=Plugin
Plugin=WebParser
URL=http://gd2.mlb.com/components/game/mlb/year_[&MeasureYear]/month_[&MeasureMonth]/day_[&MeasureDay]/scoreboard.xml
RegExp=(?siU).*detmlb.*status="(.*)".*<team name="(.*)".* R="(.*)".*H="(.*)".*E="(.*)"/>.*<team name="(.*)".* R="(.*)".*H="(.*)".*E="(.*)"/>
DynamicVariables=1

[MeasureStatus2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=1
DynamicVariables=1

[MeasureHomeTeam2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=2
DynamicVariables=1

[MeasureHomeRuns2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=3
DynamicVariables=1

[MeasureHomeHits2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=4
DynamicVariables=1

[MeasureHomeErrors2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=5
DynamicVariables=1

[MeasureAwayTeam2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=6
DynamicVariables=1

[MeasureAwayRuns2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=7
DynamicVariables=1

[MeasureAwayHits2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=8
DynamicVariables=1

[MeasureAwayErrors2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureScoreBoard]
StringIndex=9
DynamicVariables=1

[MeasureBoxScore]
Measure=Plugin
Plugin=WebParser
RegExp=(?siU).*away_fname="(.*)".*home_fname="(.*)".*away_team_runs="(.*)".*home_team_runs="(.*)".*away_team_hits="(.*)".*home_team_hits="(.*)".*away_team_errors="(.*)".*home_team_errors="(.*)">(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")(?(?=.*away=).*"(.*)")(?(?=.*home=).*"(.*)")(?(?=.*inning=).*"(.*)")
DynamicVariables=1
Disabled=1

[MeasureAwayTeam1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=1
DynamicVariables=1

[MeasureHomeTeam1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=2
DynamicVariables=1

[MeasureAwayRuns1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=3
DynamicVariables=1

[MeasureHomeRuns1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=4
DynamicVariables=1

[MeasureAwayHits1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=5
DynamicVariables=1

[MeasureHomeHits1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=6
DynamicVariables=1

[MeasureAwayErrors1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=7
DynamicVariables=1

[MeasureHomeErrors1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=8
DynamicVariables=1

[MeasureAwayInning1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=9
DynamicVariables=1

[MeasureHomeInning1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=10
DynamicVariables=1

[MeasureInning1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=11
DynamicVariables=1

[MeasureAwayInning2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=12
DynamicVariables=1

[MeasureHomeInning2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=13
DynamicVariables=1

[MeasureInning2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=14
DynamicVariables=1

[MeasureAwayInning3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=15
DynamicVariables=1

[MeasureHomeInning3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=16
DynamicVariables=1

[MeasureInning3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=17
DynamicVariables=1

[MeasureAwayInning4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=18
DynamicVariables=1

[MeasureHomeInning4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=19
DynamicVariables=1

[MeasureInning4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=20
DynamicVariables=1

[MeasureAwayInning5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=21
DynamicVariables=1

[MeasureHomeInning5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=22
DynamicVariables=1

[MeasureInning5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=23
DynamicVariables=1

[MeasureAwayInning6]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=24
DynamicVariables=1

[MeasureHomeInning6]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=25
DynamicVariables=1

[MeasureInning6]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=26
DynamicVariables=1

[MeasureAwayInning7]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=27
DynamicVariables=1

[MeasureHomeInning7]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=28
DynamicVariables=1

[MeasureInning7]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=29
DynamicVariables=1

[MeasureAwayInning8]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=30
DynamicVariables=1

[MeasureHomeInning8]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=31
DynamicVariables=1

[MeasureInning8]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=32
DynamicVariables=1

[MeasureAwayInning9]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=33
DynamicVariables=1

[MeasureHomeInning9]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=34
DynamicVariables=1

[MeasureInning9]
Measure=Plugin
Plugin=WebParser
Url=[MeasureBoxScore]
StringIndex=35
DynamicVariables=1
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MLB Standings

Post by jsmorley »

Fixed a problem with a change to the host web site.

Link in the first post:

https://forum.rainmeter.net/viewtopic.php?p=86446#p86446
User avatar
kfonda
Posts: 15
Joined: May 8th, 2015, 8:15 pm
Location: Manasquan, NJ USA

Re: MLB Standings

Post by kfonda »

Thank you, I was starting to have withdrawal symptoms. :D
User avatar
kfonda
Posts: 15
Joined: May 8th, 2015, 8:15 pm
Location: Manasquan, NJ USA

Re: MLB Standings

Post by kfonda »

Hey Jeff,

If you get a chance, can you take a look at your MLB Standings skin? It stopped working for me sometime in the last few days. The MLB Scoreboard skin from @jake2456 hasn't worked all season, but Jake doesen't seem to be around anymore. I guess I'll have to bite the bullet and try to figure out how to fix that one myself :confused:

Kevin Fonda
Life long NY Mets fan :17angry ( depressing ... ain't it? )
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MLB Standings

Post by jsmorley »

kfonda wrote:Hey Jeff,

If you get a chance, can you take a look at your MLB Standings skin? It stopped working for me sometime in the last few days. The MLB Scoreboard skin from @jake2456 hasn't worked all season, but Jake doesen't seem to be around anymore. I guess I'll have to bite the bullet and try to figure out how to fix that one myself :confused:

Kevin Fonda
Life long NY Mets fan :17angry ( depressing ... ain't it? )
I'll take a look today. They must have changed something on the website that is breaking the parsing.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MLB Standings

Post by jsmorley »

Yeah, need to re-work some parsing. I'll have something later today.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MLB Standings

Post by jsmorley »

You do not have the required permissions to view the files attached to this post.