DarkSkyWeather icon indicating copy to clipboard operation
DarkSkyWeather copied to clipboard

temperatureMin vs TemperatureLow

Open SWEUSPeter opened this issue 5 years ago • 2 comments

This seems to be an issue with the forecast, today is Monday and the temperatures for Thursday is off. Dark Sky reports a TemperatureLow and a TemperatureMin. If you look at the timestamp for each readings you can see that TemperatureLow is actually for the following day in the morning, while TemperatureMin is the correct reading for the current day in the morning. TempMax seems to be okay. To add to the mix is that temperatureMin and Max are both indicated to be come deprecated from their API.

Below is the reply for Thursday, November 22, 2018, daily.

temperatureLow 13.03 is timed Friday, November 23, 2018

temperatureMin 9.87 is timed Thursday, November 22,

{"time":1542862800,"summary":"Breezy throughout the day.","icon":"wind","sunriseTime":1542887123,"sunsetTime":1542920986,"moonPhase":0.47,"precipIntensity":0.0001,"precipIntensityMax":0.0007,"precipIntensityMaxTime":1542866400,"precipProbability":0.12,"precipAccumulation":0.057,"precipType":"snow","temperatureHigh":17.8,"temperatureHighTime":1542909600,"temperatureLow":13.03,"temperatureLowTime":1542967200,"apparentTemperatureHigh":1.18,"apparentTemperatureHighTime":1542909600,"apparentTemperatureLow":-1.7,"apparentTemperatureLowTime":1542963600,"dewPoint":4.35,"humidity":0.63,"pressure":1021.44,"windSpeed":18.17,"windGust":37.15,"windGustTime":1542927600,"windBearing":315,"cloudCover":0.12,"uvIndex":1,"uvIndexTime":1542895200,"visibility":10,"ozone":369.3,"temperatureMin":9.87,"temperatureMinTime":1542888000,"temperatureMax":17.8,"temperatureMaxTime":1542909600,"apparentTemperatureMin":-7.65,"apparentTemperatureMinTime":1542888000,"apparentTemperatureMax":1.58,"apparentTemperatureMaxTime":1542862800},

SWEUSPeter avatar Nov 20 '18 02:11 SWEUSPeter

The library uses temperatureHigh and temperatureLow.

I decided not to use the deprecated forecast.

I can add the temperatureLowTime and temperatureHighTime to the available parameters if you think they will be useful to you.

I have also created a library that uses the Apixu website as the weather data source, a TFT display example will be added soon.

Bodmer avatar Nov 20 '18 02:11 Bodmer

I wouldn’t use deprecated data fields either.

But in this case I’m not sure why they send you next days low temperature when all the other data is for that day. Their website has a similar behavior except the values are just a tad off but just slightly.

I’ll test a few things and see if I can understand this better before you do more work on it.

SWEUSPeter avatar Nov 20 '18 03:11 SWEUSPeter