← All guides

For dashboard authors

Beacon linked systems: the status format

Every system linked to a Beacon room publishes the same status file, event log and local commands, so one dashboard works for an AllStar node, a hotspot, a repeater or a reflector. This page is the whole format. It is schema 1.

Two programs, one format

ProgramRuns on
beacon-linkAn AllStar node, a DVSwitch server, or a Pi with a USB radio interface. Needs version 1.1.0 or newer.
beacon-hotspotA hotspot (Pi-Star, WPSD), an MMDVM repeater, or the server of a YSF, DMR, M17, P25, NXDN or D-STAR reflector. Needs version 1.2.0 or newer.

Everything below uses beacon-link in paths and commands. For the other program, put beacon-hotspot in the same place. beacon-link version prints the version.

Where things are

PathWhat it is
/run/beacon-link/status.jsonThe state right now. Readable by everyone on the machine. Replaced whole on every change (at most 10 times a second) and at least once a second, so a reader never sees half a file.
/var/log/beacon-link/events.jsonlOne JSON line per thing that happened. Kept up to 5 MB, plus one older file (events.jsonl.1).
/run/beacon-link/control.sockThe command socket. Root only, unless the owner names a dashboard group (below).

Rules a dashboard can rely on

  • Times are UTC, RFC 3339. Levels are dBFS. Gains are dB.
  • Unknown is null, never zero and never a guess. An AllStar node does not say who keyed, so talker is null for audio coming from the link.
  • heartbeat moves at least once a second while the program runs. Older than 5 seconds means it has stopped. On a clean stop the last file says "running": false.
  • The link key is never in the file, the log or any answer.
  • New fields may be added in schema 1. Ignore fields you do not know. A change that breaks readers gets a new schema number.
  • direction is always one of link_to_beacon (the radio side talking into the room) or beacon_to_link (the room going out over the radio side).

status.json

{
  "schema": 1,
  "heartbeat": "2026-12-02T03:00:14Z",
  "runtime": { "name": "beacon-link", "version": "1.1.2", "running": true, "pid": 6153,
               "started_at": "2026-12-02T02:58:01Z" },
  "bridge": {
    "name": "AllStar 12345", "kind": "allstar", "target": "12345",
    "room": { "id": "r-test0001", "name": "Test room" },
    "connected": true, "held": false, "paused": false,
    "connected_at": "2026-12-02T03:00:00Z", "uptime_seconds": 14,
    "last_connected_at": "2026-12-02T03:00:00Z", "last_disconnect": null,
    "reconnect": { "automatic": true, "attempts": 0, "next_try_at": null }
  },
  "participants": {
    "total": 1, "users": 1, "bridges": 0,
    "authoritative": true, "checked_at": "2026-12-02T03:00:01Z",
    "list": [
      { "id": "N0CALL", "participant_id": "PA_ham", "callsign": "N0CALL", "name": "Pat",
        "type": "user", "can_transmit": true, "this_bridge": false,
        "joined_at": "2026-12-02T03:00:10Z", "first_seen_at": "2026-12-02T03:00:10Z",
        "connected_seconds": 4 }
    ]
  },
  "transmission": {
    "active": true, "direction": "link_to_beacon", "talker": null, "participant_id": null,
    "current": { "direction": "link_to_beacon", "talker": null, "participant_id": null,
                 "started_at": "2026-12-02T03:00:14Z", "ended_at": null,
                 "duration_seconds": null, "end_reason": null },
    "last":    { "direction": "beacon_to_link", "talker": "N0CALL", "participant_id": "PA_ham",
                 "started_at": "2026-12-02T03:00:10Z", "ended_at": "2026-12-02T03:00:14Z",
                 "duration_seconds": 4, "end_reason": null }
  },
  "audio": {
    "limit_dbfs": -3,
    "in":  { "direction": "link_to_beacon", "level_dbfs": -14, "peak_dbfs": -9, "gain_db": 0 },
    "out": { "direction": "beacon_to_link", "level_dbfs": null, "peak_dbfs": null, "gain_db": 0 }
  },
  "counters": {
    "since": "2026-12-02T02:58:01Z", "connections": 1, "outages": 0, "participants_seen": 1,
    "in":  { "keyups": 1, "talk_seconds": 0 },
    "out": { "keyups": 1, "talk_seconds": 4 }
  },
  "talkers": [
    { "talker": "N0CALL", "direction": "beacon_to_link", "keyups": 1, "talk_seconds": 4,
      "last_at": "2026-12-02T03:00:14Z" }
  ],
  "history": [
    { "connected_at": "2026-12-02T03:00:00Z", "disconnected_at": null, "reason": null }
  ],
  "moderation": { "available": false, "how": "beacon-link ctl kick|ban|unban|bans" }
}
FieldMeaning
bridge.kindallstar, dvswitch, radio, hotspot, repeater or reflector.
bridge.heldThe owner disconnected it with the disconnect command. It stays out of the room until connect.
bridge.pausedConnected, but audio is not being carried in either direction.
bridge.last_disconnect{ at, reason } for the last time it left the room, or null.
bridge.reconnectWhether it reconnects by itself, how many tries since the last connection, and when the next try is.
participants.authoritativetrue when the list came from the voice server's own roster (asked at connect and once a minute, at checked_at). false means it is only what this program has seen join and leave.
participants.list[].typeuser, bridge (another linked system) or infrastructure. Silent listeners are listed too, with can_transmit false.
participants.list[].this_bridgetrue for this system's own entry. It is not counted in total, users or bridges.
transmission.activeSomeone is talking through this link right now. current has the over in progress; last has the one before.
audio.*.level_dbfs / peak_dbfsLevel now and recent peak in that direction; null when nothing is being carried.
audio.limit_dbfsThe ceiling audio is limited to.
countersSince the time in since (program start or the last reset-counters).
talkersPer talker and direction: overs, seconds and last time, newest first.
historyThe last 50 connections to the room with the reason each one ended.
moderation.availabletrue when the room's owner or an admin has let this link moderate; false when not; null when not known yet.

