krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit e6b435be6a

e6b435be6a88de74aab64d242866c08068f5e97f

parent: 6987c430b9

Unsigned

cmc <hello@cleberg.net> · 2026-10-21 18:48 UTC

PLAN: v5 roadmap from everything not done (!89)

v5 collects every open item, grouped: platforms, sky, system, Sun, launches and Live Activities, eclipse 2027, observing, performance, backend and design. Not-done clauses removed from v3 and v4; v4 gains a backend line. Before publishing: App Store Connect privacy URL and label, Launch Library 2 attribution terms. Broadcast capability and device checks removed (done / ongoing).

Layout: unified · split

PLAN.org +85 −34
@@ -416,75 +416,126 @@ Sky, System, Sun, Launches, Library core (above).
416- 3D planets from USGS maps; immersive sky and orrery on Vision Pro. Done: 416- 3D planets from USGS maps; immersive sky and orrery on Vision Pro. Done:
417 globes for the Sun, planets, dwarf planets and moons (NASA/USGS maps for 13, 417 globes for the Sun, planets, dwarf planets and moons (NASA/USGS maps for 13,
418 colour for the rest); visionOS app with globes, an orrery volume and an 418 colour for the rest); visionOS app with globes, an orrery volume and an
419 immersive star field. visionOS is compiled but not yet run (no simulator 419 immersive star field.
420 runtime installed).
421- Guided seasonal sky tours and mission stories. Tours done: four, by 420- Guided seasonal sky tours and mission stories. Tours done: four, by
422 months, 5 to 8 stops each, in Library/Resources/tours. Mission stories 421 months, 5 to 8 stops each, in Library/Resources/tours. Mission stories
423 done for Voyager 1 and 2, Pioneer 10 and 11 and New Horizons, on the orrery. 422 done for Voyager 1 and 2, Pioneer 10 and 11 and New Horizons, on the orrery.
424- Live coverage of major events (e.g. an Artemis landing) on the orrery 423- Live coverage of major events (e.g. an Artemis landing) on the orrery
425 with a Live Activity. Done: GET /v1/live with a Horizons trajectory, an 424 with a Live Activity. Done: GET /v1/live with a Horizons trajectory, an
426 Earth–Moon map on the System tab and a Live Activity. Artemis I is configured 425 Earth–Moon map on the System tab and a Live Activity. Artemis I is configured
427 as a past event for replay; add Artemis II and later missions to 426 as a past event for replay.
428 server/src/live.ts (Horizons ID, window, phases) once their Horizons IDs are
429 published.
430 427
431** v4: connect the areas 428** v4: connect the areas
432- Eclipse day for 2 August 2027. Done: IERS ΔT, contacts to 0.1 s, site 429- Eclipse day for 2 August 2027. Done: IERS ΔT, contacts to 0.1 s, site
433 time zone, precise location; cue script with safety rules, foreground 430 time zone, precise location; cue script with safety rules, foreground
434 spoken countdown, rehearsal, sun diagram, contact-time Live Activity. 431 spoken countdown, rehearsal, sun diagram, contact-time Live Activity.
435 Decided: the countdown stays in the foreground (no background audio 432 Decided: the countdown stays in the foreground (no background audio
436 mode) and in English. Not done: Watch haptics, drive to totality, cloud 433 mode) and in English.
437 climatology, field test on 6 February 2027.
438- Siri, Shortcuts and Spotlight. Done: 9 App Shortcuts over a MoonriseKit 434- Siri, Shortcuts and Spotlight. Done: 9 App Shortcuts over a MoonriseKit
439 =Answers= target; all Library pages in Spotlight; open page and show in 435 =Answers= target; all Library pages in Spotlight; open page and show in
440 sky. Not done: widgets and controls from the same intents, App Group, 436 sky.
441 phrase testing on a device.
442- Sun tab. Done: offline snapshot, plain-language summary, NOAA R/S/G 437- Sun tab. Done: offline snapshot, plain-language summary, NOAA R/S/G
443 scales, flare and proton probabilities. Not done: solar wind (SOLAR-1 438 scales, flare and proton probabilities; X-ray chart from 5-minute maxima;
444 RTSW, reduce on the Worker), active-region labels, sun path, CCOR-2. 439 black and partly covered SDO frames skipped for the latest complete one.
445- Sky chart. Done: star fills batched by bin; 109 Messier objects from 440- Sky chart. Done: star fills batched by bin; 109 Messier objects from
446 OpenNGC v20260501 with atlas symbols and cards. Not done: Milky Way 441 OpenNGC v20260501 with atlas symbols and cards; off-screen labels
447 (ESA "Gaia's sky in colour", CC BY-SA; Gaia data itself is CC BY-NC), 442 skipped.
448 comets (JPL SBDB; needs a parabolic/hyperbolic solver), NGC, deeper stars.
449- Launch visibility. Done: payload first visible pass and labelled Starlink 443- Launch visibility. Done: payload first visible pass and labelled Starlink
450 trains from CelesTrak SupGP, 7 LL2 requests an hour. Run migration 444 trains from CelesTrak SupGP.
451 =0004_launch_designator.sql= on the remote D1 before deploying the Worker.
452 Not done: seeing the ascent (needs a trajectory model).
453- Live Activities. Done: satellite pass activity; small, limited-width and 445- Live Activities. Done: satellite pass activity; small, limited-width and
454 StandBy layouts for all activities; scheduled launch start at T−60 min; 446 StandBy layouts for all activities; scheduled launch start at T−60 min;
455 launch updates pushed over APNs broadcast channels, one per launch, with a 447 launch updates pushed over APNs broadcast channels, one per launch, with a
456 focused LL2 poll every 5 min from T−60 to T+15 (at most 13 anonymous 448 focused LL2 poll every 2 min from T−60 to T+15 with the API key (at most
457 requests an hour); previews and DEBUG sample activities for testing. Not 449 31 requests an hour); previews and DEBUG sample activities for testing.
458 done: storms, meteor peaks.
459- Observing conditions. Done: dark window and Moon times in the Today 450- Observing conditions. Done: dark window and Moon times in the Today
460 sheet, Moon notes on meteor peaks, passes and tours; opt-in WeatherKit 451 sheet, Moon notes on meteor peaks, passes and tours; opt-in WeatherKit
461 cloud (off by default, location rounded to 0.1°, sent only to Apple) with 452 cloud (off by default, location rounded to 0.1°, sent only to Apple) with
462 a go/marginal/no rating for tonight, passes and events. Not done: light 453 a go/marginal/no rating for tonight, passes and events.
463 pollution (licence), meteor radiant altitude.
464- Observing programs. Done: =:CATALOG:= and =:UTC_OFFSET:= in the log, 454- Observing programs. Done: =:CATALOG:= and =:UTC_OFFSET:= in the log,
465 catalogue name matching, Messier progress, user program lists as Org 455 catalogue name matching, Messier progress, user program lists as Org
466 files, "not yet logged, up tonight". Not done: Astronomical League lists 456 files, "not yet logged, up tonight".
467 (Herschel 400, Double Star, Lunar, Binocular Messier) and Lunar 100 457- Backend. Done: moonrise.krz.sh with edge-cached GETs; LL2 API key
468 (Charles Wood, Sky & Telescope): ask for permission or leave them to user 458 (Regular Supporter, 45 requests an hour); Workers Paid; CelesTrak retry;
469 program files; IMO/COBS/AAVSO exports. 459 pushes sent in slices of 200, recorded only once APNs answers; alerts
470- AR camera overlay: later. First measure draw time and pointing on a 460 pruned after 3 days, devices after 180.
471 device and add one-object alignment with a gyroscope heading.
472 461
473** v5: next version 462** v5: next version
463Platforms
474- visionOS: run the app (globes, orrery volume, immersive star field) on a 464- visionOS: run the app (globes, orrery volume, immersive star field) on a
475 visionOS simulator or a Vision Pro. It compiles but has never run. 465 visionOS simulator or a Vision Pro. It compiles but has never run.
476- Smart-telescope pointing (Seestar and similar). 466- Smart-telescope pointing (Seestar and similar).
467- AR camera overlay on the Sky tab. First measure draw time and pointing on
468 a device. Heading from the gyroscope with a one-object alignment, not the
469 compass; a pinhole projection matching the camera; refraction.
470- Widgets from the original plan: Kp and next launch on the Lock Screen,
471 Voyager distance and today's Sun image on the Home Screen. Widgets and
472 Control Center controls backed by the App Intents, with an App Group.
473- Siri on the Watch; phrase translations.
474
475Sky
476- Milky Way from ESA's "Gaia's sky in colour" (CC BY-SA), clipped before
477 projection. Gaia data itself is CC BY-NC and can't be used.
478- Comets from JPL SBDB, fetched daily by the Worker; needs a parabolic and
479 hyperbolic orbit solver. Then bright asteroids.
480- NGC objects and stars fainter than V 6.5, with a deeper zoom and eyepiece
481 field-of-view circles from the equipment inventory.
482- Horizon profile.
483
484System
485- Active missions on the orrery: Juno, Europa Clipper, JUICE, Psyche,
486 Parker Solar Probe, Lucy (JPL Horizons vectors).
487- Live coverage: add Artemis II and later missions to =server/src/live.ts=
488 (Horizons ID, window, phases) once their Horizons IDs are published.
489
490Sun
491- Solar wind from SOLAR-1 RTSW, reduced on the Worker; earlier aurora alerts
492 from Bz.
493- Active-region labels on the SDO image.
494- Sun path, golden and blue hour, day length.
495- CCOR-2 coronagraph loop, WSA-Enlil forecast line, solar cycle progress.
496
497Launches and Live Activities
498- Seeing the ascent from the ground: needs a trajectory model per rocket;
499 Flight Club data needs an agreement with its author.
500- Push-to-start for followed launches: needs per-device tokens and a change
501 to the privacy policy.
502- Geomagnetic storm and meteor shower peak Live Activities.
503- Opt-in notification for a visible ISS pass in 15 minutes.
504
505Eclipse, 2 August 2027
506- Watch haptics at second and third contact.
507- Drive to totality: nearest point with 95% of the centre-line duration,
508 handed to Apple Maps.
509- Cloud climatology along the path (NASA MODIS or ERA5).
510- Photographer cue mode: filter off and on cues, an exposure table.
511- Field test on the 6 February 2027 annular eclipse.
512
513Observing
514- Light pollution: Lorenz's atlas needs permission; otherwise a model from
515 NASA Black Marble (CC0).
516- Meteor radiant altitude (radiant coordinates for the major showers).
517- Astronomical League lists (Herschel 400, Double Star, Lunar, Binocular
518 Messier) and Lunar 100 (Charles Wood, Sky & Telescope), with permission;
519 user program files cover them meanwhile.
520- IMO, COBS and AAVSO exports; a program log PDF.
521
522Performance
523- Sun tab first open still has frames over 100 ms (SwiftUI and Charts
524 start-up).
525- RealityKit's first start (about 1.4 s) when switching to 3D; check on a
526 device.
527- Sun snapshot: compress the OVATION grid (156 KB to about 90 KB).
528
529Backend and design
530- App Attest verification on device registration.
531- Typeface: the design calls for Helvetica Neue; the app uses the system
532 font. Pick one.
477 533
478* before publishing 534* before publishing
479- App Store Connect: privacy policy URL https://krz.sh/privacy/moonrise/. 535- App Store Connect: privacy policy URL https://krz.sh/privacy/moonrise/.
480- App Store Connect privacy label: Location, Coarse Location, App 536- App Store Connect privacy label: Location, Coarse Location, App
481 Functionality, not linked, not used for tracking (WeatherKit). 537 Functionality, not linked, not used for tracking (WeatherKit).
482- WeatherKit: check a real forecast on a signed device build. 538- Ask The Space Devs about Launch Library 2 attribution terms.
483- Launch push: Broadcast capability for =sh.krz.moonrise=. The channel
484 trial passed on 2026-10-21 (sandbox and production returned 200 from a
485 Worker), so the Worker creates channels itself (=APNS_MANAGE_CHANNELS=).
486- Device checks: Siri phrases, Live Activity layouts (Lock Screen, Dynamic
487 Island, Watch, CarPlay, StandBy), sky draw time and pointing.
488 539
489* risks 540* risks
490- Library scope: 320 pages is most of the effort. Ship 1.0 with fewer 541- Library scope: 320 pages is most of the effort. Ship 1.0 with fewer