You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Roadmap question: editing/overwriting data points, and manual entries written by third-party apps
#1732
Hi, and thanks for Open Wearables. I'm self-hosting OW and hobby-building a small visualization frontend on top of its API (currently read-only). Before I design anything around what looks like a gap, I'd like to understand your intended direction.
What I found reading the code
There is no update route for time-series data points or event records. Only DELETE exists for workouts, sleep sessions and menstrual cycles.
Time-series writes upsert on (data_source_id, series_type_definition_id, recorded_at), so a later provider sync overwrites the stored value. Event records are inserted with ON CONFLICT DO NOTHING.
Archival aggregates old raw rows into daily buckets and deletes them, so a manual correction on a raw row would not survive either.
The SDK sync payload supports a manual recording method, and series types are a fixed enum (waist_circumference exists, hip circumference does not). #1588 mentions that re-pushing the same SDK data upserts via the unique constraint, which is what I would rely on for manual values.
My use cases
Manual measurements (weight, waist/hip circumference, ...) that belong in the same store as device data, so export and backup come from one place.
Correcting device data after the fact, e.g. swim stroke counts (similar to manual stroke correction in Tredict).
My Questions:
Are editable/overridable data points on your roadmap, ideally protected against re-sync and archival? If not, would you be open to a PR (e.g. a flag on the row that makes syncs skip it)?
Is the SDK sync path with recording_method: manual, under a dedicated source, an intended way for a third-party app to write single manual values? Or should that not be relied on?
Would extra series types or a user-defined type catalog be welcome, and in which form (enum + migration PR, or something more dynamic)?
Is a raw-data export planned, or is the recommended path the API / a Postgres dump?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi, and thanks for Open Wearables. I'm self-hosting OW and hobby-building a small visualization frontend on top of its API (currently read-only). Before I design anything around what looks like a gap, I'd like to understand your intended direction.
What I found reading the code
There is no update route for time-series data points or event records. Only DELETE exists for workouts, sleep sessions and menstrual cycles.
Time-series writes upsert on (data_source_id, series_type_definition_id, recorded_at), so a later provider sync overwrites the stored value. Event records are inserted with ON CONFLICT DO NOTHING.
Archival aggregates old raw rows into daily buckets and deletes them, so a manual correction on a raw row would not survive either.
The SDK sync payload supports a manual recording method, and series types are a fixed enum (waist_circumference exists, hip circumference does not).
#1588 mentions that re-pushing the same SDK data upserts via the unique constraint, which is what I would rely on for manual values.
My use cases
Manual measurements (weight, waist/hip circumference, ...) that belong in the same store as device data, so export and backup come from one place.
Correcting device data after the fact, e.g. swim stroke counts (similar to manual stroke correction in Tredict).
My Questions:
Thanks for your work!
All reactions