Align pi-log with Beamwarden ingest contract#10
Merged
gaspode-wonder merged 2 commits intodevelopfrom Apr 5, 2026
Merged
Conversation
…nt role - Fix PushClient._push_single() to send Beamwarden envelope: beamrider_serial / sensor_name / recorded_at / payload - Add --config <toml> support to geiger_reader.py matching the Quasar beamrider-agent service template; add --device-name / --device-token CLI args and wire them into PushClient - Add device section to Settings (name, token) - Rename GeigerRecord.to_logexp_payload() -> to_ingest_payload() with correct Beamwarden shape - Remove debug print() statements from config_loader.py - Delete orphaned logexp_client.py - Fix geiger_record fixture: add id=None and timestamp defaults Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PiLogIngestView (POST /api/readings) expects sensor_type + payload + timestamp — device identity comes from the bearer token alone, no beamrider_serial or sensor_name in the body. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
PushClient._push_single()payload to matchPiLogIngestViewcontract:sensor_type+payload+timestampatPOST /api/readings— device identity via bearer token only, nobeamrider_serialin body--config <toml>support togeiger_reader.pymatching the Quasar beamrider-agent service template; add--device-name/--device-tokenCLI args wired through toPushClient[device]section toSettingsGeigerRecord.to_logexp_payload()→to_ingest_payload()with correct Beamwarden shapeprint()statements fromconfig_loader.pylogexp_client.pygeiger_recordfixture: addid=NoneandtimestampdefaultsTest plan
curl POST /api/readings→ HTTP 201, reading ID 1 in Beamwarden DB on keep-0001🤖 Generated with Claude Code