LUNAR ALMANAC
Moon Phase & Illumination Widget
Calculated phase, illumination, next new and full Moon, and the next local moonrise and moonset.
Working preview
Customize your widget
Location coordinates (default: Los Angeles)
Width follows its container. All source credits and the provider attribution remain visible.
Embed code
Installation
- Copy the code into a custom HTML block on your website. WordPress, school sites and publisher pages must allow iframes.
- The widget loads independently of your page. Allow
https://www.spaceweathertracker.comin your site’s frame-src policy. - Keep the frame’s stated height, or make it taller. Narrow screens may scroll within the frame; do not crop its attribution.
About the readings
Astronomy Engine computes lunar geometry for the stated instant. Rise and set are the next events within 24 hours for the selected coordinates, with all event times labeled UTC. Terrain and atmospheric conditions can alter observed rise and set.
Example use cases
Photography blogs, educational websites, calendars and stargazing resources.
Free to use with visible SWT attribution. Not for navigation, emergency decisions or safety-of-life applications.
Refresh, sources & privacy
Data loads asynchronously and is checked every five minutes while the widget is visible. Observation timestamps belong to the source; forecast-valid times and ephemeris calculation times are labeled separately. A refresh failure preserves last available data with a warning. The widget sets no cookies, stores no location history, and includes no ads or analytics scripts. Standard hosting request logs may still be retained.
If your site blocks frames, shows an empty preview or strips HTML, check its iframe permissions and content security policy. During upstream outages, use the widget’s Refresh control. No API key or account is required.