how to find out sunrise and sunset time?

  • 1
  • Question
  • Updated 6 years ago
how to find out sunrise and sunset time? I am using following code

$json_string = file_get_contents("http://api.wunderground.com/api/a460f...");
$parsed_json = json_decode($json_string);
$Weather = $parsed_json->{'current_observation'}->{'weather'};
Photo of promatics

promatics

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
Add the /astronomy/ feature to your URL

http://api.wunderground.com/api/a460f...