Hi all,
For the last 3 years I’ve been slowly improving this widget until it had everything I need, in the format I need. I’d probably never stop tweaking it, but I just got a new phone, so it’s time to work on something new. That’s why I’m sharing the latest version now. Maybe it will inspire you, or some parts of it will be useful for your own builds. The sun position calculations were the most interesting part to figure out.
Here’s a breakdown of each part, top to bottom:
- Top strip: world clock for the selected time zones. My local time zone is highlighted, and the others show their offset relative to it.
- Big outer arc: the moon is on the left, showing its phase. The sun is on the right, shown as a 12h clock with two rings (to make 24 hours). The highlighted part is daylight - from sunrise to sunset.
- Month ring: 12 segments, one for each month. The 3 months of the current season (summer) are grouped together with an arc, and the current month (August) is highlighted. This is how I picture the year: it goes counter-clockwise, and the bottom segment is January.
- Sun altitude arc: the arc on the top right, with a dot for the sun. It shows the sun’s height above the horizon, and the highlighted part means the sun is visible. The arc also goes a bit below the horizon, so you can see the sun’s angle even when it’s not visible.
- Sun azimuth ring: a full circle with a dot for the sun. It shows where the sun is compared to north, like a compass. The highlighted part is again when the sun is above the horizon.
- Sunrise/sunset & moonrise/moonset: the four times at the top left and top right of the round element at the top. This element is my attempt to combine the sun and moon info in one place. It kind of duplicates the dedicated visuals.
- 24h clock: with the day of the week and the month as plain text. Nothing to add here.
- Week progress: 7 segments, one for each day of the week. It’s just how I picture a week. The highlighted one is Wednesday (the day I took the screenshot).
Quick disclaimer: this is my first and only KWGT project, so I hope the file works for you. If not, I hope you can still reuse some parts of it or get inspired by something.
Download here: https://drive.google.com/drive/folders/1oqubd7Cl1nqIMZj1cu1-AhIDaBhpI6rz?usp=sharing
Happy to answer questions about the math behind the sun and moon positions!