Mvp#35
Open
theredfish wants to merge 26 commits into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.