simple-dwd-weatherforecast 2.1.9__tar.gz → 2.1.11__tar.gz
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.
- {simple_dwd_weatherforecast-2.1.9/simple_dwd_weatherforecast.egg-info → simple_dwd_weatherforecast-2.1.11}/PKG-INFO +2 -2
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/setup.py +2 -2
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast/dwdmap.py +6 -6
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11/simple_dwd_weatherforecast.egg-info}/PKG-INFO +2 -2
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast.egg-info/requires.txt +1 -1
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/LICENCE +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/README.md +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/setup.cfg +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast/__init__.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast/dwdforecast.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast/stations.json +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast/uv_stations.json +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast.egg-info/SOURCES.txt +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast.egg-info/dependency_links.txt +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/simple_dwd_weatherforecast.egg-info/top_level.txt +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/__init__.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/dummy_data.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/dummy_data_full.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/dummy_uv.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_avg.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_condition.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_max.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_min.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_sum.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_day_values.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_forecast_condition.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_forecast_data.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_station_name.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_avg.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_condition.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_max.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_min.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_sum.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_timeframe_values.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_is_in_timerange.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_is_valid_timeframe.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_location_tools.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_map.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_parsekml.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_region.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_reported_weather.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_station.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_stationsfile.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_update.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_update_hourly.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_uv_index.py +0 -0
- {simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_weather.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: simple_dwd_weatherforecast
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.11
|
4
4
|
Summary: A simple tool to retrieve a weather forecast from DWD OpenData
|
5
5
|
Home-page: https://github.com/FL550/simple_dwd_weatherforecast.git
|
6
6
|
Author: Max Fermor
|
@@ -14,7 +14,7 @@ Requires-Dist: lxml
|
|
14
14
|
Requires-Dist: requests
|
15
15
|
Requires-Dist: Pillow
|
16
16
|
Requires-Dist: arrow
|
17
|
-
Requires-Dist: stream-inflate==0.0.
|
17
|
+
Requires-Dist: stream-inflate==0.0.40
|
18
18
|
Requires-Dist: stream-unzip
|
19
19
|
Requires-Dist: httpx
|
20
20
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
5
5
|
|
6
6
|
setuptools.setup(
|
7
7
|
name="simple_dwd_weatherforecast",
|
8
|
-
version="2.1.
|
8
|
+
version="2.1.11",
|
9
9
|
author="Max Fermor",
|
10
10
|
description="A simple tool to retrieve a weather forecast from DWD OpenData",
|
11
11
|
long_description=long_description,
|
@@ -25,7 +25,7 @@ setuptools.setup(
|
|
25
25
|
"requests",
|
26
26
|
"Pillow",
|
27
27
|
"arrow",
|
28
|
-
"stream-inflate==0.0.
|
28
|
+
"stream-inflate==0.0.40",
|
29
29
|
"stream-unzip",
|
30
30
|
"httpx",
|
31
31
|
],
|
@@ -92,16 +92,16 @@ def get_from_location(
|
|
92
92
|
):
|
93
93
|
if radius_km <= 0:
|
94
94
|
raise ValueError("Radius must be greater than 0")
|
95
|
-
if
|
96
|
-
raise ValueError("
|
97
|
-
if
|
98
|
-
raise ValueError("
|
95
|
+
if longitude < -90 or longitude > 90:
|
96
|
+
raise ValueError("Longitude must be between -90 and 90")
|
97
|
+
if latitude < -180 or latitude > 180:
|
98
|
+
raise ValueError("Latitude must be between -180 and 180")
|
99
99
|
radius = math.fabs(radius_km / (111.3 * math.cos(latitude)))
|
100
100
|
return get_map(
|
101
|
-
latitude - radius,
|
102
101
|
longitude - radius,
|
103
|
-
latitude
|
102
|
+
latitude - radius,
|
104
103
|
longitude + radius,
|
104
|
+
latitude + radius,
|
105
105
|
map_type,
|
106
106
|
background_type,
|
107
107
|
image_width,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: simple_dwd_weatherforecast
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.11
|
4
4
|
Summary: A simple tool to retrieve a weather forecast from DWD OpenData
|
5
5
|
Home-page: https://github.com/FL550/simple_dwd_weatherforecast.git
|
6
6
|
Author: Max Fermor
|
@@ -14,7 +14,7 @@ Requires-Dist: lxml
|
|
14
14
|
Requires-Dist: requests
|
15
15
|
Requires-Dist: Pillow
|
16
16
|
Requires-Dist: arrow
|
17
|
-
Requires-Dist: stream-inflate==0.0.
|
17
|
+
Requires-Dist: stream-inflate==0.0.40
|
18
18
|
Requires-Dist: stream-unzip
|
19
19
|
Requires-Dist: httpx
|
20
20
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/dummy_data_full.py
RENAMED
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_avg.py
RENAMED
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_max.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_min.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_daily_sum.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_get_day_values.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_is_in_timerange.py
RENAMED
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_location_tools.py
RENAMED
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_parsekml.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_station.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_stationsfile.py
RENAMED
File without changes
|
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_update_hourly.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_uv_index.py
RENAMED
File without changes
|
{simple_dwd_weatherforecast-2.1.9 → simple_dwd_weatherforecast-2.1.11}/tests/test_weather.py
RENAMED
File without changes
|