Working version with new streaming and DB
This commit is contained in:
parent
c20d54d037
commit
c418221575
8 changed files with 302 additions and 37 deletions
|
|
@ -26,12 +26,14 @@ async def main() -> None:
|
|||
kills_per_hour="kph_str",
|
||||
onlinetime=str(timedelta(seconds=online_time)),
|
||||
deaths=0,
|
||||
rares_found=0,
|
||||
# rares_found removed from telemetry payload; tracked via rare events
|
||||
prismatic_taper_count=0,
|
||||
vt_state="test state",
|
||||
)
|
||||
# wrap in envelope with message type
|
||||
# Serialize telemetry snapshot without telemetry.kind 'rares_found'
|
||||
payload = snapshot.model_dump()
|
||||
payload.pop("rares_found", None)
|
||||
payload["type"] = "telemetry"
|
||||
await websocket.send(json.dumps(payload, default=str))
|
||||
print(f"Sent snapshot: EW={ew:.2f}, NS={ns:.2f}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue