You may remember my PR that added a « Moon Phase » widget to the Gladys core (#2990). To avoid bloating the core, I turned it into an external integration: same calculations, same results, but installable only by those who want it. @pierre-gilles, we can now close the PR
What the widget shows
The phase of the day (New Moon, First Quarter, Full MoonâŠ), the illumination percentage and the age of the moon
The lunar disk (NASA photo) with its illuminated part
Moonrise and moonset at Gladysâs time
Today: Earth-Moon distance, ascending/descending trajectory, constellation, next node
Upcoming: full moon, new moon, perigee, apogee, and next lunar eclipse, with countdown and date (« In 5 days · Fri, Aug 28 »)
No account, no key, no internet access: everything is calculated locally based on the position of your home. Just make sure the home is located (Settings â Homes).
Widget settings
Home: empty = first located home, otherwise the name of the home
Show details: the full list, or just phase + disk + rise/set
Calculate values at midnight: to compare line by line with a lunar calendar
Available in French, English, and German. Requires Gladys 5.1.1 or later.
Version 1.1.0 of the Moon Phase integration is available. The store will index it during the day: the « Update » button will then appear in Gladys.
Whatâs New
New Features
Scene Trigger « Moon: Lunar Event »: new moon, first quarter, full moon, last quarter, perigee, apogee, and lunar eclipse, triggered at the minute the event occurs. You choose the events you are interested in, and the scene receives a ready-to-send phrase: « Full moon at 05:11: the moon is 100% illuminated, 368,600 km from Earth. »
Scene Action « Moon: Moon Phase »: the phase, illumination, moonrise, and moonset for a house, the date of the next full moon and the next new moon, and a summary.
The integration is now available in Spanish.
New setting Language of Scene Texts: by default « Automatic », meaning the language of your dashboard as soon as the widget is displayed.
Bug Fix
The integration now appears under the Local filter of integrations: everything is calculated in the container, without Internet access (thanks @mutmut for the issue).
Time Precision
The widget keeps the exact calculation of the core widget. For triggers, the right minute was needed: the « phase » of the library used by the widget can place a full moon up to 5 hours too early or too late. The moments of the events therefore use more precise ephemerides (algorithms by Jean Meeus), verified to within 3 minutes over 200 phases.
Required Actions
None: your widget and its settings continue to work as they are.
The minimum version of Gladys does not change: 5.1.1.
Your Feedback
Your feedback is still welcome, especially from the Southern Hemisphere or an exotic time zone, in response to this thread or in a GitHub issue. Indicate the version of Gladys, that of the integration, the time zone and the approximate location of the house, and the logs of the integration (ideally with DEBUG=gladys-integration-sdk).
For Developers
The repository switches to automatic releases: each push to main publishes a version based on Conventional Commits, with a generated CHANGELOG, a multi-architecture image published before the manifest announces it, then a check (anonymous download, store validator). The SDK moves to 0.15, Node 22 minimum, and a regression test compares the manifest keys to those of 1.0.0.