Astronomy: Moon Phase

  • 4
  • Question
  • Updated 3 years 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...

<prettyTime>6:52 AM</prettyTime>

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


  • 2 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 4
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes

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:

where X is the ageOfMoon such as:

for age 10.

Again, we'll have documentation soon!

Photo of 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.

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
  • 124 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:

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:
First Quarter:
Full Moon:
Last Quarter:

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


  • 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 for example. Is that planned for the future, or calculateable with what comes back currently?

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

  • 2 Posts
  • 1 Reply Like

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

Any help here would be much appreciated.
Photo of 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

  • 356 Posts
  • 53 Reply Likes
This is not an available feature
Photo of Marc


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