env-canada 0.7.1__py3-none-any.whl → 0.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- env_canada/constants.py +1 -1
- env_canada/ec_weather.py +4 -0
- {env_canada-0.7.1.dist-info → env_canada-0.7.2.dist-info}/METADATA +2 -2
- {env_canada-0.7.1.dist-info → env_canada-0.7.2.dist-info}/RECORD +7 -7
- {env_canada-0.7.1.dist-info → env_canada-0.7.2.dist-info}/WHEEL +1 -1
- {env_canada-0.7.1.dist-info → env_canada-0.7.2.dist-info}/LICENSE +0 -0
- {env_canada-0.7.1.dist-info → env_canada-0.7.2.dist-info}/top_level.txt +0 -0
env_canada/constants.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
USER_AGENT = "env_canada/0.7.
|
1
|
+
USER_AGENT = "env_canada/0.7.2"
|
env_canada/ec_weather.py
CHANGED
@@ -451,6 +451,7 @@ class ECWeather(object):
|
|
451
451
|
self.hourly_forecasts = []
|
452
452
|
|
453
453
|
# Update daily forecasts
|
454
|
+
forecast_time = self.forecast_time
|
454
455
|
for f in weather_tree.findall("./forecastGroup/forecast"):
|
455
456
|
self.daily_forecasts.append(
|
456
457
|
{
|
@@ -464,8 +465,11 @@ class ECWeather(object):
|
|
464
465
|
"precip_probability": int(
|
465
466
|
f.findtext("./abbreviatedForecast/pop") or "0"
|
466
467
|
),
|
468
|
+
"timestamp": forecast_time,
|
467
469
|
}
|
468
470
|
)
|
471
|
+
if self.daily_forecasts[-1]["temperature_class"] == "low":
|
472
|
+
forecast_time = forecast_time + datetime.timedelta(days=1)
|
469
473
|
|
470
474
|
# Update hourly forecasts
|
471
475
|
for f in weather_tree.findall("./hourlyForecastGroup/hourlyForecast"):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: env_canada
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.2
|
4
4
|
Summary: A package to access meteorological data from Environment Canada
|
5
5
|
Home-page: https://github.com/michaeldavie/env_canada
|
6
6
|
Author: Michael Davie
|
@@ -25,7 +25,7 @@ Requires-Dist: voluptuous
|
|
25
25
|
# Environment Canada (env_canada)
|
26
26
|
|
27
27
|
[](https://badge.fury.io/py/env-canada)
|
28
|
-
[](https://snyk.io/vuln/pip:env-canada@0.7.
|
28
|
+
[](https://snyk.io/vuln/pip:env-canada@0.7.2?utm_source=badge)
|
29
29
|
|
30
30
|
This package provides access to various data sources published by [Environment and Climate Change Canada](https://www.canada.ca/en/environment-climate-change.html).
|
31
31
|
|
@@ -1,16 +1,16 @@
|
|
1
1
|
env_canada/10x20.pbm,sha256=ClKTs2WUmhUhTHAQzPuGwPTICGVBzCvos5l-vHRBE5M,2463
|
2
2
|
env_canada/10x20.pil,sha256=Oki6-TD7b0xFtfm6vxCKsmpEpsZ5Jaia_0v_aDz8bfE,5143
|
3
3
|
env_canada/__init__.py,sha256=wEx1BCwVUH__GoosSlhNMHuUKCKNZAvv5uuSa5ZWq_g,187
|
4
|
-
env_canada/constants.py,sha256=
|
4
|
+
env_canada/constants.py,sha256=DlW7o9XEpZNQry99jZ1vF0wX7Xm7ZRcK41n0YAwzp9U,32
|
5
5
|
env_canada/ec_aqhi.py,sha256=zEEt2U8gCxaLlePexl23r9zCfQYgmfhsP0ur2ZiupZc,7793
|
6
6
|
env_canada/ec_cache.py,sha256=xPlXBRLyrD6dTJWLRBy12J8kzBxMUC-20-xRuc56Hts,722
|
7
7
|
env_canada/ec_exc.py,sha256=SBJwzmLf94lTx7KYVLfQYrMXYNYUoIxeVXc-BLkuXoE,67
|
8
8
|
env_canada/ec_historical.py,sha256=slHaFwsoyW16uCVtE3_-IF3_BFhFD4IuWl7rpIRsCm4,15901
|
9
9
|
env_canada/ec_hydro.py,sha256=LBsWreTlaTKec6ObjI0ih8-zOKBNjD02oiXKTyUa1EQ,4898
|
10
10
|
env_canada/ec_radar.py,sha256=zh0tbazBbvLpuxrY0yfRm9EIaXNkM6HXPe1us99h4xM,12982
|
11
|
-
env_canada/ec_weather.py,sha256=
|
12
|
-
env_canada-0.7.
|
13
|
-
env_canada-0.7.
|
14
|
-
env_canada-0.7.
|
15
|
-
env_canada-0.7.
|
16
|
-
env_canada-0.7.
|
11
|
+
env_canada/ec_weather.py,sha256=cLWMTuvASrxYeGnXvGwsNZxd_SfD1sdfInBU51QLFCo,17026
|
12
|
+
env_canada-0.7.2.dist-info/LICENSE,sha256=c037dTHQWAgRgDqZNN-5d-CZvcteSYN37u39SNklO0I,1072
|
13
|
+
env_canada-0.7.2.dist-info/METADATA,sha256=M-fb4_i9Je1a2e6T5M7RIYDW33nknvWN6GHSKg60Sds,10707
|
14
|
+
env_canada-0.7.2.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
15
|
+
env_canada-0.7.2.dist-info/top_level.txt,sha256=fw7Pcl9ULBXYvqnAdyBdmwPXW8GSRFmhO0sLZWVfOCc,11
|
16
|
+
env_canada-0.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|