Support Center

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

Sunrise and sunset time is changing during the day

Ulrich Kunz Sep 08, 2018 09:21AM BST

Hello Support Team,

the sunrice and sunset timestamp from the actual weather is changing during the day. ( +/- 30 minutes) Why? I get the timestamp for one location in Spain with your API in JSON format.

dt = 1536390000
sunrise = 1536384197
sunset = 1536430087


dt = 1536393600
sunrise = 1536384198
sunset = 1536430084



Best regards

Ulrich Kunz
Germany

Up 0 rated Down
Bronislava Stavnitskaya Sep 11, 2018 02:19PM BST OpenWeatherMap Agent

Hi!

Thank you for your request!

Could you please provide your API call and full text of response?

Up 0 rated Down
Ulrich Kunz Oct 07, 2018 08:47AM BST
Here are the needed Data:

http://api.openweathermap.org/data/2.5/weather?id=6533952&APPID=57b78413a.......&lang=de&units=metric";


07.10. 01:20:55
array (
'coord' =>
array (
'lon' => 2.8900000000000001,
'lat' => 39.490000000000002,
),
'weather' =>
array (
0 =>
array (
'id' => 802,
'main' => 'Clouds',
'description' => 'Überwiegend bewölkt',
'icon' => '03n',
),
),
'base' => 'stations',
'main' =>
array (
'temp' => 21,
'pressure' => 1014,
'humidity' => 88,
'temp_min' => 21,
'temp_max' => 21,
),
'visibility' => 10000,
'wind' =>
array (
'speed' => 1.5,
'deg' => 170,
),
'clouds' =>
array (
'all' => 40,
),
'dt' => 1538866800,
'sys' =>
array (
'type' => 1,
'id' => 5492,
'message' => 0.0033,
'country' => 'ES',
'sunrise' => 1538805009,
'sunset' => 1538846509,
),
'id' => 6533952,
'name' => 'Llucmajor',
'cod' => 200,
)


07.10. 02:50:55
array (
'coord' =>
array (
'lon' => 2.8900000000000001,
'lat' => 39.490000000000002,
),
'weather' =>
array (
0 =>
array (
'id' => 802,
'main' => 'Clouds',
'description' => 'Überwiegend bewölkt',
'icon' => '03n',
),
),
'base' => 'stations',
'main' =>
array (
'temp' => 22,
'pressure' => 1014,
'humidity' => 88,
'temp_min' => 22,
'temp_max' => 22,
),
'visibility' => 10000,
'wind' =>
array (
'speed' => 2.1000000000000001,
'deg' => 160,
),
'clouds' =>
array (
'all' => 40,
),
'dt' => 1538872200,
'sys' =>
array (
'type' => 1,
'id' => 5492,
'message' => 0.0025999999999999999,
'country' => 'ES',
'sunrise' => 1538891412,
'sunset' => 1538932903,
),
'id' => 6533952,
'name' => 'Llucmajor',
'cod' => 200,
)


07.10. 09:20:55
array (
'coord' =>
array (
'lon' => 2.8900000000000001,
'lat' => 39.490000000000002,
),
'weather' =>
array (
0 =>
array (
'id' => 802,
'main' => 'Clouds',
'description' => 'Überwiegend bewölkt',
'icon' => '03d',
),
),
'base' => 'stations',
'main' =>
array (
'temp' => 23,
'pressure' => 1012,
'humidity' => 60,
'temp_min' => 23,
'temp_max' => 23,
),
'visibility' => 10000,
'wind' =>
array (
'speed' => 8.1999999999999993,
'deg' => 320,
),
'clouds' =>
array (
'all' => 40,
),
'dt' => 1538895600,
'sys' =>
array (
'type' => 1,
'id' => 5492,
'message' => 0.0025000000000000001,
'country' => 'ES',
'sunrise' => 1538891428,
'sunset' => 1538932878,
),
'id' => 6533952,
'name' => 'Llucmajor',
'cod' => 200,
)


Best regards

Ulrich

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