Improve the way hamsat alerts work, and add the ability to detect satellite names from spot comments. Closes #149

This commit is contained in:
Ian Renton
2026-09-23 22:08:36 +01:00
parent 981fea57ed
commit c26482f06b
15 changed files with 90 additions and 35 deletions
+7 -5
View File
@@ -20,9 +20,7 @@ ACTIVITIES: dict[ActivityName, Activity] = {
sig_type=ActivityType.TRADITIONAL,
has_refs=False,
refs_globally_unique=False,
# DXpedition stations are never really spotted with "DXpedition" in the comments, but we can assign
# this activity to a spot other ways.
comment_names=[],
comment_names=["DXPEDITION"],
icon="fa-book-atlas",
alerts_possible=True,
),
@@ -30,8 +28,12 @@ ACTIVITIES: dict[ActivityName, Activity] = {
name=ActivityName.SATELLITE,
description="Amateur Radio Satellite",
sig_type=ActivityType.TRADITIONAL,
has_refs=False,
refs_globally_unique=False,
# Satellite "references" are the names of the satellites themselves. This is not an exhaustive list, it just
# matches some of the most commonly used amateur radio satellites so they can be picked out of spot comments.
has_refs=True,
refs_globally_unique=True,
ref_type=ActivityRefType.SATELLITE,
ref_regex=r"ISS|AO-(?:7|27|73|91|95|123)|QO-100|QO100|QO 100|RS-44|SO-50",
comment_names=[],
icon="fa-satellite",
alerts_possible=True,