Skip to content

Commit da3be8f

Browse files
author
Louis-Philippe Rousseau Lambert
committed
v1 of new alerts from DMS
fix for empty alerts added a local file for the alerts
1 parent 3c6f7fe commit da3be8f

File tree

4 files changed

+394
-7
lines changed

4 files changed

+394
-7
lines changed

deploy/default/msc-pygeoapi-config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4530,6 +4530,41 @@ resources:
45304530
data: ${MSC_PYGEOAPI_ES_URL}/coastal_flood_risk_index
45314531
id_field: id
45324532

4533+
weather-alerts:
4534+
type: collection
4535+
title:
4536+
en: Weather alerts
4537+
fr: Alertes météo
4538+
description:
4539+
en: "Environment Canada issues weather alerts about weather related hazards in order to notify those in affected areas so that they can take steps to protect themselves and their property from harm. Alerts are classified depending on the severity and timing of the subject event and include: warnings, watches, advisories and statements. Warnings are usually issued six to 24 hours in advance, although some severe weather (such as thunderstorms and tornadoes) can occur rapidly, with less than a half hours' notice."
4540+
fr: "Environnement Canada publie des alertes météo lorsque le temps est menaçant pour informer les personnes se trouvant dans les zones touchées afin qu'elles puissent prendre des mesures pour se protéger et protéger leurs biens. Le type d'alerte utilisé dépend de la gravité et du moment de l'événement et inclut : les avertissements, les veilles, les avis et les bulletins. Les avertissements sont habituellement émis entre 6 et 24 heures à l'avance, même si certains phénomènes violents (par exemple les orages et les tornades) peuvent se produire rapidement, avec un avis de moins d'une demi-heure."
4541+
keywords:
4542+
en: [Weather warnings, Precipitation, Snow, Wind, Storms, Floods]
4543+
fr: [Alerte météorologique, Précipitation, Neige, Vent, Tempête, Inondation]
4544+
crs:
4545+
- CRS84
4546+
links:
4547+
- type: text/html
4548+
rel: canonical
4549+
title:
4550+
en: Meteorological Service of Canada open data
4551+
fr: Données ouvertes du Service météorologique du Canada
4552+
href:
4553+
en: https://eccc-msc.github.io/open-data/msc-data/readme_en
4554+
fr: https://eccc-msc.github.io/open-data/msc-data/readme_fr
4555+
hreflang:
4556+
en: en-CA
4557+
fr: fr-CA
4558+
extents:
4559+
spatial:
4560+
bbox: [-145.27, 37.3, -48.11, 87.61]
4561+
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
4562+
providers:
4563+
- type: feature
4564+
name: Elasticsearch
4565+
data: ${MSC_PYGEOAPI_ES_URL}/alerts-realtime
4566+
id_field: id
4567+
45334568
raster-drill:
45344569
type: process
45354570
processor:

msc_pygeoapi/loader/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
#
33
# Author: Tom Kralidis <[email protected]>
44
# Felix Laframboise <[email protected]>
5+
# Louis-Philippe Rousseau-Lambert
6+
57
#
6-
# Copyright (c) 2023 Tom Kralidis
78
# Copyright (c) 2021 Felix Laframboise
9+
# Copyright (c) 2023 Tom Kralidis
10+
# Copyright (c) 2025 Louis-Philippe Rousseau-Lambert
811
#
912
# Permission is hereby granted, free of charge, to any person
1013
# obtaining a copy of this software and associated documentation
@@ -61,6 +64,7 @@ def metadata():
6164
('msc_pygeoapi.loader.forecast_polygons', 'forecast_polygons'),
6265
('msc_pygeoapi.loader.marine_weather_realtime', 'marine_weather'),
6366
('msc_pygeoapi.loader.cap_alerts_realtime', 'cap_alerts'),
67+
('msc_pygeoapi.loader.alerts_realtime', 'alerts_realtime'),
6468
('msc_pygeoapi.loader.swob_realtime', 'swob_realtime'),
6569
('msc_pygeoapi.loader.aqhi_realtime', 'aqhi_realtime'),
6670
('msc_pygeoapi.loader.aqhi_stations', 'aqhi_stations'),

0 commit comments

Comments
 (0)