Skip to content

Commit d894fca

Browse files
committed
Expose Environment Agency refresh interval
1 parent 8a0b604 commit d894fca

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

publishers/environment_agency_hydrology/bootstrap_environment_agency_hydrology.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"File:Environment_Agency_Morton_River_Gauge_Station_-_geograph.org.uk_-_283345.jpg"
5757
)
5858
CC_BY_SA_20 = "https://creativecommons.org/licenses/by-sa/2.0/"
59+
PUBLISH_INTERVAL_SECONDS = 900
5960

6061

6162
def _load_stations() -> list[dict]:
@@ -254,6 +255,27 @@ def _system_sml(station: dict) -> dict:
254255
],
255256
"documents": docs,
256257
"characteristics": [{"label": "Station Properties", "characteristics": characteristics}],
258+
"capabilities": [{
259+
"definition": "http://www.w3.org/ns/ssn/systems/SystemCapability",
260+
"label": "Publisher Capabilities",
261+
"capabilities": [
262+
{
263+
"type": "Quantity",
264+
"name": "publish_interval",
265+
"definition": "http://qudt.org/vocab/quantitykind/Period",
266+
"label": "Publish Interval",
267+
"uom": {"code": "s"},
268+
"value": PUBLISH_INTERVAL_SECONDS,
269+
},
270+
{
271+
"type": "Text",
272+
"name": "source_query_mode",
273+
"definition": "http://sensorml.com/ont/swe/property/ReportingFrequency",
274+
"label": "Source Query Mode",
275+
"value": "Latest Environment Agency Hydrology readings polled with latest=true",
276+
},
277+
],
278+
}],
257279
"position": {
258280
"type": "Point",
259281
"coordinates": [station["lon"], station["lat"]],

0 commit comments

Comments
 (0)