Astronomy: Moon Phase

  • 4
  • Question
  • Updated 1 year ago
Are there undocumented options for the astronomy feature?

Are the 8 moon phase names available? For example...

New Moon
Waxing Crescent
First Quarter
Waxing Gibbous
Full Moon
Waning Gibbous
Last Quarter
Waning Crescent

Are there icon sets (urls) for the moon phases?

< moonphse_url > http://.../waxingcresent.gif </moonphse_url >

Are there any plans for "prettyTIME" ? For example...

<sunrise>
<hour>6</hour>
<minute>52</minute>
<prettyTime>6:52 AM</prettyTime>
</sunrise>

Do the "<ageOfMoon>" values somehow correspond to the moon phase? If so, is there documentation that illustrates this?
Photo of NeoDezign

NeoDezign

  • 2 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 4
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes
Hi,

We will have documentation soon for this.

Adding prettyTime is on our backlog now.

ageOfMoon is the day number of the moon in the current cycle. You can see the icons here:
www.wunderground.com/
graphics/moonpictsnew/moonX.gif

where X is the ageOfMoon such as:
graphics/moonpictsnew/moon10.gif

for age 10.

Again, we'll have documentation soon!

Thanks,
John
Photo of NeoDezign

NeoDezign

  • 2 Posts
  • 0 Reply Likes
Hey that's excellent!

While waiting I came up with a routine at my end to figure it out and made my own images. But I'm happily discarding that for the more accurate ageOfMoon (moonx.gif) you have provided.

THANK YOU!
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes
No Problem! Sorry for the delay in getting back to you!
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
Here's more information about moon phases related to moon icons...

The age of moon corresponds with which moon image you could be showing, such as:
http://icons.wunderground.com/graphic...
http://icons.wunderground.com/graphic...
http://icons.wunderground.com/graphic...
etc

which results in your value for "current" moon. The phases you're
looking for correspond to certain numbers of the age of moon.

New Moon: http://icons.wunderground.com/graphic...
First Quarter: http://icons.wunderground.com/graphic...
Full Moon: http://icons.wunderground.com/graphic...
Last Quarter: http://icons.wunderground.com/graphic...

The Crescent and Gibbous are in between those values. Once you map
the name to the icon, you should be all set.
Photo of ryanabr

ryanabr

  • 1 Post
  • 0 Reply Likes
I see that on the website that Moonset and Moonrise are displayed, but they don't come back from the query to http://api.wunderground.com/api/KEY/a... for example. Is that planned for the future, or calculateable with what comes back currently?

Thanks
Photo of Alan Poirier

Alan Poirier

  • 1 Post
  • 0 Reply Likes
I'm curious about the moonrise and moonset times too. Any plans to add them?
Photo of Brandon Gador

Brandon Gador

  • 1 Post
  • 0 Reply Likes
Hello,

Has there been any added documentation mapping the agOfMoon response to the moon phase?

Any help here would be much appreciated.
Photo of sideal

sideal

  • 3 Posts
  • 0 Reply Likes
Is there any way to get Moon phase for current + next 6 days? please help.
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
This is not an available feature
Photo of Marc

Marc

  • 1 Post
  • 0 Reply Likes
Any way to get the moon pictures with a transparent background - rather than black?