Web API Reference¶
The Tab5 runs an HTTP server that exposes a REST API for remote control and diagnostics. All endpoints are on port 80.
Base URL¶
http://<tab5-ip-address>/api/
Example: http://192.168.1.50/api/status
Status Endpoints¶
GET /api/status¶
Returns the current state of the panadapter.
Response (JSON):
{
"battery": { "level": 85, "mv": 8000, "charging": false },
"wifi": { "ssid": "MyNet", "rssi": -65, "ip": "192.168.1.50" },
"freq_hz": 14074000,
"qmx_fw": "1_03_002",
"mode": "DIGI",
"band": "20m",
"screen": "ft8",
"ft8": { "st": "armed", "text": "TX armed: CQ OZ1LAV JO65 - call 2 of 4 (~7s)" },
"passband_hz": 2700,
"signal_dbm": -83.5,
"zoom": 1.0,
"pan_bins": 0,
"cw_pitch_hz": 700,
"if_cal_hz": 0,
"flat_mode": false,
"utc_epoch": 1785340050,
"qso_count": 42,
"qrz_key_set": true,
"eqsl_creds_set": false,
"lotw_ready": true,
"bandplan": { "lo": 14000000, "hi": 14350000, "segs": [ { "lo": 14000000, "hi": 14070000, "c": "20B0FF", "l": "CW" } ] },
"bt": { "en": true, "conn": false },
"tab5_fw": "v1.7.2",
"bands": [ { "name": "20", "center_hz": 14100000 } ]
}
Notes:
screenis"panadapter","cw","rtty","ft8"or"wspr". FT4 and JS8 report"ft8".cw_txis present only while the Tab5 is on the CW page. It holdsmacros(the six of the active set),set_b(true = the Contest set),last_sent,contest_name,queued(characters not yet handed to the radio),keying(the radio's own count of characters left, 0-9, where 9 means 9 or more and -1 means unknown),target(the station being worked),heard(the last callsign decoded),heard_age_s(-1 when nothing was decoded) andrst_rcvd.tune_out{seq, msg}is the result of acw_tunethat answeredlistening. It is absent until the first result.seqgoes up by one with each result andmsgis the text the Tab5 shows.ft8is present only while the FT8/FT4 screen is live — the engine does not run otherwise, so its text would be stale.stis one ofactive/armed/done/timeout/wait/idle, andtextis the same line the Tab5 shows on its own TX status label. This is what drives the browser's TX banner and the red dot in the tab title.btis the Bluetooth mouse:enis whether it is switched on,connwhether a mouse is connected right now.en: true, conn: falsemeans it is scanning or waiting for a paired mouse to come back.signal_dbmandbandplanarenullwhen unavailable (no spectrum yet; VFO outside a known band).passband_hzfalls back to a per-mode default until CAT reports a real width.
Control Endpoints¶
POST /api/cmd¶
Send a command to the panadapter. The command name is the action key; each
action names its own parameter key (there is no generic value).
Request (JSON):
{
"action": "set_freq",
"hz": 14074000
}
Supported actions:
| Action | Parameter | Effect |
|---|---|---|
set_freq |
hz |
Set VFO frequency |
set_band |
hz (band centre) |
Switch band — recalls the frequency last used on it |
set_mode |
mode: "USB"/"LSB"/"CW"/"DIGI"/"AM" |
Change mode (AM needs QMX firmware 1.04+) |
set_bw |
hz |
Filter width — SSB at 1000 Hz and above, CW passband below |
set_zoom |
zoom: 1.0/2.0/4.0/8.0 |
Zoom level |
set_rit |
hz |
RIT offset. Retuning clears it |
cw_tune |
(none) | Put the dial on the signal. In CW/CW-R it zero-beats the nearest carrier, searching the last 4 seconds of spectrum rather than the current frame, because a keyed carrier is absent as often as it is present. In USB/LSB it runs the SSB estimator instead (a 4 s vote on the far station’s filter edge, then a snap to the grid) — the device dispatches on mode, the caller does not choose. Answers {"ok":true,"mode":"cw"|"ssb","moved_hz":N}, or "listening":true while a window is still open (8 s for CW, 4 s for SSB) - the result then arrives in /api/status as tune_out (v1.26.0) - or {"ok":false,"error":...}. One press, one move — nothing keeps correcting afterwards. Receive only |
rit_park |
(none) | Stand an engaged RIT offset down without losing it, or put the parked one back. Answers {"ok":true,"parked":true,"hz":N} or {"ok":true,"restored":true,"hz":N}, and {"ok":false,...} when there is neither. The same parked value the Tab5’s RIT long-press uses |
out_power |
watts_x100 (optional) |
Transmit power on the current band. With no argument it reports the calibrated ladder: band, calibrated, the watts_x100 levels, the current target_x100, and whether the PA is busy or held by WSPR. With watts_x100 it sets that level — it must be on the ladder, because the levels are what Calibrate Power actually measured; anything else is refused by name rather than rounded. If the PA is busy the target is stored and the reply carries "deferred":true |
set_screen |
screen: "pan"/"panadapter"/"cw"/"rtty"/"ft8"/"ft4"/"js8"/"wspr" |
Switch the Tab5's own view. Applied within about a second (handed to the display task). ft4 and js8 open the FT8 page and select that sub-mode, so one call is enough to put the device into FT4. An unknown name is refused with HTTP 400, not treated as panadapter. "cw" is refused with HTTP 403 while the CW page is switched off |
set_ft8_mode |
mode: "ft8"/"ft4", optional freq_hz |
Switch between FT8 and FT4, optionally retuning. Omit freq_hz to keep the current frequency. This is an action rather than a setting because it also retunes the radio and clears stale decodes — read ft8_op_mode back from /api/settings to confirm |
set_activation |
ref |
Set the POTA/SOTA activation reference |
cw_adopt |
call |
Set the station the CW page is working - the callsign {CALL} sends in a macro. The web equivalent of typing it on the Tab5's station card, for when the signal is too weak to decode. An empty call clears it. Letters, digits and / only, 15 at most; anything else is refused with HTTP 400. Answers {"ok":true,"target":"..."}. The current station, the last decoded callsign and the report copied from the station are in /api/status under cw_tx (target, heard, heard_age_s, rst_rcvd) |
cw_send |
text |
Send CW. A macro with its fields still in it, or free text. The text is added to a queue (256 characters), so a second call while the radio keys is sent after the first. Keys the radio, and passes the band guard at that moment. Acted on only while the Tab5 is on the CW page. HTTP 400 with no text, HTTP 409 {"ok":false,"err":"CW queue full"} when the queue is full (queue from v1.26.0) |
rtty |
any of baud, shift, reverse, afc, squelch, auto, offset_hz, tune_hz, mark_hz, clear, call; rx_cur/tx_cur |
RTTY page. Changes the given settings and returns the decoder status, the last 512 decoded characters (text), the station being worked (call, shared with the Tab5) and the send state (tx: keyed, seconds, echo, error). With rx_cur/tx_cur (the counts from the previous reply) it also returns what was received (rx_new) and sent (tx_new) since. A fixed baud or shift turns Auto off. Receive only |
rtty_send |
text and end (default true), or macro: "cq"/"answer"/"exch"/"73" |
Send RTTY. Keys the radio when idle; adds to the over that runs otherwise. Switches the radio to DiGi if needed and passes the band guard right before key-down. {"ok":false,"error":...} says why it refused (no callsign, page not open, WSPR running, band guard, ...). The over ends 3 s after the queue empties with end, or at 180 s |
rtty_stop |
(none) | Tone off and back to receive at once; the queue is dropped |
rtty_log |
call, rst_sent, rst_rcvd, stx, srx |
Log an RTTY QSO: mode RTTY, the dial frequency and the time from the device; stx/srx and CONTEST_ID only in contest mode. Clears the station. {"ok":false,"error":...} when not logged (no CAT, log full) |
rtty_contest |
any of on, name, next (1-9999), exch |
RTTY contest mode: on/off, contest name (CONTEST_ID), next serial, fixed sent exchange ("" = the serial) |
rtty_word |
word |
Which RTTY log field a word belongs in: {"kind":"rst"\|"call"\|"exch"\|"none","value":...} - letter-shift forms read as digits |
cw_cancel |
(none) | Drop the CW text that the radio has not been given yet. Answers {"ok":true,"dropped":N}. It cannot stop what the radio already holds (80 characters at most) (v1.26.0) |
cw_macro_edit |
idx (0-5), text |
Write one of the six macros of the active set |
log_qso |
call, optional rst_sent, rst_rcvd, name, qth, comment |
Log a CW or SSB contact worked by hand, as the Tab5's own Log window does. name, qth and comment are what the other operator told you (ADIF NAME, QTH, COMMENT; 24, 24 and 60 bytes, longer text is cut). Nothing else is accepted: the frequency, mode, band, date, time, your callsign, your grid and the running activation are read from the device, so a page holding a stale frequency cannot write a record on the wrong band. An empty report logs no report rather than a wrong one. Refused with HTTP 400 and a reason when the callsign is empty or there is no CAT. Answers {"ok":true,"call":"...","act_qsos":N,"act_need":N,"total":N}, so the count needs no second request |
cq_start |
(none) | Start a CQ run, as the Tab5's own Call CQ button does. Keys the radio. Only acted on while the Tab5 is in FT8/FT4 mode; otherwise discarded, not queued |
reply |
call |
Work a decoded station — the same intelligent Transmit a Tab5 row-tap runs. Keys the radio. Outcome in /api/status ft8.web_r |
qso_override |
what: "resend"/"rr73"/"73"/"cancel"/"pause"/"skip" |
Mid-QSO override, as the Tab5's own buttons do. pause skips one transmission; skip gives up on this caller and keeps answering others. Keys the radio except for cancel, pause and skip |
clear_swr |
(none) | Clear a latched SWR-protection trip, same as tapping the Tab5's own fault prompt. TX stays refused until this is called |
tune_start / tune_stop |
(none) | Antenna Tune (QMX 1.04+ only). Keys the radio continuously; 60 s safety stop on the device. While running, /api/status carries a tune object with watts, swr and secs (seconds left before the safety stop); the object is absent when no tune is running |
pause / resume |
(none) | Release the radio so its own menus can be used, and take it back. While paused the CAT poll, the dead-stream watchdog and the stuck-decode watchdog all stand down |
greylist_clear |
(none) | Un-skip every grey-listed station |
ota_install |
url |
Download and install firmware. Refused while transmitting or mid-QSO, with the reason in the reply body. Does not restart on its own |
ota_reboot |
(none) | Restart into firmware already installed |
usb_shutdown |
(none) | Orderly USB teardown before a reflash: radio to RX, CAT and audio closed, VBUS dropped |
usb_replug |
(none) | Power-cycle the USB port to recover a wedged device |
power_off |
(none) | Power the Tab5 down |
reset_settings |
(none) | Clear stored settings back to defaults |
reset_network |
(none) | Clear the stored WiFi/network state |
Radio menus (the QMX's own terminal, on its second serial port):
term_view, qmx_ports and qmx_term_probe are /api/cmd actions. open,
close, key and text are actions of POST /api/term, not of
/api/cmd. See Radio menus and GET /api/term.
Developer actions. No button on the web page sends these (the page sends resmon on Ctrl+Alt+R), and they are easy to regret:
| Action | Effect |
|---|---|
cat_raw |
Send one raw CAT string to the radio |
drawer |
Open the settings drawer, optionally at scroll_y, so a section below the fold can be screenshotted |
resmon |
Toggle the resource-monitor overlay |
time_redetect |
Re-arm the once-per-boot QMX GPS detection without rebooting |
help |
Open the on-device manual at a topic |
panic_test |
Crash the device deliberately, to prove the crash recorder works. ⚠ Radio off only — a panic reboot is a warm reset, which leaves the QMX needing a power cycle |
⚠ Check the response BODY as well as the status code. The reply is
{"ok":true} on success. An unrecognised action is refused with HTTP 400
and the text unknown action. A refused action (for example ota_install
while transmitting) can still answer HTTP 200 with
{"ok":false,"error":"..."}, so a caller that only tests the status code
cannot tell success from a refusal. A few CW and JS8 actions name the reason
err instead of error.
The request body can be 1024 bytes at most (v1.26.0; it was cut at 255
before, without an error). A longer body is refused with HTTP 413. An empty
body is HTTP 400 no body, and invalid JSON is HTTP 400 bad json.
display.peak_hold_s is the spectrum peak-hold window in seconds, 0 = off,
maximum 60. The Tab5 drawer offers 1, 2, 3 and 5; the API accepts any value in range. It is also in /api/status as peak_hold_s, so a browser can follow a
change made on the Tab5 without re-reading the settings.
Spectrum smoothing has two names for one stored value.
display.smooth_pct is the operator-facing one: 0 is off, higher is smoother,
and it is what the settings form shows. display.ema_pct is the raw EMA
coefficient × 100, where 100 means no smoothing — the inverse. Both are
reported by GET /api/settings and both are accepted by the POST; if a payload
carries both, smooth_pct wins. ema_pct is kept because config files and
scripts written before 2026-10-24 use it, and /api/status reports it under
wf.ema_pct for a browser drawing its own trace.
A missing required parameter is refused with HTTP 400. set_freq,
set_band, set_bw, set_zoom, set_rit and view_center answer
<key> required (number) when the key is absent or is sent as a string. Until
2026-10-23 they answered {"ok":true} and did nothing, so
{"action":"set_freq","freq":10000000} looked like a successful tune.
set_screen likewise refuses a name it does not know instead of falling back
to the panadapter.
Effects are applied asynchronously — mode and filter writes are queued onto the
CAT poll task, and cq_start, reply, qso_override and set_ft8_mode onto
the display task — so read /api/status or /api/settings to see the result
rather than assuming it from the response.
GET /api/tone¶
The TX audio tone and the live occupancy of the 200-2800 Hz window.
{ "hz": 1650, "hold": false, "min": 200, "max": 2800, "step": 50,
"stations": 14, "busy": "0000000000111110...", "partner_hz": 1750, "busy_tx": false }
busy is one character per 50 Hz slot (1 = a station or its guard band), sent
as a string because 52 bits do not survive JavaScript's number type.
busy_e and busy_o carry the EVEN and ODD windows separately — two
stations only collide in the same window, and only the operator knows which one
they are about to transmit into; busy remains the our-window/union view the
automatic verdict uses.
stations is how many decoded stations fed the mask - zero means the band
picture is unknown, not empty, and a caller must say so rather than showing the
all-clear.
POST /api/tone¶
{"hz":1650} and/or {"hold":true}. Out-of-range frequencies are clamped.
A tone change while a QSO is running is applied to the running exchange first (your partner tracks your slot, not your tone). Mid-burst it is refused with 409 and the body carries the device's own reason - the preference is not stored either, so the two can never end up half-committed.
GET /api/memory¶
All 32 memory channels: {"slots":[{"idx":0,"occupied":true,"freq_hz":14074000,"mode":"DIGI","label":"FT8"}, ...]}.
Empty slots carry only idx and occupied:false.
POST /api/memory¶
Write one channel - {"idx":3,"freq_hz":14074000,"mode":"DIGI","label":"FT8"} -
or clear one with {"idx":3,"clear":true}. Fields you omit keep their stored
value, so renaming a channel needs only idx and label.
A frequency outside a recognised amateur band returns 400 - the same refusal the Tab5 makes, so the browser cannot be a way around it.
There is no recall endpoint: recalling a channel is set_freq plus set_mode,
which /api/cmd already does.
GET /api/settings¶
The settings a browser can usefully edit: callsign, grid, the CQ presets, the FT8
filters, the everyday toggles, QMX volume, band-plan region and the WiFi SSID.
The spot sources (spots_en overall, then rbn_en and cluster_en),
propagation feedback (psk_rx_en) and the Bluetooth mouse (bt_mouse_en) are
here too — bt_mouse_en is stored immediately but only takes effect after a
restart. swr_limit_x10 is the SWR limit × 10, so 30 is 3.0:1. It is
writable: 0 switches SWR protection off, and any other value is held between
20 and 40.
The WiFi password is never returned - only wifi_pass_set says whether one is
stored.
POST /api/settings¶
Applies a partial update: only the keys present are touched, everything else is left alone. So a single toggle is a one-key body, and a stale browser form can never reset fields it did not show.
{ "my_grid": "JO65ab", "rbn_en": true, "cq": { "max_calls": 10 } }
wifi_ssid and wifi_pass take effect only when both are supplied - an empty
password means "keep the stored one", never "erase it". qmx_vol_db is in dB
(0-50) and is sent to the radio as well as stored.
Everything the settings drawer can change is reachable here. Besides the keys
above that includes flat_mode, distance_in_miles, greylist_en,
ft8_early_decode, field_day_en (with fd_class / fd_section), spots_en,
sota_en, rbn_en, pskreporter_en, resmon_en, tx_tone_hold, tx_tone_hz,
cw_pitch_hz and cw_cal_hz — all readable back from GET.
sim_mode_en is the one to know about if you are automating tests. With it
on, the firmware runs complete FT8 exchanges against phantom stations and
ft8_tx.c hard-refuses to key the radio, so a QSO can be driven end to end with
no antenna and no QMX attached. ⚠ Simulated contacts land in the real ADIF
log, so turn it off afterwards and delete them — they have FREQ=0, and the
ADIF viewer's "Del N test" button finds exactly those.
Read-only reporters. ft8_op_mode ("ft8" / "ft4") and ft8_freq_hz are
returned but not writable here — change them with the set_ft8_mode action,
which also retunes the radio and clears stale decodes, then read these back to
confirm.
GET /api/decodes¶
The FT8/FT4 decode list as the Tab5 shows it - same ordering (the station being worked, then messages addressed to you, then CQ calls, then strongest signal) and the same Filter-window hides applied. Read-only.
{
"mode": "FT8",
"miles": false,
"working": "DK7CVD",
"rows": [
{ "call": "DK7CVD", "text": "OZ1LAV DK7CVD -07", "grid": "JO31",
"snr": -7, "hz": 1503, "dt": 210, "age": 6, "heard": 3,
"km": 612, "brg": 173,
"sl": "E", "me": true, "cq": false, "pin": true }
]
}
dt is milliseconds, hz the station's audio tone, age seconds since it was
last decoded, sl the transmit window it was heard in. me marks a message
containing your callsign, pin the station you are working.
km and brg (v1.8.3) are distance and bearing from your grid to theirs, worked
out on the device with the same maths the Tab5's own list uses. Both are omitted
entirely when either grid is missing — there is no null and no zero, so a client
should render an absent field as "unknown" rather than as a distance. km is in
miles when the top-level miles flag is true, which mirrors the Distance in
miles setting.
GET /api/help¶
The guidance rows, ranked by the device from its own live state. flagged marks a
row the firmware can see is happening right now.
{
"context": { "page": "guide/panadapter.md", "anchor": "Layout", "label": "Panadapter" },
"rows": [
{ "symptom": "My radio is not showing up", "flagged": true,
"page": "reference/troubleshooting.md", "anchor": "won't reconnect",
"label": "Radio not connecting" }
]
}
context is the chapter the Tab5's own User Manual button would open right
now. anchor is a case-insensitive heading substring, not a URL fragment.
GET /api/manual?page=guide/ft8-tx.md¶
One page of the built-in manual, as the raw markdown that built the documentation
site. page=toc.json returns the contents list. Served from the firmware, so it
needs no internet and always matches the running version. 404 if the page is not
in this firmware's manual.
CAT Endpoints¶
Send CAT-level changes through POST /api/cmd (set_freq, set_mode,
set_bw, set_band), which routes them through the CAT poll task - the only
writer to the radio's serial port. For one raw CAT string there is the developer
action cat_raw with a cmd field; its reply appears in the diagnostic log,
and a command that would transmit passes the band guard first.
Transmitting from off your network¶
This API has no password, and it can key the radio. The TX interlock
(Settings > Station > Refuse transmit from outside this network) refuses any
request that transmits unless it arrived from the Tab5's own subnet. The refusal
is HTTP 403 with {"ok":false,"tx_interlock":true,"error":"..."}, so a
client can tell it apart from a band-guard refusal. Receive, the display and
every read-only call are untouched.
Every decision is logged, including the ones it allows, with the peer address,
the Tab5's own address and the netmask - so /api/log can answer whether a
request reached the interlock at all, and what it decided.
It is off by default, because driving this radio across a network is a legitimate thing to do - a shared-radio front end, or your own station behind a tunnel.
The actions that stop something are never interlocked: tune_stop,
rtty_stop, cw_cancel, js8_text_cancel, and qso_override with cancel,
pause or skip. Refusing a stop would leave a transmitter on the air.
It is not a login
It stops the internet. It does not stop anyone else on your WiFi - they are
on the same subnet and they pass. The peer address is read from the TCP
connection, so X-Forwarded-For and friends cannot fake it, and that also
means a reverse proxy on your LAN passes as a local caller - as does
anything behind a router that translates addresses (NAT) on the way in,
because the address the Tab5 reads is then the router's. No socket-based
check can see past a translating router. For real remote
access put the Tab5 behind a VPN, a tunnel or a proxy that does the
authentication, and leave this on as the second lock. Over plain HTTP a
password would cross in clear and the token could be replayed to key your
transmitter.
FT8 Endpoints¶
The decode list is GET /api/decodes (above). Transmit from the browser is
limited to POST /api/cmd {"action":"cq_start"}; there is no endpoint that sends
an arbitrary FT8 message, deliberately - replies are chosen from the decode list
in front of you, at the Tab5.
ADIF Endpoints¶
GET /api/adif¶
Download ADIF log.
Response: ADIF file (text/plain)
?activation=<REF> limits the download to contacts made during an activation of
that reference (matched on MY_SIG_INFO), so a park's log can be uploaded on its
own rather than the whole file. An unknown reference returns a valid ADIF file
with no records, not an error.
?date=today or ?date=YYYYMMDD limits it to one UTC day, and names the download
qso-YYYY-MM-DD.adi so a daily file is self-identifying once it is saved. A day
with no contacts returns a valid empty ADIF, not an error.
POST /api/adif/import¶
Restore records from a raw ADIF file — the browser's own "ADIF download", or any
other logger's export. Body is the ADIF text itself (Content-Type: text/plain).
?mark_uploaded=0 imports the contacts as not yet uploaded, so the next QRZ/
eQSL/LoTW upload pass sends them. Default (1, or the parameter omitted) marks
them as already uploaded instead — advancing all three upload cursors to the new
record count — since the ordinary reason to restore a log is that these contacts
were already sent before whatever wiped the device.
A pretty-printed, multi-line record (as some loggers export) is normalised to
this device's own one-line-per-record form before being written. A record whose
CALL+QSO_DATE+TIME_ON already matches one in the log is skipped, so
re-importing the same file twice — or a file that overlaps an earlier partial
restore — adds nothing extra.
Response:
{ "ok": true, "added": 12, "total": 47 }
added: 0 with ok: true means every record in the file was already logged.
ok: false means the log could not be written at all (storage full).
POST /api/adif/edit¶
Correct one field of one record: ?idx=<n>&call=<CALL>&field=<F>&value=<V>.
idx is the record's position in the file and call must match the callsign
already stored there — both, or the device answers 409 and changes nothing, so
a browser showing a stale list cannot edit the wrong QSO.
Any ADIF field can be edited. The field name can hold letters, digits and
underscore only. RST_SENT, RST_RCVD, GRIDSQUARE, QSO_DATE and TIME_ON
are format-checked, and a value that does not fit is refused with 400. An
empty value removes the field, which for a report is the honest record of one
that was never exchanged. SIG_INFO is the reference the other station was
activating (US-1241, G/LD-049, DLFF-0123); the device derives SIG from
its shape and writes it alongside, and clears it again when the reference is
cleared. Callsign, band, mode, date and time are what QRZ, eQSL and LoTW match
a contact on, so a change to one of them here does not change the copy a
logbook already holds.
Response: {"ok":true}, or {"ok":false,"error":"…"}
POST /api/adif/clear¶
Clear all QSOs from ADIF log.
Response:
{"ok": true}
Configuration Endpoints¶
GET /api/config¶
Download current configuration (all settings + memory channels).
Response: INI text file
POST /api/config¶
Upload a configuration file to restore settings.
Request: the config file as the raw request body (not multipart)
Response:
{"applied": 57}
applied is the number of settings the file changed.
Logging Endpoints¶
GET /api/log¶
Download diagnostic log.
Response: Text file (qmx-log.txt)
GET /api/log/saved¶
The flash-persisted copy of the diagnostic log from before the last reboot or power-off - the one that survives a crash in the field.
Response: Text file
GET /api/signal¶
The signal level alone, for a faster S-meter than the 1 Hz /api/status poll can
give. Same DSP call and parameters as /api/status and the Tab5's own S-meter -
only the cadence differs.
{ "dbm": -83.5 }
GET /api/sched¶
The contest calendar and announced ?OTA activations on one timeline, soonest
first — the same list, sort and source names the Tab5's Scheduled events pane
draws, because both read sched_events_get().
{ "age_s": 240, "busy": false, "version": 3, "wifi": true, "now": 1785340050,
"events": [
{ "what": "CQ WW DX SSB", "src": "WA7BNM Contest Calendar",
"srcs": "WA7BNM", "start": 1785344400, "end": 1785517200,
"contest": true },
{ "what": "OZ1LAV", "ref": "DL-0123", "src": "POTA", "srcs": "POTA",
"start": 1785341000, "end": 0, "contest": false }
] }
srcs is the shortened form for a column ("WA7BNM Contest Calendar" →
"WA7BNM"); src is the full name the record carries. ref is omitted for a
contest. start or end of 0 means the feed gave no usable time.
Events already finished are dropped; one with no usable end time is kept.
No filtering here — contest is the flag, and the All / Contests / ?OTA
choice belongs to whichever surface is drawing.
Requesting this asks for a refresh, but the 15-minute floor is enforced on
the device, so polling cannot reach the upstream feed faster than that. Add
?force=1 for the pane's own Refresh button. The fetch runs on the spots task,
so the call returns at once with whatever is already held.
now is the device's clock, and a countdown should be computed against it:
a browser clock minutes out would show rows as running that the Tab5 still shows
as upcoming.
The upstream feed being down is an ordinary state, not an error. There is no
error field: busy, age_s (-1 = never fetched) and version (0 = never
fetched) are what tell "slow" apart from "nothing scheduled".
GET /api/psk_rx¶
Propagation feedback — which receivers have copied your call, from PSK Reporter.
{ "enabled": true, "age_s": 96, "receivers": 14, "max_km": 7412,
"reports": [
{ "call": "W1ABC", "grid": "FN42", "dxcc": "United States", "mode": "FT8",
"f": 14074812, "t": 1785340050, "snr": -14, "km": 6031, "brg": 291 }
] }
Requesting this asks for a refresh, but the collector's own five-minute floor
is enforced on the device, so polling faster than that returns the same data with
a larger age_s rather than fetching again. age_s is -1 before the first
successful query.
snr is omitted when the receiver gave none — 0 dB is a real report, so it
cannot double as "unknown". km and brg are omitted together when the
receiver's grid is unknown.
Off by default. The endpoint always answers: with the feature disabled nothing is
fetched, so enabled is false and reports holds whatever the last query
returned before it was switched off — read age_s rather than assuming the list
is current. It is also empty while offline or before a callsign is set.
POST /api/adif/delete?idx=&call=¶
Delete one QSO. Both the index and the callsign must match the record, or the
request is refused with 409 - so a stale browser view can never delete the wrong
contact.
GET /api/upload_status¶
Progress of a running QRZ/eQSL/LoTW upload (busy, kind, uploaded, failed,
error).
Upload Endpoints¶
POST /api/qrz_key¶
Set QRZ API key (stored server-side).
Request: the key itself as the raw request body - plain text, not JSON, 47 characters at most.
POST /api/qrz_upload¶
Upload ADIF to QRZ Logbook.
Response: HTTP 202 with {"status":"uploading"}. The upload runs in
the background; read the result from GET /api/upload_status, which reports
busy, kind, uploaded, failed, error and sometimes a note. While
another upload is running the answer is HTTP 423 upload in progress.
POST /api/eqsl_creds¶
Set eQSL username and password.
Request:
{
"user": "oz1lav",
"pswd": "secretpass"
}
POST /api/eqsl_upload¶
Upload ADIF to eQSL.
Response: HTTP 202 with {"status":"uploading"}. The upload runs in
the background; read the result from GET /api/upload_status, which reports
busy, kind, uploaded, failed, error and sometimes a note. While
another upload is running the answer is HTTP 423 upload in progress.
POST /api/lotw_cert¶
Store the LoTW callsign certificate and key (extracted from the TQSL .p12 in the browser during LoTW setup).
POST /api/lotw_upload¶
Sign all pending QSOs with the stored certificate and upload them to lotw.arrl.org.
Response: HTTP 202 with {"status":"uploading"}. The upload runs in
the background; read the result from GET /api/upload_status, which reports
busy, kind, uploaded, failed, error and sometimes a note. While
another upload is running the answer is HTTP 423 upload in progress.
GET /api/lotw_tq8¶
Download the whole log as a signed .tq8 file, for manual upload to LoTW or offline verification.
Response: .tq8 file (gzipped, signed)
WebSocket (Streaming)¶
Single-client endpoint for live spectrum:
ws://<tab5-ip>:80/ws
There are three kinds of binary frame. The first byte says which.
| First byte | Frame |
|---|---|
0x01 |
Spectrum |
0x02 |
Takeover notice: another client has taken the stream, and this one must stop reconnecting |
0x03 |
Receiver audio |
Spectrum frame, 1063 bytes:
| Bytes | Meaning |
|---|---|
0 |
0x01 |
1 |
Zoom decimation factor (1 = base 1024-bin spectrum, >1 = zoom-FFT with that decimation) |
2–5 |
Dial frequency, Hz, for this capture |
6–9 |
Left edge of the view, Hz |
10–13 |
Span, Hz |
14–17, 18–21 |
Lowest and highest frequency the radio can hear, Hz |
22–23 |
IF offset, Hz, signed |
24–1047 |
1024 unsigned bytes, one per bin, quantised −130 dBm (0) to −30 dBm (255) |
1048–1062 |
Trailer. Its first two bytes are the S-meter: signal in dBm × 10, signed 16-bit, little-endian, 0x8000 = no reading. The rest is view state for the page |
Bins are pre-shifted server-side, so byte 24 is the leftmost screen pixel and a client does not have to know where the VFO sits in the FFT. Push rate is about 10 fps.
Audio frame (sent only while a client has asked to listen): byte 0 is
0x03, bytes 2–3 a sequence number, bytes 4–5 the sample rate (12000), and
from byte 6 the samples, µ-law, mono.
One client at a time
A second connection takes the stream over from the first, which receives
one frame of type 0x02. Opening the web UI in two tabs is enough to do it.
A connect can also be refused when the Tab5 is short of memory; try again
after 2 seconds.
Noise reduction¶
GET /rnnoise.wasm¶
The speech model for the browser's noise reduction, as WebAssembly. The page fetches it once, the first time the speech model is switched on.
Noise reduction and the auto-notch have no setting on the Tab5 and no API. They run in the browser and their settings are stored in the browser. See Web DSP.
Screenshot¶
GET /ss.bmp¶
Returns what is on the Tab5's screen right now, as a BMP.
Invoke-WebRequest -Uri "http://192.168.1.213/ss.bmp" -OutFile screenshot.bmp
It freezes animations while it reads
The screen is captured from the live framebuffer, so a waterfall or a blinking indicator stops for the duration of the read.
Error Responses¶
There is no single error format. An error is one of two things:
- a plain-text body with an HTTP error status, for example
400withunknown action; - a JSON body
{"ok":false,"error":"..."}, sometimes with HTTP 200. A few CW and JS8 actions use the keyerr.
Common HTTP status codes:
- 200 — Success, or a refusal that says so in the body
- 202 — An upload was started
- 400 — Bad request (unknown action, missing or invalid argument)
- 403 — The feature is switched off
- 409 — The request does not match the device's state (wrong record, queue full)
- 413 — The request body is too long
- 423 — An upload is already running
- 500 — Server error
Example: Tune to 7.074 MHz in Python¶
import requests
ip = "192.168.1.50"
api = f"http://{ip}/api"
# Set frequency
requests.post(f"{api}/cmd", json={"action": "set_freq", "hz": 7074000})
# Set mode
requests.post(f"{api}/cmd", json={"action": "set_mode", "mode": "USB"})
# Check status
status = requests.get(f"{api}/status").json()
print(f"Now on {status['freq_hz']} Hz, {status['mode']} mode")
Next: See Troubleshooting for API debugging.