diff --git a/wetter/models.py b/wetter/models.py index 8e362f7..2b5a86e 100644 --- a/wetter/models.py +++ b/wetter/models.py @@ -10,6 +10,8 @@ class Stations(db.Model): lon = db.Column(db.Integer) dwd_id = db.Column(db.String) dwd_last_update = db.Column(db.TIMESTAMP) + state = db.Column(db.String) + sea_level = db.Column(db.Integer) class Climate(db.Model): __tablename__ = 'climate' diff --git a/wetter/templates/index.html b/wetter/templates/index.html index 17b9f7b..79d87c9 100644 --- a/wetter/templates/index.html +++ b/wetter/templates/index.html @@ -45,7 +45,7 @@ mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6); } stations.forEach((station, i, j) => { - L.marker([station["lat"], station["lon"]]).addTo(mymap).bindPopup("
" + station["state"] + "
Export Info"); }) }); diff --git a/wetter/templates/station.html b/wetter/templates/station.html index 498a597..fdc949d 100644 --- a/wetter/templates/station.html +++ b/wetter/templates/station.html @@ -20,14 +20,28 @@{{ station.lat }}°
{{ station.lon}}°
+{{ station.sea_level }}m
+{{ station.state }}