diff --git a/README.md b/README.md index 6a9a325..3b12017 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The API is deliberately well-defined with an OpenAPI specification and auto-gene Spothole itself is also open source, Public Domain licenced code that anyone can take and modify. -Supported data sources include DX Clusters, the Reverse Beacon Network (RBN), the APRS Internet Service (APRS-IS), POTA, SOTA, WWFF, GMA, WWBOTA, HEMA, Parks 'n' Peaks, ZLOTA, WOTA, BOTA, LLOTA, the UK Packet Repeater Network, NG3K, and any site based on the xOTA software by nischu. +Supported data sources include DX Clusters, the Reverse Beacon Network (RBN), the APRS Internet Service (APRS-IS), POTA, SOTA, WWFF, GMA, WWBOTA, HEMA, Parks 'n' Peaks, ZLOTA, WOTA, BOTA, LLOTA, WWTOTA, the UK Packet Repeater Network, NG3K, and any site based on the xOTA software by nischu. ![Screenshot](/images/screenshot2.png) diff --git a/config-example.yml b/config-example.yml index f2dc1b4..cff388d 100644 --- a/config-example.yml +++ b/config-example.yml @@ -53,6 +53,10 @@ spot-providers: class: "LLOTA" name: "LLOTA" enabled: true + - + class: "WWTOTA" + name: "WWTOTA" + enabled: true - class: "APRSIS" name: "APRS-IS" diff --git a/spotproviders/wwtota.py b/spotproviders/wwtota.py new file mode 100644 index 0000000..177f4ef --- /dev/null +++ b/spotproviders/wwtota.py @@ -0,0 +1,39 @@ +from datetime import datetime + +import pytz + +from data.sig_ref import SIGRef +from data.spot import Spot +from spotproviders.http_spot_provider import HTTPSpotProvider + + +# Spot provider for Towers on the Air +class WWTOTA(HTTPSpotProvider): + POLL_INTERVAL_SEC = 120 + SPOTS_URL = "https://wwtota.com/api/cluster_live.php" + + def __init__(self, provider_config): + super().__init__(provider_config, self.SPOTS_URL, self.POLL_INTERVAL_SEC) + + def http_response_to_spots(self, http_response): + new_spots = [] + # Iterate through source data + for source_spot in http_response.json()["spots"]: + print(source_spot) # todo + # Convert to our spot format + # spot = Spot(source=self.name, + # source_id=source_spot["spotId"], + # dx_call=source_spot["activator"].upper(), + # de_call=source_spot["spotter"].upper(), + # freq=float(source_spot["frequency"]) * 1000, + # mode=source_spot["mode"].upper(), + # comment=source_spot["comments"], + # sig="WWTOTA", + # sig_refs=[SIGRef(id=source_spot["reference"], sig="POTA", name=source_spot["name"])], + # time=datetime.strptime(source_spot["spotTime"], "%Y-%m-%dT%H:%M:%S").replace( + # tzinfo=pytz.UTC).timestamp()) + # + # # Add to our list. Don't worry about de-duping, removing old spots etc. at this point; other code will do + # # that for us. + # new_spots.append(spot) + return new_spots \ No newline at end of file diff --git a/templates/about.html b/templates/about.html index b28c490..3efbc39 100644 --- a/templates/about.html +++ b/templates/about.html @@ -25,7 +25,7 @@

What are "DX", "DE" and modes?

In amateur radio terminology, the "DX" contact is the "interesting" one that is using the frequency shown and looking for callers. They might be on a remote island or just in a local park, but either way it's interesting enough that someone has "spotted" them. The callsign listed under "DE" is the person who entered the spot of the "DX" operator. "Modes" are the type of communication they are using. For example you might see "CW" which is Morse Code, or voice "modes" like SSB or FM, or more exotic "data" modes which are used for computer-to-computer communication.

What data sources are supported?

-

Spothole can retrieve spots from: Telnet-based DX clusters, the Reverse Beacon Network (RBN), the APRS Internet Service (APRS-IS), POTA, SOTA, WWFF, GMA, WWBOTA, HEMA, Parks 'n' Peaks, ZLOTA, WOTA, LLOTA, the UK Packet Repeater Network, and any site based on the xOTA software by nischu.

+

Spothole can retrieve spots from: Telnet-based DX clusters, the Reverse Beacon Network (RBN), the APRS Internet Service (APRS-IS), POTA, SOTA, WWFF, GMA, WWBOTA, HEMA, Parks 'n' Peaks, ZLOTA, WOTA, LLOTA, WWTOTA, the UK Packet Repeater Network, and any site based on the xOTA software by nischu.

Spothole can retrieve alerts from: NG3K, POTA, SOTA, WWFF, Parks 'n' Peaks, WOTA and BOTA.

Note that the server owner has not necessarily enabled all these data sources. In particular it is common to disable RBN, to avoid the server being swamped with FT8 traffic, and to disable APRS-IS and UK Packet Net so that the server only displays stations where there is likely to be an operator physically present for a QSO.

Between the various data sources, the following Special Interest Groups (SIGs) are supported: Parks on the Air (POTA), Summits on the Air (SOTA), Worldwide Flora & Fauna (WWFF), Global Mountain Activity (GMA), Worldwide Bunkers on the Air (WWBOTA), HuMPs Excluding Marilyns Award (HEMA), Islands on the Air (IOTA), Mills on the Air (MOTA), the Amateur Radio Lighthouse Socirty (ARLHS), International Lighthouse Lightship Weekend (ILLW), Silos on the Air (SIOTA), World Castles Award (WCA), New Zealand on the Air (ZLOTA), Keith Roget Memorial National Parks Award (KRMNPA), Wainwrights on the Air (WOTA), Beaches on the Air (BOTA), Lagos y Lagunas On the Air (LLOTA), Towers on the Air (WWTOTA), Worked All Britain (WAB), Worked All Ireland (WAI), and Toilets on the Air (TOTA).