feat(datastore): support --since in stop command, trigger website update from render_views, update docs
This commit is contained in:
@@ -60,7 +60,9 @@ Closes the currently active open interval event (e.g. when Mila wakes up).
|
||||
- **Parameters:**
|
||||
- `kind` (string, required): `'sleep.session'`.
|
||||
- `subject` (string, required): `'mila'`.
|
||||
- `end_time` (string, optional): ISO timestamp (defaults to current time).
|
||||
- `end_time` (string, optional): ISO timestamp (e.g. `'2026-10-11T11:40:00+02:00'`). Defaults to current time if omitted.
|
||||
- `since` (string, optional): Relative wake time offset backwards from now (e.g. `'10m'`, `'15m'`).
|
||||
- `event_id` (string, optional): Specific open event ID to close.
|
||||
|
||||
### 3. `datastore_get_summary`
|
||||
Retrieves daily nutrition, sleep, and active status totals computed by DuckDB.
|
||||
@@ -113,10 +115,20 @@ uv run /home/node/mop-skills/mop-skills/skills/datastore/scripts/datastore.py ad
|
||||
--since "15m" \
|
||||
--payload '{"type": "nap", "location": "bett"}'
|
||||
|
||||
# Stop Mila's nap (closes open interval)
|
||||
# Stop Mila's nap (closes open interval at current time)
|
||||
uv run /home/node/mop-skills/mop-skills/skills/datastore/scripts/datastore.py stop sleep.session \
|
||||
--subject mila
|
||||
|
||||
# Stop Mila's nap retroactively with specific wake time
|
||||
uv run /home/node/mop-skills/mop-skills/skills/datastore/scripts/datastore.py stop sleep.session \
|
||||
--subject mila \
|
||||
--end "2026-10-11T11:40:00+02:00"
|
||||
|
||||
# Stop Mila's nap retroactively with relative wake time (e.g. woke up 15 min ago)
|
||||
uv run /home/node/mop-skills/mop-skills/skills/datastore/scripts/datastore.py stop sleep.session \
|
||||
--subject mila \
|
||||
--since "15m"
|
||||
|
||||
# Query daily summary
|
||||
uv run /home/node/mop-skills/mop-skills/skills/datastore/scripts/datastore.py summary --subject moritz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user