Skip to content

Commit 2307c2f

Browse files
committed
WIS2 MQTT client side filtering: add platform as wigos_station_identifier
1 parent eefb59e commit 2307c2f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ingest/api/generate_wis2_payload.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def generate_wis2_payload(message: dict, request_url: str) -> Wis2MessageSchema:
6363
metadata_id=WIS2_METADATA_RECORD_ID, # Need to figure out how we generate this? Is it staic or dynamic?
6464
datetime=message["properties"]["datetime"],
6565
pubtime=message["properties"]["pubtime"],
66+
wigos_station_identifier=message["properties"]["platform"],
6667
standard_name=standard_name,
6768
hamsl=message["properties"]["hamsl"],
6869
function=message["properties"]["function"],

ingest/api/wis2_model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ class Properties(BaseModel):
8686
None,
8787
description="Identifies the end date/time date of the data being recorded, in RFC3339 format.",
8888
)
89+
wigos_station_identifier: Optional[str] = Field(
90+
None,
91+
description="WIGOS-ID of the platform(s) (if exists), or a generated WIGOS-like ID.",
92+
)
8993
standard_name: Optional[str] = Field(
9094
None,
9195
description="CF standard for the data included in this message.",

0 commit comments

Comments
 (0)