Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CPW loader to include 7day/hourly forecasts, warnings, sunrise… #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading