Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Possible bug with weather forecast API

Hi, I'm using the weather forecast data, and it seems there is a bug. For many users it returns 'repeated rows with partial information', for example it returns 9 rows: today (june 11), june 12, june 13, june 14, june 15, and then the next row is june 11 again, then june 12, etc. but with partial/incomplete data (no temperature, no valid weathersymbol...)

I've fixed it in the app by ignoring any data in the forecast whose date is not the 'next day after the previous row'.

FYI, here is the call and the return.

CALL
https://api.ecobee.com/1/thermostat?j...

RETURN (only copying the part that includes forecasts)

"weather": {
"timestamp": "2015-06-11 16:30:25",
"weatherStation": "CW:32319",
"forecasts": [
{
"weatherSymbol": 1,
"dateTime": "2015-06-11 09:27:06",
"condition": "Sunny. Cool.",
"temperature": 601,
"pressure": 1021,
"relativeHumidity": 67,
"dewpoint": 489,
"visibility": 16000,
"windSpeed": 11000,
"windGust": -5002,
"windDirection": "W",
"windBearing": 270,
"pop": 12,
"tempHigh": 718,
"tempLow": 525,
"sky": 1
},
{
"weatherSymbol": 3,
"dateTime": "2015-06-12 09:27:06",
"condition": "More clouds than sun. Mild.",
"temperature": 573,
"pressure": 1019,
"relativeHumidity": 46,
"dewpoint": 426,
"visibility": -5002,
"windSpeed": 10000,
"windGust": -5002,
"windDirection": "W",
"windBearing": 282,
"pop": 19,
"tempHigh": 648,
"tempLow": 498,
"sky": 13
},
{
"weatherSymbol": 8,
"dateTime": "2015-06-13 09:27:06",
"condition": "Sprinkles late. Scattered clouds. Mild.",
"temperature": 579,
"pressure": 1017,
"relativeHumidity": 43,
"dewpoint": 423,
"visibility": -5002,
"windSpeed": 11000,
"windGust": -5002,
"windDirection": "NW",
"windBearing": 309,
"pop": 32,
"tempHigh": 669,
"tempLow": 489,
"sky": 9
},
{
"weatherSymbol": 1,
"dateTime": "2015-06-14 09:27:06",
"condition": "Scattered clouds. Mild.",
"temperature": 610,
"pressure": 1014,
"relativeHumidity": 40,
"dewpoint": 454,
"visibility": -5002,
"windSpeed": 12000,
"windGust": -5002,
"windDirection": "NW",
"windBearing": 325,
"pop": 20,
"tempHigh": 727,
"tempLow": 493,
"sky": 9
},
{
"weatherSymbol": 1,
"dateTime": "2015-06-15 09:27:06",
"condition": "Scattered clouds. Pleasantly warm.",
"temperature": 666,
"pressure": 1012,
"relativeHumidity": 35,
"dewpoint": 465,
"visibility": -5002,
"windSpeed": 12000,
"windGust": -5002,
"windDirection": "NW",
"windBearing": 308,
"pop": 20,
"tempHigh": 774,
"tempLow": 558,
"sky": 9
},
{
"weatherSymbol": 2,
"dateTime": "2015-06-11 09:00:00",
"condition": "High level clouds. Cool.",
"temperature": 586,
"pressure": -5002,
"relativeHumidity": 65,
"dewpoint": 468,
"visibility": 12000,
"windSpeed": 6000,
"windGust": -5002,
"windDirection": "NW",
"windBearing": 300,
"pop": 0,
"tempHigh": -5002,
"tempLow": -5002,
"sky": 12
},
{
"weatherSymbol": 0,
"dateTime": "2015-06-11 15:00:00",
"condition": "Sunny. Mild.",
"temperature": 718,
"pressure": -5002,
"relativeHumidity": 42,
"dewpoint": 477,
"visibility": 15000,
"windSpeed": 11000,
"windGust": -5002,
"windDirection": "NW",
"windBearing": 323,
"pop": 12,
"tempHigh": -5002,
"tempLow": -5002,
"sky": 1
},
{
"weatherSymbol": 0,
"dateTime": "2015-06-11 21:00:00",
"condition": "Sunny. Mild.",
"temperature": 622,
"pressure": -5002,
"relativeHumidity": 52,
"dewpoint": 444,
"visibility": 15000,
"windSpeed": 16000,
"windGust": -5002,
"windDirection": "N",
"windBearing": 13,
"pop": 6,
"tempHigh": -5002,
"tempLow": -5002,
"sky": 1
},
{
"weatherSymbol": 3,
"dateTime": "2015-06-12 03:00:00",
"condition": "Overcast. Cool.",
"temperature": 498,
"pressure": -5002,
"relativeHumidity": 77,
"dewpoint": 428,
"visibility": 12000,
"windSpeed": 7000,
"windGust": -5002,
"windDirection": "NE",
"windBearing": 23,
"pop": 1,
"tempHigh": -5002,
"tempLow": -5002,
"sky": 18
}
]
},
1 person has
this question
+1
Reply