Replace Apple Health ingest with iPhone location geofences

POST /api/v1/location/{arrive,leave} records place intervals (home or a
named place, and away in between) from Shortcuts automations. A stale
"leave" for a place the device has already left is ignored. The Health
Auto Export endpoint and its normalizer are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 22:06:25 +01:00
co-authored by Claude Opus 5.5
parent 230840cabd
commit 67638cdef0
10 changed files with 269 additions and 238 deletions
+1 -11
View File
@@ -1,5 +1,5 @@
// Package ingest defines the wire format collectors upload and normalises it
// into activities and samples ready for storage.
// into activities ready for storage.
package ingest
import (
@@ -42,16 +42,6 @@ type Activity struct {
ExternalID string
}
// Sample is a normalised point-in-time metric ready to be stored.
type Sample struct {
Source string
Metric string
TS time.Time
Value float64
Unit string
ExternalID string
}
// Spec describes which kinds an endpoint accepts and the source its
// activities are stored under.
type Spec struct {