SPEEDBIRD

Mesh reporting (speedbird.io)#

SPEEDBIRD can send this station's mesh picture to speedbird.io at a fixed interval, so that it shows up on the shared network map together with every other reporting station. The same code runs on every edition: speedbird-vm (Linux VM / server), speedbird-win (Windows) and speedbird-pi (Raspberry Pi).

Reporting is off by default. Nothing is sent until you turn it on and give it a station token.

Getting started#

  1. Sign in at https://speedbird.io/account.html and create a station token for this installation.
  2. In SPEEDBIRD open Settings → Mesh reporting (speedbird.io).
  3. Paste the token, tick Reporting ON, then Save.
  4. Click Push now to send a report straight away and check the result line. Preview shows the exact JSON that would be sent (without the token).

What is sent#

Every interval_s seconds (default 300, minimum 60) one gzip-compressed JSON document is POSTed to https://speedbird.io/api/mesh/v1/report with Authorization: Bearer <token>:

Section Contents
station callsign, name, edition (vm/win/pi), SPEEDBIRD version, host name, grid, latitude/longitude/altitude and where the position came from, plus a per-installation uuid
radios id, name, model, frequency, mode, activity, connected, the SBP callsign running on it, LAN audio output
nodes every station heard within the last since_s seconds (default 24 h, up to 20 000), as on the Nodes page, including your edits (labels, notes, links, manual positions)
routes the route paths known for those stations
graph the Topology view (radio hubs, heard-by and route edges)
sbpmesh SBP mesh nodes, links and routes
meshtastic per Meshtastic device: device id, own node id, node count
gateways the Meshtastic ↔ HF gateway rules
capabilities remote control: {remote_enabled, allow_tx, commands:[accepted command names]}
status compact live status for your dashboard: radios[{id,freq_hz,mode,activity,ptt,connected,lan_output}], sbp_links[{radio,mycall,state,peer}], decoders[{radio,id,decoders,alive}], autoanswer[…], kiss[…], tnc[…], uptime_s (shown only to you, not on the public map)

Privacy: the report publishes the positions of stations you have heard (from their beacons, grid squares, Meshtastic position packets or positions you entered by hand), and your own position. speedbird.io rounds Meshtastic node positions on the public map. Untick This station's position and/or Heard stations to leave them out; each section can be switched off separately under Include.

The token is stored in <state_dir>/meshreport.json (file mode 0600), is never written to the log and is only ever shown masked (… plus its last four characters).

Station UUID#

On first start SPEEDBIRD generates a random UUID for this installation and stores it as station_uuid in <state_dir>/meshreport.json. It is sent as station.uuid in every report so speedbird.io can tell installations apart even when they share a callsign. It never changes on its own and cannot be edited; the Regenerate… button makes a new one (speedbird.io then sees a new station).

Settings#

Setting Default Meaning
enabled false send reports in the background
url https://speedbird.io/api/mesh/v1/report must be https:// (plain http:// only to 127.0.0.1/localhost, for testing)
token empty station token from speedbird.io
interval_s 300 seconds between reports (minimum 60)
flavor auto edition: auto detects Windows → win, a Raspberry Pi device-tree model → pi, otherwise vm
name empty display name on the map (defaults to the callsign)
since_s 86400 only stations heard within this many seconds
include all true nodes, routes, graph, sbpmesh, radios, location, meshtastic, gateways, status

Server replies#

Reply What SPEEDBIRD does
200 {"ok": true} records the time and size of the last success
401 / 403 shows "station token rejected": check or recreate the token
413 report too big: reduce "Stations heard within" or untick sections
429 too soon: waits for Retry-After (or backs off exponentially) before sending again

A failed report never affects the rest of SPEEDBIRD; the error is shown on the Settings card.

REST API#

Remote control#

Settings → Remote control (speedbird.io) lets the station's owner send commands from the speedbird.io account dashboard (Stations → Control). It is off by default.

How it works: SPEEDBIRD long-polls GET <server>/api/mesh/v1/commands?wait=25 with the same station token (the server base comes from the report URL), so nothing listens on this station. Each command is checked against the local settings, run through SPEEDBIRD's own internals (the same calls as the REST endpoints), and its outcome is posted to …/commands/{id}/result as {ok, result, error?}. Each poll also sends the current capabilities in an X-SB-Capabilities header.

Setting (<state_dir>/remotectl.json, mode 0600) Default Meaning
remote_enabled false poll for commands at all
allow_tx false allow commands that can transmit
allowed every non-transmitting command the commands this station accepts
Command TX Internal call
status live status + capabilities
push_report MeshReporter.push_now()
radio.tune {radio, freq_hz, mode?} radios.get(radio).tune(freq, mode)
radio.monitor {radio, decoders: [..] \| "all" \| false} radio.set_monitor(...)
radio.lan_output {radio, output: af\|if} radios.update(radio, {lan_output[, audio_rate: 48000]})
sbp.start {radio, mycall?, freq_hz?, profile?} yes sbp.start_link(...)
sbp.stop {radio} sbp.stop_link(radio)
sbp.send {radio, to, text} yes sbp.send(...)
sbp.ping {radio, to} / sbp.trace {radio, to} yes sbp.ping(...) / sbp.trace(...)
beacon.send {radio, mode?} yes beacon.send_test(radio, mode)
autoanswer.attended {radio, attended} yes sets attended on that radio's auto-answer (until restart)
meshtastic.send {text, to?, channel?} yes mesh.get().send_text(...)

Enforced on the station whatever the server says: commands not in allowed are refused, transmitting commands are refused unless allow_tx is on, commands that expired before they arrived are not run, and each command has a timeout (30 s; 45-60 s for slow ones). Every command is written to <state_dir>/remotectl.log.jsonl (rotated at about 1 MB to .1), and the latest entries are shown on the card. Errors back off (up to 5 minutes; 5 minutes after a rejected token) and never affect the rest of SPEEDBIRD.

Allowing transmit commands makes this a remotely controlled station. You remain the control operator and are responsible for every transmission (FCC Part 97, §97.109(c)). Keep a way to reach the station, and turn remote control off (or stop SPEEDBIRD) if you lose your control link.

REST: GET /api/remotectl (settings, capabilities, status, recent audit, built-in catalog), PUT /api/remotectl (partial update), GET /api/remotectl/catalog (the server catalog merged with what this version supports; falls back to the built-in list).