Receiver info

Receiver details that the spot stream doesn't carry (antenna, rig, decoder software and locator) are published as retained messages, one per receiver. Subscribe to pskr/rxinfo/# and you get the current set straight away, then updates as stations change. A / in a callsign becomes . in the topic.

The message

The topic is pskr/rxinfo/{callsign}, one per receiver.

mosquitto_sub -h mqtt.pskreporter.info -t "pskr/rxinfo/#" -v
{"call":"K5RAV","antenna":"OCF at 40 feet","rig":"Icom IC-7600",
 "decoder":"WSJT-X v2.6.1","grid":"EM12kx","time_start":0,"ts":1782438765}

Fields are empty strings when the receiver hasn't reported them. ts is when the snapshot was taken.

time_start

PSK Reporter's flag for the station's decoder, read the same way as for spot timing: 1 when it reports the transmission start, 0 when it reports the decode time (including software the list doesn't name). It is absent until the list has loaded. It's a convenience. Each spot's t_tx is worked out from the software named on that spot, and that takes precedence if the two ever differ.

How long a receiver stays

The list comes from PSK Reporter's active receivers and is fetched hourly. A changed receiver is republished on the next fetch.

A receiver that drops out of the list is removed on the first fetch it's missing from. We publish an empty retained message to its topic, which deletes it. Live subscribers see a zero-length payload, so treat an empty message as "this station has gone":

if (payload.length === 0) { stations.delete(callsign); }

Two safeguards stop a bad fetch removing stations that are still active:

  • A fetch that returns fewer than half as many receivers as the previous one is treated as incomplete, and nothing is removed that time.
  • Nothing is removed until there has been a previous fetch to compare with. A station that left while the service was restarting is removed on the second fetch after it comes back.

As a last resort, every message also expires after 7 days.