Skip to content

Mvp#35

Open
theredfish wants to merge 26 commits into
mainfrom
mvp
Open

Mvp#35
theredfish wants to merge 26 commits into
mainfrom
mvp

Conversation

@theredfish

Copy link
Copy Markdown
Owner

No description provided.

theredfish and others added 25 commits May 30, 2026 03:47
Add a generic sensor measurement event emitted by the sensor service after valid readings.

Keep the Knot path unchanged: sensor events still pass through the EventBus and are wrapped with the local Knot source before Hub ingestion.
Add the Hub infrastructure store, SQLx records, and pg_partman-backed measurement table for time-series ingestion.

Persist local Knot measurement events from the Hub runtime while keeping the in-memory projection path intact.
Replace the temporary random temperature data with periodic reads from the Hub measurement time-series path.

Keep the dashboard components static for now: the gauge refreshes on a short interval and the line chart reads a ten-minute window.
Read the latest measurement directly for the gauge instead of taking the oldest point from the chart window.

Keep the line chart focused on recent points and format the x-axis with readable local times.
Read and set the Atlas Name field before starting sensor polling so measurements carry an ArkSync device UID.

Emit provisioning and conflict events through the existing EventBus path; DB resolution by sensor_id is left for the next commit.
Add a DeviceUid value object backed by a boot-initialized RNG, wire the local knot runtime to initialize it from OS entropy, and make the local knot event source explicit at the hub composition boundary. Document the future certificate-backed identity provisioning flow.
Configure the hub as a std runtime crate, add local station setup with hub/knot stores, rename hub and knot runtime components, wire setup through Tauri and the CLI reset flow, and add Prisma Studio as a docker-compose tooling service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant