No description
- Jupyter Notebook 96.3%
- Python 3.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Dash-App zur Visualisierung der Kommunalwahlergebnisse 2025 in Leverkusen. Enthält: App-Code, Open-Data-CSVs (Stadt Leverkusen 05316000), Jupyter-Notebook, nginx- und systemd-Deployment-Konfigurationen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
| app | ||
| deploy | ||
| .gitignore | ||
| Kommunalwahl-25.ipynb | ||
| OB_Wahl_nach_Wahlbezirken.png | ||
| Opladen_Südost.png | ||
| Rat_Wahl_nach_Wahlbezirken.png | ||
| README.md | ||
| Wahlergebnisse_nach_Wahlbezirken.png | ||
| Waldsiedlung.png | ||
Kommunalwahlergebnisse Leverkusen 2025
Interaktive Dash-Visualisierung der Kommunalwahlergebnisse 2025 in Leverkusen — Ratswahl und OB-Wahl nach Wahlbezirk.
Features
- Ratswahl-Ergebnisse nach Wahlbezirk, Stadtteil und Stadtbezirk
- OB-Wahl-Ergebnisse nach Wahlbezirk, Stadtteil und Stadtbezirk
- Interaktive Karten und Balkendiagramme mit Plotly
- Filtermöglichkeit nach Wahlebene
Tech Stack
- Python 3, Dash, Plotly, pandas
- Deployment: gunicorn + nginx Reverse Proxy
- URL: https://kommunalwahl-lev.nerd-department.de
Datenquelle
Open Data der Stadt Leverkusen (Gemeindeschlüssel 05316000): https://www.offenedaten.de (Kommunalwahl 2025)
Die CSV-Dateien liegen unter app/data/ und sind direkt vom Open-Data-Portal der Stadt bezogen.
Lokale Entwicklung
cd app/
python -m venv .venv
source .venv/bin/activate
pip install dash plotly pandas
python app.py
Die App ist dann unter http://127.0.0.1:8050 erreichbar.
Deployment
Die App läuft als gunicorn-Prozess hinter nginx auf Port 5003.
WorkingDirectory: /var/www/html/kommunalwahl-lev/
wsgi.py importiert server aus app.py als application.
Konfigurationsdateien im deploy/-Verzeichnis:
| Datei | Zweck |
|---|---|
deploy/nginx-kommunalwahl-lev.conf |
nginx-vhost (HTTPS, Proxy auf Port 5003) |
deploy/gunicorn-kommunalwahl-lev.service |
systemd-Service |
Update/Neustart
# Dateien ins Deploy-Verzeichnis kopieren
rsync -a app/ /var/www/html/kommunalwahl-lev/
# Gunicorn neu starten
systemctl restart gunicorn-kommunalwahl-lev
