„abflussdaten_sammeln.py“ ändern
Fehlerkorrektur doppelter Variablenname "messstelle"
This commit is contained in:
@@ -21,11 +21,11 @@ def daten_sammeln():
|
||||
for messstelle in CONFIG["hnd"]:
|
||||
lat = CONFIG["hnd"][messstelle]["lat"]
|
||||
lon = CONFIG["hnd"][messstelle]["lon"]
|
||||
messstelle = CONFIG["hnd"][messstelle]["text"]
|
||||
bezeichnung = CONFIG["hnd"][messstelle]["text"]
|
||||
geohash = pygeohash.geohash.encode(lat, lon)
|
||||
durchfluss = max(hnd_scraping.scrap_messwerte_hnd(CONFIG["hnd"][messstelle]["url_q"]))
|
||||
pegelstand = max(hnd_scraping.scrap_messwerte_hnd(CONFIG["hnd"][messstelle]["url_h"]))
|
||||
daten.append({"ts": durchfluss[0], "messstelle": messstelle, "geohash": geohash,
|
||||
daten.append({"ts": durchfluss[0], "messstelle": bezeichnung, "geohash": geohash,
|
||||
"durchfluss": durchfluss[1], "pegelstand": pegelstand[1]})
|
||||
|
||||
hydris_daten = hydris_data.get_hydris_data("https://www.salzburg.gv.at/wasser/hydro/grafiken/data.json")
|
||||
|
||||
Reference in New Issue
Block a user