PSK Reporter spots over MQTT
Every reception report sent to pskreporter.info, published live as MQTT messages. Connect with any MQTT client, subscribe to the stations, bands or places you care about, and each spot arrives as a line of JSON within a few seconds.
Checking the feed. Service status
It is free and needs no account. Please read the short terms of use before you build on it.
Quick start
Connect to mqtt.pskreporter.info with no username or password.
| Port | Protocol | Use it for |
|---|---|---|
1883 | MQTT | Most programs and command-line clients |
1884 | MQTT over TLS | The same, encrypted |
1885 | WebSocket | Web pages served over http |
1886 | WebSocket over TLS | Web pages served over https |
To see spots straight away, install the Mosquitto clients and run this. It prints a 1% sample of the whole feed:
mosquitto_sub -h mqtt.pskreporter.info -t "pskr/filter/v2raw_1pc/#" -vTo see everyone who is hearing one station, put its callsign in the topic:
mosquitto_sub -h mqtt.pskreporter.info -t "pskr/filter/v2/+/+/M0LTE/#" -vThe same in Python, with paho-mqtt:
import json, uuid
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, reason_code, properties):
client.subscribe("pskr/filter/v2/+/+/M0LTE/#")
def on_message(client, userdata, msg):
spot = json.loads(msg.payload)
print(spot["rc"], "heard", spot["sc"], "on", spot["b"], spot["md"], spot["rp"], "dB")
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,
client_id="my-program-M0LTE-" + uuid.uuid4().hex[:8])
client.on_connect = on_connect
client.on_message = on_message
client.connect("mqtt.pskreporter.info", 1883, keepalive=60)
client.loop_forever()
Build a topic
Each spot is published to a topic that describes it, so you filter by choosing what to subscribe to. The topic has eight parts after the prefix, always in this order:
pskr/filter/v2/band/mode/sender/receiver/sender grid/receiver grid/sender country/receiver country
Use + in place of any part you don't mind about, and # to mean "everything from here on". Fill in what you want below and the topic is written for you.
Topic
Try one:
| UTC | Band | Mode | Sent by | Grid | Heard by | Grid | dB |
|---|
Details that catch people out
- A
/in a callsign is written as.in the topic, soF/M0LTE/PisF.M0LTE.P. The spot itself keeps the slash. - Grids in the topic are the first four characters, in capitals (
IO91). The spot carries the full locator as the station reported it. - Countries are ADIF country numbers: 223 is England, 291 is the USA. The builder above looks them up for you.
#can only be the last thing in a topic. A topic with no parts filled in is the whole feed, which is a few hundred spots a second.
Which feed
| Prefix | What you get |
|---|---|
pskr/filter/v2 | Spots with every part present and valid. Use this unless you have a reason not to. |
pskr/filter/v2raw | Every spot that has both callsigns. A missing or invalid part appears as UNKNOWN, and grids are as reported, not cut to four characters. |
pskr/filter/v2raw_1pc | A random 1% of v2raw. Good for trying things out and for light displays. |
Spot fields
Each message is one spot, as a JSON object in UTF-8:
{"sq":75156832672,"f":14075528,"md":"FT8","rp":4,"t":1795388475,"t_tx":1795388475,
"sc":"PP2CS","sl":"GH53nw76","rc":"N9EAT","rl":"EN41WT","sa":108,"ra":291,"b":"20m"}
| Field | Meaning |
|---|---|
sq | Sequence number, unique to each spot |
f | Frequency in Hz |
b | Band |
md | Mode |
rp | Signal report (SNR) in dB |
t | Time the receiver reported, in Unix seconds. What it means depends on the receiver's software. |
t_tx | When the transmission started, where that can be worked out. Left out when it can't. See spot timing. |
sc | Sender's callsign |
sl | Sender's locator |
sa | Sender's ADIF country number |
rc | Receiver's callsign |
rl | Receiver's locator |
ra | Receiver's ADIF country number |
If you want one time per spot, use t_tx when it is there and fall back to t.
Other topics
Receiver details: pskr/rxinfo/{callsign}
Each active receiver's antenna, rig, decoder software and locator, as retained messages. Subscribe to pskr/rxinfo/# and you get the current set at once, then changes as they happen. An empty message means that receiver has gone. More about receiver info.
Callsigns as they appear: pskr/heard
The callsign of each sender, as plain text, every time one is spotted.
WSPR: wspr/filter/...
WSPR spots gathered from wsprnet.org, wsprnet.eu, wspr.live and PSK Reporter, with repeats removed. The topic has the same eight parts as pskr/filter/v2. The spot has no sq or t_tx, and may add src (where it came from), pw (power in dBm), dt and dr (drift).
Good to know
- Give each connection its own client id. If two connections use the same one, the second knocks the first off. Add something random to the end. A client id containing
+or#is refused. - Overlapping subscriptions give you copies. If one spot matches two of your topics you receive it twice. Use
sqto drop repeats, or choose topics that don't overlap. - Keep up. If your program falls about 1 MB behind, new spots are dropped until it catches up. You stay connected, so it shows as a delay and then a gap.
- Send pings. Set a keepalive of around 60 seconds. Most libraries do this for you.
- The feed is read-only. Connect without a username or password. If your client insists on sending a username, it is ignored.
- MQTT 3.1, 3.1.1 and 5 all work.
Terms of use
The feed is free to use, in free and paid software alike, and you don't need to ask first. These are the conditions.
- Subscribe only to what you need. The best pattern is one connection per user, filtered to that user's own callsign or grid. Taking the whole feed is fine if you really do use the whole feed.
- If your software has many users, don't send them all here for bulk data. Thousands of copies of a program each subscribing to whole bands or countries has taken the service down before. Take one connection to a server of your own and share it out from there.
- Say who you are. Start your client id with the name of your program, and add a callsign or other contact if you can, for example
my-program-M0LTE-3f9a2c1b. Then if something goes wrong we can find you and talk, which is much better than blocking you. - Reconnect gently. When a connection drops, wait a few seconds before retrying, and wait longer each time, up to a couple of minutes.
- Don't depend on it for anything that matters. This is a volunteer service on donated hosting. It has outages and gaps, and comes with no guarantee of any kind. Do not use it for anything safety-critical.
- Give credit. Credit the PSK Reporter service by Philip Gladstone, MQTT feed provided by Tom Fanning M0LTE. One line where your users can see it is enough, for example: "Data from PSK Reporter by Philip Gladstone. Live spots from mqtt.pskreporter.info by Tom Fanning M0LTE."
- We may disconnect or block a client. Only when it is spoiling the service for everyone else, and we would much rather talk first.
If you are not sure whether your plan fits, describe it on the mailing list and we will tell you. We also like hearing what people have built, and are happy to link to it.
Help and credits
Questions, problems and outage reports go to the pskr-mqtt mailing list on groups.io.
Some things built on the feed: Spotty by Mike G8LKD, and ft8.live by Arron ZL1AN.
The service is run by Tom M0LTE, with thanks for donated hosting. The spots come from Philip Gladstone's pskreporter.info and are used with permission. Thanks to Mike G8LKD, Matt KA1R, Olof W6OJN and Kristian 2E0KGG for ideas, time and feedback.