While downloading the weather data, the time stamp for 'sunrisse' , 'sunset' etc is all in GMT. I don't find any place to enter a time zone. On the Adafruit io page it gives the correct local time, and the lat, lon coordinates are correct.
Secrets file has the correct time zone
Data available in forecast_days_1 forecast
The time zone calculation is also messing up the sunrise, sunset and other times also.
sunrise is on the 27th and sunset is on the 28th, this is because of the +8 hour time difference.
2023-05-27T23:03:51Z sunrise
2023-05-28T11:28:21Z sunset
2023-05-27T16:00:00Z forecast_Start
2023-05-28T16:00:00Z forecast_End
waxingGibbous moonPhase
2023-05-28T05:58:11Z moonrise
2023-05-27T17:46:03Z moonset
0.64 precipitation_Chance
rain precipitation_Type
30.4 temperature_Max
26.83 temperature_Min
Below copied from Adafruit io Apple weather kit page
2646 5.46426,100.30111 2023/05/27 12:38AM Apple WeatherKit
Am I missing something.
Need Help
Apple Weather kit Time Date
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Apple Weather kit Time Date
You could try setting your time zone (if you haven't):
https://accounts.adafruit.com/settings/profile
I don't think we modify the data coming back from apple though. I'll file an issue internally and take a look at it. It would be nice if any dates we get returned are re-set to the time zone set in your profile.
https://accounts.adafruit.com/settings/profile
I don't think we modify the data coming back from apple though. I'll file an issue internally and take a look at it. It would be nice if any dates we get returned are re-set to the time zone set in your profile.
- fali2679
- Posts: 6
- Joined: Mon Jun 28, 2021 8:54 am
Re: Apple Weather kit Time Date
The time zone in the profile is set to the local timezone
TIME ZONE
(GMT+08:00) Kuala Lumpur
TIME ZONE
(GMT+08:00) Kuala Lumpur
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.