Add /AM and /MM activities, fix up activities list in OpenAPI spec, few more About page tweaks. #147

This commit is contained in:
Ian Renton
2026-09-18 17:29:21 +01:00
parent 0ad0d25c70
commit 75905c5ef7
4 changed files with 34 additions and 4 deletions
+17 -1
View File
@@ -39,11 +39,27 @@ ACTIVITIES = [
Activity( Activity(
name="EME", name="EME",
comment_names=[], comment_names=[],
description="Moonbounce", description="Earth-Moon-Earth (Moonbounce)",
sig_type=ActivityType.TRADITIONAL, sig_type=ActivityType.TRADITIONAL,
icon="fa-moon", icon="fa-moon",
refs_globally_unique=False, refs_globally_unique=False,
), ),
Activity(
name="/AM",
comment_names=[],
description="Aeronautical Mobile",
sig_type=ActivityType.TRADITIONAL,
icon="fa-plane",
refs_globally_unique=False,
),
Activity(
name="/MM",
comment_names=[],
description="Maritime Mobile",
sig_type=ActivityType.TRADITIONAL,
icon="fa-sailboat",
refs_globally_unique=False,
),
Activity( Activity(
name="QRP", name="QRP",
comment_names=["QRP"], comment_names=["QRP"],
+7
View File
@@ -384,6 +384,13 @@ class Spot:
if self.propagation_mode == "Earth-Moon-Earth" and not self.sig: if self.propagation_mode == "Earth-Moon-Earth" and not self.sig:
self.sig = "EME" self.sig = "EME"
# Set activities based on the DX callsign suffix
if self.dx_call and not self.sig:
if self.dx_call.upper().endswith("/AM"):
self.sig = "/AM"
elif self.dx_call.upper().endswith("/MM"):
self.sig = "/MM"
# Parse "de_grid -> dx_grid" structures from the comment # Parse "de_grid -> dx_grid" structures from the comment
if self.comment: if self.comment:
grid_mode_grid_match = re.search( grid_mode_grid_match = re.search(
+8
View File
@@ -19,6 +19,7 @@ info:
* Renamed AMSAT SIG to "Satellite" as AMSAT is a specific organisation not just a general term for satellite QSOs * Renamed AMSAT SIG to "Satellite" as AMSAT is a specific organisation not just a general term for satellite QSOs
* Removed `alert_type` from alert data. Contest, DXpedition and Satellite alerts now give those values in `sig` instead, alongside the existing outdoor activity programmes. Teeeeechnically a breaking change but AlertType is so new I doubt anyone is using it yet, so slipped this one in anyway. Sorry :) * Removed `alert_type` from alert data. Contest, DXpedition and Satellite alerts now give those values in `sig` instead, alongside the existing outdoor activity programmes. Teeeeechnically a breaking change but AlertType is so new I doubt anyone is using it yet, so slipped this one in anyway. Sorry :)
* Added QRP, RaDAR Rally, /AM and /MM activities
### 2.1 ### 2.1
@@ -884,6 +885,13 @@ components:
ActivityName: ActivityName:
type: string type: string
enum: enum:
- Contest
- DXpedition
- Satellite
- EME
- /AM
- /MM
- QRP
- POTA - POTA
- SOTA - SOTA
- WWFF - WWFF
+2 -3
View File
@@ -14,9 +14,8 @@
source, freeing developers from needing to know how each individual data source presents its data.</p> source, freeing developers from needing to know how each individual data source presents its data.</p>
<p>Spothole itself is also open source, Public Domain licenced code that anyone can take and modify. <a <p>Spothole itself is also open source, Public Domain licenced code that anyone can take and modify. <a
href="https://git.ianrenton.com/ian/spothole/">The source code is here</a>.</p> href="https://git.ianrenton.com/ian/spothole/">The source code is here</a>.</p>
<p>The software was written by <a href="https://ianrenton.com">Ian Renton, MØTRT</a> and other contributors. Full <p>The software was written by <a href="https://ianrenton.com">Ian Renton, MØTRT</a> with code contributions by
details are available in the <a href="https://git.ianrenton.com/ian/spothole/src/branch/main/README.md">README Steven, M1SDH. The full list of thanks due to others can be found at the bottom of this page.</p>
file</a>.</p>
<p>This server is running Spothole version {{software_version}}.</p> <p>This server is running Spothole version {{software_version}}.</p>
<h2 class="mt-4 mb-4">Using Spothole</h2> <h2 class="mt-4 mb-4">Using Spothole</h2>
<p>There are a number of different ways to use Spothole, depending on what you want to do with it and your level of <p>There are a number of different ways to use Spothole, depending on what you want to do with it and your level of