events.jsonl

Every line has schema, t (when) and type. Follow the file the way tail -F does, so the switch to a new file is picked up.

{"schema":1,"t":"2026-12-02T03:00:00Z","type":"bridge_connected","target":"12345"}
{"schema":1,"t":"2026-12-02T03:00:10Z","type":"participant_joined","id":"N0CALL","participant_id":"PA_ham","callsign":"N0CALL","name":"Pat","participant_type":"user","can_transmit":true,"joined_at":"2026-12-02T03:00:10Z"}
{"schema":1,"t":"2026-12-02T03:00:10Z","type":"keydown","direction":"beacon_to_link","talker":"N0CALL","participant_id":"PA_ham"}
{"schema":1,"t":"2026-12-02T03:00:14Z","type":"keyup","direction":"beacon_to_link","talker":"N0CALL","participant_id":"PA_ham","started_at":"2026-12-02T03:00:10Z","duration_seconds":4,"reason":null}
typeOther fields
bridge_connectedtarget
bridge_disconnectedreason
bridge_connect_failedreason, attempt
participant_joinedid, participant_id, callsign, name, participant_type, can_transmit, joined_at; source "roster" when it was learned from the voice server's list
participant_leftid, participant_id, callsign, participant_type, connected_seconds; reason "bridge_disconnected" when this link left the room
keydowndirection, talker, participant_id
keyupdirection, talker, participant_id, started_at, duration_seconds, reason
gain_changeddirection, gain_db
bridge_pause_asked, bridge_resume_asked, bridge_disconnect_asked, bridge_connect_askednone
counters_resetnone
admin_kick, admin_ban, admin_unbancallsign, ok
runtime_stoppednone

Commands

From a shell: beacon-link ctl <command>. It prints one line of JSON and exits 0 when ok is true. beacon-link status prints the status file.

From a program: connect to the socket, send one line of JSON, read one line back. A refusal is {"ok":false,"error":"<code>","message":"<plain words>"}.

{"cmd":"status"}
{"cmd":"gain","dir":"in","db":-6}
{"cmd":"pause"}
{"cmd":"ban","callsign":"N0CALL","reason":"jamming"}
CommandWhat it does
statusThe same object as status.json, in "status".
gain in|out <dB>Sets the gain for one direction, from -40 to 20 dB. Kept across restarts.
pause / resumeStops and starts carrying audio while staying in the room.
disconnect / connectLeaves the room and stays out, or comes back. Kept across restarts.
reset-countersZeroes the counters and the talker table.
kick <call>Removes someone from the room.
ban <call> [reason] / unban <call>Bans from the room, and undoes it.
bansLists the room's bans.

Error codes: bad_request, unknown_command, not_connected, not_allowed, unavailable, not_running.

kick, ban, unban and bans only work on a link the room's owner or an admin has switched on under the room, Linked systems, "This link may moderate the room". Otherwise the answer is not_allowed. A personal hotspot never moderates.

Letting a web dashboard send commands

The socket is root only. To let a dashboard that runs as another user send commands, the owner adds one line with the group it runs as to /etc/beacon-link.conf and restarts the service:

dashboard-group=www-data

sudo systemctl restart beacon-link

Read-only web feed (off unless set)

For a dashboard that would rather ask over HTTP than read a file, the owner adds an address to the same file and restarts:

status-http=127.0.0.1:8075
RequestAnswer
GET /status.jsonThe status as it is now.
GET /events?n=200The newest n event lines (200 if not given, at most 1000), oldest first, as a JSON array.

The feed only reads. Any other method is answered 405 with read_only, and no command can be reached through it. It has no sign-in, so keep it on 127.0.0.1 or behind your own web server unless you mean the status to be public. It sends Access-Control-Allow-Origin: * so a page in a browser can read it.

Installing from a control panel

A control panel may install and update Beacon links for its users. It runs our install line with the user's own key and adds -panel with its short name (letters, digits, dot, dash or underscore, up to 32), so we can tell which links came from which panel:

curl -fsSL https://tiles.qso1.net/beacon-link/install.sh | sudo sh -s -- QL1-the-users-key -panel yourpanel

# DVSwitch or radio installs: the name goes after their own word and settings
curl -fsSL https://tiles.qso1.net/beacon-link/install.sh | sudo sh -s -- QL1-the-users-key dvswitch -panel yourpanel

The name is saved in /etc/beacon-link.conf as panel=, so an update that runs the same line again (or the line without -panel) keeps it. Setting BEACON_PANEL for the installer works too. It needs beacon-link 1.1.8 or newer. Please:

  • Download from us at install time with the line above. Do not ship, change or rebuild the program.
  • Let the user paste their own key and pass it straight to the installer. Do not keep it in your panel's database, logs or pages.
  • Offer updates by running the same line again: it updates in place.
  • Keep the command socket and the read-only feed on the node itself, and put any kick, ban or gain button behind your panel's own sign-in.

Questions

If a field you need is missing, tell us at [email protected].