Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Sunrise and Sunset times for forecasted days

Peter Haynes Jan 09, 2017 03:32PM UTC

I see it has been raised before that sunrise and sunset times are only available in current weather requests. (https://openweathermap.desk.com/customer/portal/questions/11421788-sunrise-and-set)

As this issue was first raised in February 2015 I wondered if there was any progress?

I need sunrise times for days in the future and am going to be forced to change API if I can not get these.

As a free account user I appreciate all the work that has gone into the API but cannot commit to paying for an account when my application is ready for production without this functionality in place.

Up 0 rated Down
Maxim Gushcho Jan 10, 2017 11:51AM UTC OpenWeatherMap Agent

Hello,

Thanks for raising this question again.
Based on the logic of our forecast data it is not correct to implement sunrise and sunset info for 5 day/3hours API.
This feature is more applicable for the 16 daily API.
We will consider this implementation in the next version of our API.
Also, monitor our news page to be aware about lattest updates.
Thanks for understanding and hope you stay in touch with us.

Up 0 rated Down
Andrey Sep 12, 2017 05:46AM UTC
Hello, I wonder if there was any progress with sunset and sunrise in 16days forecast?
Up 0 rated Down
Maxim Gushcho Sep 12, 2017 02:16PM UTC OpenWeatherMap Agent

Hello,

Unfortunately, we did not implement this functionality so far.
The sunrise and sunset values are only provided in the current API service.

Up 0 rated Down
Mauro Bennici Nov 06, 2017 01:54PM UTC
Hello,

it is quite odd that the sun data are exposed in forecast api in XML format and are absent in the same api in JSON format.
Up 0 rated Down
Maxim Gushcho Nov 07, 2017 05:27PM UTC OpenWeatherMap Agent

Hello,

We will put all efforts to deploy this functionality as soon as possible.

Thanks.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete