Skip to content

Add Sunrise & Sunset widget#287

Open
mgpeter wants to merge 1 commit into
glanceapp:mainfrom
mgpeter:feature/sunrise-sunset-widget
Open

Add Sunrise & Sunset widget#287
mgpeter wants to merge 1 commit into
glanceapp:mainfrom
mgpeter:feature/sunrise-sunset-widget

Conversation

@mgpeter
Copy link
Copy Markdown

@mgpeter mgpeter commented Apr 30, 2026

Add a new Glance custom-api widget that shows today's sunrise, daylight duration, and sunset for a configured location. Includes README with template and usage notes, a meta.yml (title/description/author), and a preview image. The widget uses Open-Meteo's geocoding and forecast endpoints (no API key), reads location from WEATHER_LOCATION or the widget option, handles polar days with missing sunrise/sunset, and uses timezone=auto so times are shown in the location's local time.

image

Add a new Glance custom-api widget that shows today's sunrise, daylight duration, and sunset for a configured location. Includes README with template and usage notes, a meta.yml (title/description/author), and a preview image. The widget uses Open-Meteo's geocoding and forecast endpoints (no API key), reads location from WEATHER_LOCATION or the widget option, handles polar days with missing sunrise/sunset, and uses timezone=auto so times are shown in the location's local time.
Copy link
Copy Markdown

@taskfork taskfork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Widget works great in my instance, no issues when providing weather location as per instructions. Readme is clear and easy to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants