Moonphase

Categories

Component ID

2418333

Component name

Moonphase

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module creates a system block that displays the current moon phase.

Features:

Very accurate calculations
Now has live updating data fields
Display current moon visibility percentage
Display image showing current moon phase
Set default time zone in block configuration
Easily themeable block.tpl.php

This module is based on the PHP moonphase functions found here:

http://www.obsid.org/2008/05/calculate-moon-phase-data-with-php.html

There are two functions I have integrated. One that displays the current phase of the moon with images to roughly show what it looks like along with displaying the % visible, and a "moon phase hunt" that shows the most recent new moon to new moon dates.

You can add a wrapper class to the block in the block configuration page. You can tweak the moonphase_block.tpl.php template file to your liking.

I plan to expand it more.

Cheers!