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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user