mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-24 16:24:32 +00:00
Improve the way hamsat alerts work, and add the ability to detect satellite names from spot comments. Closes #149
This commit is contained in:
+7
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user