Skip to content

v1.0.14

Choose a tag to compare

@fduflyer fduflyer released this 17 Apr 20:01
· 72 commits to main since this release
a4f7f4e

Add tmpfs ring buffer + UDP LAN developer stream

Both feeders now write decoded detections locally and broadcast them over UDP for real-time LAN consumers (e.g. camera trackers, home automation).

New features:

  • /run/droneaware/detections.jsonl — 3600-line rolling ring buffer in RAM (/run is already tmpfs on Pi OS). Zero SD card wear, gone on reboot. Each line is a compact JSON record: timestamp, MAC, radio, RSSI, message type, lat/lon/alt/speed/heading/UAS-ID.
  • UDP broadcast to 255.255.255.255:9999 — same JSON record sent on every detection. Any device on the local network can listen without touching the DroneAware server.
  • BLE feeder now decodes ODID locally (previously server-only). Message Pack sub-messages are fanned out individually, matching wifi_feeder behaviour.

Unchanged: HTTP POST pipeline to DroneAware server is completely unmodified.

To listen on the LAN:

nc -luk 9999

Or in Python:

import socket, json
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('', 9999))
while True:
    print(json.loads(s.recv(4096)))