From c85bbc0107b44ec3bf3f4cd337075cac30204b7b Mon Sep 17 00:00:00 2001
From: Evan Pratten <evan@ewpratten.com>
Date: Thu, 21 Nov 2024 16:04:36 -0500
Subject: [PATCH] spotwatch script

---
 scripts/spotwatch | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100755 scripts/spotwatch

diff --git a/scripts/spotwatch b/scripts/spotwatch
new file mode 100755
index 0000000..7803d33
--- /dev/null
+++ b/scripts/spotwatch
@@ -0,0 +1,7 @@
+#! /bin/bash
+set -e
+
+# Allow an optional callsign to be specified (default to VA3ZZA)
+CALLSIGN="${1:-VA3ZZA}"
+
+mqtt sub -h gateway.vpn -t "radio/spots/+/+/$CALLSIGN" | jq -r '. | "\(.spotter) -> \(.spotted) (\(.mode) \(.frequency_khz)kHz)"'
\ No newline at end of file