From: Michael Orlitzky Date: Sun, 6 Jul 2014 19:37:18 +0000 (-0400) Subject: Add a teams_are_normal function to TSN.XML.Weather. X-Git-Tag: 0.0.6~13 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=commitdiff_plain;h=fe55e0de738d00b94ad1269bafe32beb83860387 Add a teams_are_normal function to TSN.XML.Weather. Fail in Main when the Weather teams are not normal (unsupported). Add a note about the backwards teams to the man page. Add tests for the backwards teams. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 47ca0d1..82917c6 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -308,6 +308,11 @@ printed. If the \fI\-\-remove\fR flag is used, the file will be deleted. This prevents documents that we know we can't import from building up. +Another problem that comes up occasionally is that the home and away +team elements appear in the reverse order. As in the other case, we +report these as unsupported and then \(dqsucceed\(dq so that the +offending document can be removed if desired. + .SH DEPLOYMENT .P When deploying for the first time, the target database will most diff --git a/src/Main.hs b/src/Main.hs index 0fe6096..cb4bdff 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -65,7 +65,11 @@ import qualified TSN.XML.ScheduleChanges as ScheduleChanges ( pickle_message ) import qualified TSN.XML.Scores as Scores ( dtd, pickle_message ) import qualified TSN.XML.SportInfo as SportInfo ( dtds, parse_xml ) -import qualified TSN.XML.Weather as Weather ( dtd, is_type1, pickle_message ) +import qualified TSN.XML.Weather as Weather ( + dtd, + is_type1, + pickle_message, + teams_are_normal ) import Xml ( DtdName(..), parse_opts ) @@ -204,11 +208,17 @@ import_file cfg path = do -- SportInfo and GameInfo appear last in the guards | dtd == Weather.dtd = + -- Some of the weatherxml docs are busted in predictable ways. + -- We want them to "succeed" so that they're deleted. + -- We already know we can't parse them. if Weather.is_type1 xml - then go Weather.pickle_message + then if Weather.teams_are_normal xml + then go Weather.pickle_message + else do + let msg = "Teams in reverse order in weatherxml.dtd" ++ + " (" ++ path ++ ")" + return $ ImportUnsupported msg else do - -- We want these to "succeed" so that they're deleted. - -- We already know we can't parse them. let msg = "Unsupported weatherxml.dtd type (" ++ path ++ ")" return $ ImportUnsupported msg diff --git a/src/TSN/XML/Weather.hs b/src/TSN/XML/Weather.hs index 2146c3f..0866f6f 100644 --- a/src/TSN/XML/Weather.hs +++ b/src/TSN/XML/Weather.hs @@ -13,6 +13,7 @@ module TSN.XML.Weather ( dtd, is_type1, pickle_message, + teams_are_normal, -- * Tests weather_tests, -- * WARNING: these are private but exported to silence warnings @@ -45,8 +46,14 @@ import Text.XML.HXT.Core ( PU, XmlTree, (/>), + (>>>), + addNav, + descendantAxis, + filterAxis, + followingSiblingAxis, hasName, readDocument, + remNav, runLA, runX, xp8Tuple, @@ -243,7 +250,7 @@ data WeatherDetailedWeatherListingItem = db_home_team :: String, db_weather_type :: Int, db_description :: String, - db_temp_adjust :: String, + db_temp_adjust :: Maybe String, db_temperature :: Int } @@ -259,7 +266,7 @@ data WeatherDetailedWeatherListingItemXml = xml_home_team :: String, xml_weather_type :: Int, xml_description :: String, - xml_temp_adjust :: String, + xml_temp_adjust :: Maybe String, xml_temperature :: Int } deriving (Eq, Show) @@ -420,6 +427,34 @@ is_type1 xmltree = elements = parse xmltree +-- | Some weatherxml documents even have the Home/Away teams in the +-- wrong order. We can't parse that! This next bit of voodoo detects +-- whether or not there are any \ elements that are +-- directly followed by sibling \ elements. This is the +-- opposite of the usual order. +-- +teams_are_normal :: XmlTree -> Bool +teams_are_normal xmltree = + case elements of + [] -> True + _ -> False + where + parse :: XmlTree -> [XmlTree] + parse = runLA $ hasName "/" + /> hasName "message" + /> hasName "Detailed_Weather" + /> hasName "DW_Listing" + /> hasName "Item" + >>> addNav + >>> descendantAxis + >>> filterAxis (hasName "HomeTeam") + >>> followingSiblingAxis + >>> remNav + >>> hasName "AwayTeam" + + elements = parse xmltree + + instance DbImport Message where dbmigrate _ = run_dbmigrate $ do @@ -513,7 +548,7 @@ pickle_item = (xpElem "HomeTeam" xpText) (xpElem "WeatherType" xpInt) (xpElem "Description" xpText) - (xpElem "TempAdjust" xpText) + (xpElem "TempAdjust" (xpOption xpText)) (xpElem "Temperature" xpInt) where from_tuple = uncurryN WeatherDetailedWeatherListingItemXml @@ -590,7 +625,8 @@ weather_tests = [ test_on_delete_cascade, test_pickle_of_unpickle_is_identity, test_unpickle_succeeds, - test_types_detected_correctly ] + test_types_detected_correctly, + test_normal_teams_detected_correctly ] -- | If we unpickle something and then pickle it, we should wind up @@ -658,6 +694,16 @@ test_on_delete_cascade = testGroup "cascading delete tests" actual @?= expected +-- | This is used in a few tests to extract an 'XmlTree' from a path. +-- +unsafe_get_xmltree :: String -> IO XmlTree +unsafe_get_xmltree path = + fmap head $ runX $ readDocument parse_opts path + + +-- | We want to make sure type1 documents are detected as type1, and +-- type2 documents detected as type2.. +-- test_types_detected_correctly :: TestTree test_types_detected_correctly = testGroup "weatherxml types detected correctly" $ @@ -671,11 +717,28 @@ test_types_detected_correctly = "second type detected correctly" False ] where - unsafe_get_xmltree :: String -> IO XmlTree - unsafe_get_xmltree path = - fmap head $ runX $ readDocument parse_opts path - check path desc expected = testCase desc $ do xmltree <- unsafe_get_xmltree path let actual = is_type1 xmltree actual @?= expected + + +-- | We want to make sure normal teams are detected as normal, and the +-- backwards ones are flagged as backwards. +-- +test_normal_teams_detected_correctly :: TestTree +test_normal_teams_detected_correctly = + testGroup "team order is detected correctly" [ + + check "normal teams are detected correctly" + "test/xml/weatherxml.xml" + True, + + check "backwards teams are detected correctly" + "test/xml/weatherxml-backwards-teams.xml" + False ] + where + check desc path expected = testCase desc $ do + xmltree <- unsafe_get_xmltree path + let actual = teams_are_normal xmltree + actual @?= expected diff --git a/test/shell/import-duplicates.test b/test/shell/import-duplicates.test index 9f46f2e..99b2070 100644 --- a/test/shell/import-duplicates.test +++ b/test/shell/import-duplicates.test @@ -12,19 +12,19 @@ rm -f shelltest.sqlite3 >>>= 0 # We note the number of XML files that we have. There's one extra -# Heartbeat.xml that doesn't really count, and a weatherxml that -# isn't really supposed to import. +# Heartbeat.xml that doesn't really count, and 2 weatherxml that +# aren't really supposed to import. find ./test/xml -maxdepth 1 -name '*.xml' | wc -l >>> -23 +25 >>>= 0 # Run the imports again; we should get complaints about the duplicate -# xml_file_ids. There are 2 errors for each violation, so we expect 2*21 +# xml_file_ids. There are 2 errors for each violation, so we expect 2*22 # occurrences of the string 'ERROR'. ./dist/build/htsn-import/htsn-import -c 'shelltest.sqlite3' test/xml/*.xml 2>&1 | grep ERROR | wc -l >>> -42 +44 >>>= 0 # Finally, clean up after ourselves. diff --git a/test/shell/weatherxml-backwards-teams-unsupported.test b/test/shell/weatherxml-backwards-teams-unsupported.test new file mode 100644 index 0000000..f9dee7b --- /dev/null +++ b/test/shell/weatherxml-backwards-teams-unsupported.test @@ -0,0 +1,10 @@ +# +# Some weatherxml documents (see man page) have the home/away teams +# in reverse order. We want them to "succeed" so that they're deleted. +# +# The real output contains escape characters so we use a regexp to get +# a pretty good idea of what it says. + +./dist/build/htsn-import/htsn-import test/xml/weatherxml-backwards-teams.xml +>>> /Teams in reverse order in weatherxml.dtd \(test\/xml\/weatherxml-backwards-teams.xml\)/ +>>>= 0 diff --git a/test/xml/scoresxml-pitcher-no-type.xml b/test/xml/scoresxml-pitcher-no-type.xml new file mode 100644 index 0000000..62b4a01 --- /dev/null +++ b/test/xml/scoresxml-pitcher-no-type.xml @@ -0,0 +1 @@ + 21238331 BC-AAP+038:056* 0 095 40063 40063 Scores MLB Seattle WA USA Regular Seattle Tampa Bay 0 0 Rain Delay NOTE: The start of tonight's game is being delayed due to a ceremony. June 7, 2014, at 04:12 PM ET \ No newline at end of file diff --git a/test/xml/weatherxml-backwards-teams.xml b/test/xml/weatherxml-backwards-teams.xml new file mode 100644 index 0000000..e46b841 --- /dev/null +++ b/test/xml/weatherxml-backwards-teams.xml @@ -0,0 +1 @@ + 1310 AAW%BBWEATHER Weather MLB Major League Baseball Weather from The Sports Network Cincinnati Reds at Chicago Cubs, 7:05 p.m. Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Game-time temperature: Near 65. Miami Marlins at Philadelphia Phillies, 7:05 p.m. Partly cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Game-time temperature: Near 80. Oakland Athletics at New York Mets, 7:10 p.m. Partly cloudy with a 40-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Game-time temperature: Around 75. Atlanta Braves at Houston Astros, 8:10 p.m. Partly cloudy with a 60-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Game-time temperature: Around 80. Los Angeles Dodgers at Kansas City Royals, 8:10 p.m. Partly cloudy with a 40-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Game-time temperature: Near 85. Cleveland Indians at Arizona Diamondbacks, 9:40 p.m. Sunny. Winds blowing from left to right field at 5-10 m.p.h. Game-time temperature: Around 100. Chicago White Sox at Baltimore Orioles, 7:05 p.m. Partly cloudy with a 60-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Game-time temperature: Around 80. New York Yankees at Toronto Blue Jays, 7:07 p.m. Mostly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 5-10 m.p.h. Game-time temperature: Around 70. Detroit Tigers at Texas Rangers, 8:05 p.m. Partly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 10-15 m.p.h. Game-time temperature: Around 85. Minnesota Twins at LA Angels of Anaheim, 10:05 p.m. Sunny. Winds blowing out to left field at 5-10 m.p.h. Game-time temperature: Around 75. Boston Red Sox at Seattle Mariners, 10:10 p.m. Cloudy. Winds blowing from left to right field at 5-10 m.p.h. Game-time temperature: Around 70. AA 40307 6/24/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Around 80 AA 40308 6/24/2014 8:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 70 AA 40309 6/24/2014 8:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing in from left field at 5-10 m.p.h. Near 70 AA 40312 6/24/2014 8:40:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 75 AA 40311 6/24/2014 10:15:00 PM San Francisco Giants San Diego Padres 2 Partly cloudy. Winds blowing out to center field at 10-20 m.p.h. Near 60 AA 40306 6/24/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy. Winds blowing out to left field at 10-20 m.p.h. Near 75 AA 40299 6/24/2014 7:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40301 6/24/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy. Winds blowing out to right field at 5-10 m.p.h. Around 85 AA 40302 6/24/2014 8:10:00 PM Houston Astros Atlanta Braves 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 80 AA 40310 6/24/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing in from left field at 5-10 m.p.h. Around 100 AA 40300 6/24/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing in from left field at 5-10 m.p.h. Near 75 AA 40298 6/24/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy. Winds blowing out to left field at 10-15 m.p.h. Around 80 AA 40303 6/24/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40304 6/24/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40305 6/24/2014 10:10:00 PM Seattle Mariners Boston Red Sox 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40324 6/25/2014 2:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 65 AA 40327 6/25/2014 3:10:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40326 6/25/2014 3:45:00 PM San Francisco Giants San Diego Padres 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Near 65 AA 40323 6/25/2014 7:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 65 AA 40322 6/25/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Near 80 AA 40314 6/25/2014 12:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40321 6/25/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy with a 40-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 75 AA 40317 6/25/2014 8:10:00 PM Houston Astros Atlanta Braves 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Around 80 AA 40316 6/25/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Near 85 AA 40325 6/25/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing from left to right field at 5-10 m.p.h. Around 100 AA 40313 6/25/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Around 80 AA 40315 6/25/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 5-10 m.p.h. Around 70 AA 40318 6/25/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 10-15 m.p.h. Around 85 AA 40319 6/25/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 0 Sunny. Winds blowing out to left field at 5-10 m.p.h. Around 75 AA 40320 6/25/2014 10:10:00 PM Seattle Mariners Boston Red Sox 3 Cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 70 AA 40307 6/24/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Around 80 AA 40308 6/24/2014 8:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 70 AA 40309 6/24/2014 8:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing in from left field at 5-10 m.p.h. Near 70 AA 40312 6/24/2014 8:40:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 75 AA 40311 6/24/2014 10:15:00 PM San Francisco Giants San Diego Padres 2 Partly cloudy. Winds blowing out to center field at 10-20 m.p.h. Near 60 AA 40306 6/24/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy. Winds blowing out to left field at 10-20 m.p.h. Near 75 AA 40299 6/24/2014 7:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40301 6/24/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy. Winds blowing out to right field at 5-10 m.p.h. Around 85 AA 40302 6/24/2014 8:10:00 PM Houston Astros Atlanta Braves 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 80 AA 40310 6/24/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing in from left field at 5-10 m.p.h. Around 100 AA 40300 6/24/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing in from left field at 5-10 m.p.h. Near 75 AA 40298 6/24/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy. Winds blowing out to left field at 10-15 m.p.h. Around 80 AA 40303 6/24/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40304 6/24/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40305 6/24/2014 10:10:00 PM Seattle Mariners Boston Red Sox 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40324 6/25/2014 2:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 65 AA 40327 6/25/2014 3:10:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40326 6/25/2014 3:45:00 PM San Francisco Giants San Diego Padres 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Near 65 AA 40323 6/25/2014 7:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 65 AA 40322 6/25/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Near 80 AA 40314 6/25/2014 12:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40321 6/25/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy with a 40-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 75 AA 40317 6/25/2014 8:10:00 PM Houston Astros Atlanta Braves 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Around 80 AA 40316 6/25/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Near 85 AA 40325 6/25/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing from left to right field at 5-10 m.p.h. Around 100 AA 40313 6/25/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Around 80 AA 40315 6/25/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 5-10 m.p.h. Around 70 AA 40318 6/25/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 10-15 m.p.h. Around 85 AA 40319 6/25/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 0 Sunny. Winds blowing out to left field at 5-10 m.p.h. Around 75 AA 40320 6/25/2014 10:10:00 PM Seattle Mariners Boston Red Sox 3 Cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 70 AA 40307 6/24/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Around 80 AA 40308 6/24/2014 8:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 70 AA 40309 6/24/2014 8:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing in from left field at 5-10 m.p.h. Near 70 AA 40312 6/24/2014 8:40:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 75 AA 40311 6/24/2014 10:15:00 PM San Francisco Giants San Diego Padres 2 Partly cloudy. Winds blowing out to center field at 10-20 m.p.h. Near 60 AA 40306 6/24/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy. Winds blowing out to left field at 10-20 m.p.h. Near 75 AA 40299 6/24/2014 7:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40301 6/24/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy. Winds blowing out to right field at 5-10 m.p.h. Around 85 AA 40302 6/24/2014 8:10:00 PM Houston Astros Atlanta Braves 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 80 AA 40310 6/24/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing in from left field at 5-10 m.p.h. Around 100 AA 40300 6/24/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing in from left field at 5-10 m.p.h. Near 75 AA 40298 6/24/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy. Winds blowing out to left field at 10-15 m.p.h. Around 80 AA 40303 6/24/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40304 6/24/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40305 6/24/2014 10:10:00 PM Seattle Mariners Boston Red Sox 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40324 6/25/2014 2:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 65 AA 40327 6/25/2014 3:10:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40326 6/25/2014 3:45:00 PM San Francisco Giants San Diego Padres 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Near 65 AA 40323 6/25/2014 7:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 65 AA 40322 6/25/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Near 80 AA 40314 6/25/2014 12:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40321 6/25/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy with a 40-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 75 AA 40317 6/25/2014 8:10:00 PM Houston Astros Atlanta Braves 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Around 80 AA 40316 6/25/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Near 85 AA 40325 6/25/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing from left to right field at 5-10 m.p.h. Around 100 AA 40313 6/25/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Around 80 AA 40315 6/25/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 5-10 m.p.h. Around 70 AA 40318 6/25/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 10-15 m.p.h. Around 85 AA 40319 6/25/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 0 Sunny. Winds blowing out to left field at 5-10 m.p.h. Around 75 AA 40320 6/25/2014 10:10:00 PM Seattle Mariners Boston Red Sox 3 Cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 70 AA 40307 6/24/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Around 80 AA 40308 6/24/2014 8:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 70 AA 40309 6/24/2014 8:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing in from left field at 5-10 m.p.h. Near 70 AA 40312 6/24/2014 8:40:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 75 AA 40311 6/24/2014 10:15:00 PM San Francisco Giants San Diego Padres 2 Partly cloudy. Winds blowing out to center field at 10-20 m.p.h. Near 60 AA 40306 6/24/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy. Winds blowing out to left field at 10-20 m.p.h. Near 75 AA 40299 6/24/2014 7:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40301 6/24/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy. Winds blowing out to right field at 5-10 m.p.h. Around 85 AA 40302 6/24/2014 8:10:00 PM Houston Astros Atlanta Braves 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 80 AA 40310 6/24/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing in from left field at 5-10 m.p.h. Around 100 AA 40300 6/24/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 50-percent chance of rain. Winds blowing in from left field at 5-10 m.p.h. Near 75 AA 40298 6/24/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy. Winds blowing out to left field at 10-15 m.p.h. Around 80 AA 40303 6/24/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40304 6/24/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40305 6/24/2014 10:10:00 PM Seattle Mariners Boston Red Sox 1 Mostly sunny. Winds blowing out to right field at 5-10 m.p.h. Around 70 AA 40324 6/25/2014 2:10:00 PM Milwaukee Brewers Washington Nationals 3 Mostly cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 65 AA 40327 6/25/2014 3:10:00 PM Colorado Rockies St. Louis Cardinals 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from right field at 5-10 m.p.h. Around 85 AA 40326 6/25/2014 3:45:00 PM San Francisco Giants San Diego Padres 1 Mostly sunny. Winds blowing out to center field at 10-15 m.p.h. Near 65 AA 40323 6/25/2014 7:05:00 PM Chicago Cubs Cincinnati Reds 2 Partly cloudy. Winds blowing in from center field at 5-10 m.p.h. Near 65 AA 40322 6/25/2014 7:05:00 PM Philadelphia Phillies Miami Marlins 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Near 80 AA 40314 6/25/2014 12:10:00 PM Tampa Bay Rays Pittsburgh Pirates 11 Game is being played inside a dome. 0 AA 40321 6/25/2014 7:10:00 PM New York Mets Oakland Athletics 2 Partly cloudy with a 40-percent chance of rain. Winds blowing from left to right field at 10-15 m.p.h. Around 75 AA 40317 6/25/2014 8:10:00 PM Houston Astros Atlanta Braves 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Around 80 AA 40316 6/25/2014 8:10:00 PM Kansas City Royals Los Angeles Dodgers 2 Partly cloudy with a 40-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h. Near 85 AA 40325 6/25/2014 9:40:00 PM Arizona Diamondbacks Cleveland Indians 0 Sunny. Winds blowing from left to right field at 5-10 m.p.h. Around 100 AA 40313 6/25/2014 7:05:00 PM Baltimore Orioles Chicago White Sox 2 Partly cloudy with a 60-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h. Around 80 AA 40315 6/25/2014 7:07:00 PM Toronto Blue Jays New York Yankees 3 Mostly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 5-10 m.p.h. Around 70 AA 40318 6/25/2014 8:05:00 PM Texas Rangers Detroit Tigers 2 Partly cloudy with a 30-percent chance of rain. Winds blowing in from center field at 10-15 m.p.h. Around 85 AA 40319 6/25/2014 10:05:00 PM LA Angels of Anaheim Minnesota Twins 0 Sunny. Winds blowing out to left field at 5-10 m.p.h. Around 75 AA 40320 6/25/2014 10:10:00 PM Seattle Mariners Boston Red Sox 3 Cloudy. Winds blowing from left to right field at 5-10 m.p.h. Around 70 June 25, 2014, at 05:19 PM ET \ No newline at end of file