Skip to content

Commit

Permalink
Merge pull request #8 from SpiGAndromeda/dwd-opendata-url-http
Browse files Browse the repository at this point in the history
Change DWD OpenData url from HTTPS to HTTP.
  • Loading branch information
FL550 authored May 8, 2022
2 parents e873cbd + b4a72df commit 6ea956b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="simple_dwd_weatherforecast",
version="1.1.2",
version="1.1.3",
author="Max Fermor",
description="A simple tool to retrieve a weather forecast from DWD OpenData",
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions simple_dwd_weatherforecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Weather:

namespaces = {
"kml": "http://www.opengis.net/kml/2.2",
"dwd": "https://opendata.dwd.de/weather/lib/pointforecast_dwd_extension_V1_0.xsd",
"dwd": "http://opendata.dwd.de/weather/lib/pointforecast_dwd_extension_V1_0.xsd",
}

weather_codes = {
Expand Down Expand Up @@ -603,7 +603,7 @@ def download_weather_report(region_code):


def download_latest_kml(stationid):
url = f"https://opendata.dwd.de/weather/local_forecasts/mos/MOSMIX_L/single_stations/{stationid}/kml/MOSMIX_L_LATEST_{stationid}.kmz"
url = f"http://opendata.dwd.de/weather/local_forecasts/mos/MOSMIX_L/single_stations/{stationid}/kml/MOSMIX_L_LATEST_{stationid}.kmz"
request = requests.get(url)
file = BytesIO(request.content)
kmz = ZipFile(file, "r")
Expand Down

0 comments on commit 6ea956b

Please sign in to comment.