Seem Ambient Weather return (at least?) 2 different JSON. Not sure why don't return a model or version field or at least return the same fields?
[{ [{
"macAddress":"cheeroip MAC" "macAddress":"davidmc36 MAC",
"lastData": { "lastData":{
"dateutc":1599930600000, "dateutc":1604248440000,
"winddir":358, "winddir":143,
"windspeedmph":0.9, "windspeedmph":6.9,
"windgustmph":1.1, "windgustmph":21,
"maxdailygust":8.1, "maxdailygust":21,
"tempf":79.3, "windgustdir":205,
"hourlyrainin":0, "winddir_avg2m":204,
"dailyrainin":0, "windspdmph_avg2m":6.9,
"weeklyrainin":0.22, "winddir_avg10m":185,
"monthlyrainin":0.22, "windspdmph_avg10m":6.5,
"totalrainin":85.44, "tempf":47.7,
"baromrelin":30.02, "humidity":73,
"baromabsin":29.42, "baromrelin":29.67,
"humidity":85, "baromabsin":29.39,
"tempinf":78.4, "tempinf":72,
"humidityin":51, "humidityin":45,
"uv":1, "hourlyrainin":0,
"solarradiation":166.5, "dailyrainin":0,
"feelsLike":80.93, "monthlyrainin":0,
"dewPoint":74.39, "yearlyrainin":18.97,
"feelsLikein":78.3, "battin":0,
"dewPointin":58.8, "battout":0,
"lastRain":"2020-09-10T08:59:00.000Z", "feelsLike":44.47,
"tz":"America/New_York", "dewPoint":39.48,
"date":"2020-09-12T17:10:00.000Z" "feelsLikein":71,
} "dewPointin":49.5,
... "lastRain":"2020-10-27T15:32:00.000Z",
... "tz":"America/Toronto",
"date":"2020-11-01T16:34:00.000Z"
},
...
...
Specifically I was expecting the <weeklyrainin> field missing in davidmc36 JSON.
I wonder if they will ever return those battery values? they seem interesting.
Ideally an application should never crash on receiving unexpected data but problem solving on the field and in emergency mode is just more fun, I'm a big fan of the "happy little accidents school and I like sharing the process with my customers/users.
I philosophically prefer an application crash than showing wrong data.
Thanks to davidmc36 for the feedback.