briis / weatherbit

The weatherbit integration adds support for the weatherbit.io web service as a source for meteorological data for your location.
MIT License
33 stars 7 forks source link

Forecast day headers are a day behind #62

Closed greg520820 closed 2 years ago

greg520820 commented 2 years ago

Edit: Changed version number from 1.04 to 1.05. Version 1.05 has the forecast and day synced, but all versions after 1.05 the forecast day header is off by one day.

All version after 1.05 the forecast is one day behind, at least for my time zone.

On version 1.05 the entities created for sensor.weatherbit_forecast_day_1 is datetime: '2022-02-23T16:00:00+00:00', but all version after 1.05 the entity is created with a datetime: '2022-02-23T00:00:00+00:00'. I'm in the New York time zone, so the 00 hours minus 5 hours for the time zone correction makes the day 1 forecast header being marked as yesterday.

briis commented 2 years ago

I will look in to this. I am just moving house, so everything is packed down. Expect it to be a two weeks before I am back up.

greg520820 commented 2 years ago

No rush. I'm running version 1.04 and it is working fine, but would like to get on the latest version.

Good luck with the move.

briis commented 2 years ago

I have now made a pre-release of 1.0.9-beta.1 which contains a potential fix. I need you all to test it out. If you run through HACS, you need Beta releases enabled to see it. Looking forward to hear if this fixes it.

greg520820 commented 2 years ago

Yes, the 1.0.9 beta works for me. The forecast days are correct. The sensor.weatherbit_forecast_day_1 and weather.weatherbit entities are both showing date/time stamp of 2022-04-17T16:00:00+00:00.

Thanks for fixing this issue.

briis commented 2 years ago

Sounds good. I will let it you run it for at least 24 hours, before making this official. Just to make sure it works.

briis commented 2 years ago

I have now released 1.0.9 - no changes from the previous beta, just making it official. Closing the issue.

MichaelStruck commented 2 years ago

I can verify this fixed the issue for me as well