Skip to content

Commit

Permalink
update CPW loader to include 7day/hourly forecasts, warnings, sunrise…
Browse files Browse the repository at this point in the history
…/sunset
  • Loading branch information
Dukestep committed Nov 28, 2024
1 parent ab4615b commit 0784315
Show file tree
Hide file tree
Showing 5 changed files with 3,344 additions and 419 deletions.
80 changes: 39 additions & 41 deletions deploy/default/msc-pygeoapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -679,47 +679,45 @@ resources:
- DAYS_WITH_VALID_SUNSHINE
- COOLING_DEGREE_DAYS
- HEATING_DEGREE_DAYS

# current-conditions:
# type: collection
# title:
# en: Current Weather Conditions - City Page Weather [experimental]
# fr: Conditions météorologiques actuelles - Prévisions météorologiques par ville [experimentale]
# description:
# en: Current conditions for select Canadian cities
# fr: Conditions actuelles pour une sélection de villes canadiennes
# keywords:
# en: [Meteorology, Weather]
# fr: [Météorologie, Temps]
# crs:
# - CRS84
# links:
# - type: text/html
# rel: canonical
# title:
# en: Weather forecast files by city
# fr: Prévisions météorologiques par ville
# href:
# en: https://eccc-msc.github.io/open-data/msc-data/citypage-weather/readme_citypageweather_en/
# fr: https://eccc-msc.github.io/open-data/msc-data/citypage-weather/readme_citypageweather_fr/
# hreflang:
# en: en-CA
# fr: fr-CA
# extents:
# spatial:
# bbox: [-145.27, 37.3, -48.11, 87.61]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# temporal:
# begin: null
# end: null # or empty
# providers:
# - type: feature
# default: true
# name: Elasticsearch
# data: ${MSC_PYGEOAPI_ES_URL}/current_conditions
# id_field: identifier
# time_field: timestamp

citypageweather:
type: collection
title:
en: City Page Weather [experimental]
fr: Prévisions météorologiques par ville [expérimentale]
description:
en: Provides current conditions, forecasts, warnings and regional normals for a selection of Canadian cities.
fr: Fournit les conditions actuelles, les prévisions, les avertissements et les normales régionales pour une sélection de villes canadiennes.
keywords:
en: [Meteorology, Weather]
fr: [Météorologie, Temps]
crs:
- CRS84
links:
- type: text/html
rel: canonical
title:
en: Weather forecast files by city
fr: Prévisions météorologiques par ville
href:
en: https://eccc-msc.github.io/open-data/msc-data/citypage-weather/readme_citypageweather_en/
fr: https://eccc-msc.github.io/open-data/msc-data/citypage-weather/readme_citypageweather_fr/
hreflang:
en: en-CA
fr: fr-CA
extents:
spatial:
bbox: [-145.27, 37.3, -48.11, 87.61]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: null
end: null # or empty
providers:
- type: feature
default: true
name: msc_pygeoapi.provider.cpw_elasticsearch.CPWElasticsearchProvider
data: ${MSC_PYGEOAPI_ES_URL}/citypageweather_realtime
id_field: identifier
time_field: lastUpdated
climate-daily:
type: collection
title:
Expand Down
17 changes: 9 additions & 8 deletions deploy/default/sarracenia/citypageweather.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
broker amqps://[email protected]
queue_name q_${BROKER_USER}.${PROGRAM}.${CONFIG}.${HOSTNAME}
directory ${MSC_PYGEOAPI_CACHEDIR}
exchange xpublic
queueName q_${BROKER_USER}.${PROGRAM}.${CONFIG}.${HOSTNAME}
instances 2
subtopic *.WXO-DD.citypage_weather.xml.#
mirror True
discard True
slip 3
accept .*

plugin ${MSC_PYGEOAPI_METPX_EVENT_FILE_PY}
subtopic *.WXO-DD.citypage_weather.xml.*.#

directory ${MSC_PYGEOAPI_CACHEDIR}
callback ${MSC_PYGEOAPI_METPX_FLOW_CALLBACK}
mirror True
discard False
strip 3
Loading

0 comments on commit 0784315

Please sign in to comment.