Skip to content

Add zodiac watch face - #262

Open
swamp-dev wants to merge 1 commit into
joeycastillo:mainfrom
swamp-dev:up/zodiac-face
Open

swamp-dev wants to merge 1 commit into
joeycastillo:mainfrom
swamp-dev:up/zodiac-face

Conversation

@swamp-dev

Copy link
Copy Markdown

This adds a zodiac watch face: it shows the zodiac sign the Sun is in, and the local date the Sun entered it.

  • Top row: the sign (Scorp on the custom LCD, SC on the classic one).
  • Bottom row: month and day the sign starts, then St (1023St is 23 October).
  • ALARM: next sign. LIGHT: previous sign. Each shows the start date nearest to today.
  • Long-press LIGHT: the LED.

The sign and dates are computed from the Sun's ecliptic longitude, not from a fixed table, so they follow the actual ingress each year (it moves by a day between years). The calculation is in a new lib/zodiac, which has no hardware dependencies. It uses sunpos() from lib/sunriset, so this PR makes that function non-static and declares it in sunriset.h.

sunpos() is a low-precision model: ingress times come out within about 15 minutes, so an ingress that close to local midnight can show the neighbouring date.

The face is registered in movement_faces.h and watch-faces.mk but not added to movement_config.h.

Testing

  • Firmware and simulator build for all four boards with both DISPLAY=classic and DISPLAY=custom.
  • Simulator (sensorwatch_red, both displays, with the face added to movement_config.h locally), on 12 November 2026: the face opens on Scorp / 1023St; ALARM shows Sagit / 1122St; LIGHT goes back, and again to Libra / 0922St. On the classic LCD the same steps show SC and SA.
  • lib/zodiac has host unit tests in my fork (https://github.com/swamp-dev/second-movement/blob/main/test/test_zodiac.c): the sign changes at the published 2026 and 2028 equinox and solstice times, start dates are the local date in several time zones, and a day-by-day walk of 2026-2030. They pass against the files in this PR.
  • Not yet run on a watch.

Prepared with Claude Code.

@voloved

voloved commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Hey, to what extent was Claude used in the development?

@swamp-dev

Copy link
Copy Markdown
Author

Hey, to what extent was Claude used in the development?

I wrote it mostly by and using autocomplete at first. Claude helped me catch some bugs and improve.

Shows the zodiac sign the Sun is in and the local date it entered that
sign. ALARM and LIGHT step through the other signs and their start dates.

The sign and the dates are computed from the Sun's ecliptic longitude, so
they follow the actual ingress each year. The calculation is in
lib/zodiac, a small library with no hardware dependencies, and uses
sunpos() from lib/sunriset, which is now exported.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@voloved

voloved commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Hey, to what extent was Claude used in the development?

I wrote it mostly by and using autocomplete at first. Claude helped me catch some bugs and improve.

Got it.
Would you be able to roll the zodiac library into the watch face itself?
I'd like to keep the logic for this face more contained.

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