Skip to content

Align pi-log with Beamwarden ingest contract#10

Merged
gaspode-wonder merged 2 commits intodevelopfrom
feature/realignment
Apr 5, 2026
Merged

Align pi-log with Beamwarden ingest contract#10
gaspode-wonder merged 2 commits intodevelopfrom
feature/realignment

Conversation

@gaspode-wonder
Copy link
Copy Markdown
Collaborator

Summary

  • Fix PushClient._push_single() payload to match PiLogIngestView contract: sensor_type + payload + timestamp at POST /api/readings — device identity via bearer token only, no beamrider_serial in body
  • Add --config <toml> support to geiger_reader.py matching the Quasar beamrider-agent service template; add --device-name / --device-token CLI args wired through to PushClient
  • Add [device] section to Settings
  • 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

Test plan

  • 30/30 tests passing
  • End-to-end verified: curl POST /api/readings → HTTP 201, reading ID 1 in Beamwarden DB on keep-0001

🤖 Generated with Claude Code

gaspode-wonder and others added 2 commits March 7, 2026 16:51
…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>
@gaspode-wonder gaspode-wonder merged commit ea8288b into develop Apr 5, 2026
1 check passed
@gaspode-wonder gaspode-wonder deleted the feature/realignment branch April 5, 2026 21:42
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