Big openWB Update 2026#3341
Open
Xerolux wants to merge 2 commits intoopenWB:masterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zusammenfassung
Umfassendes Update für open WB (Bookworm & Trixie), moderne Python-Versionen (3.10+) und aktualisierte Abhängigkeiten t. Außerdem wird Apache durch Caddy als Webserver ersetzt.
211 Dateien geändert, +2185 / -1579 Zeilen
Neuerungen
Debian 13 Trixie & Python 3.13 Unterstützung
openWB läuft jetzt auf aktuellen Debian-Versionen, statt an Bullseye gebunden zu sein.
/opt/openwb-venverstellt, um Konflikte mit PEP 668 (System-Python) zu vermeidenruns/platform_detect.sh(Architektur, Virtualisierung, Raspberry Pi, Debian-Version)runs/upgrade_stack.sh(Python-Installation, venv, Paketmigration, Services)Apache ersetzt durch Caddy + PHP-FPM
Der Webserver-Stack wurde komplett modernisiert:
libapache2-mod-php(standardisierter PHP-Interpreter, versionsunabhängig)runs/setup_caddy.sh(inkl. MQTT-Settings)setup_apache2.sh,.htaccess, etc.)Aktualisierte Abhängigkeiten
CallbackAPIVersion.VERSION1Testabhängigkeiten (
pytest,requests-mock) wurden inrequirements-dev.txtausgelagert.Raspberry Pi Optimierungen
Speziell für Raspberry Pi 3B/3B+:
/var/log(64 MB, keine Schreibzugriffe auf SD-Karte)Alle Optimierungen werden nur auf Raspberry Pi angewendet.
Zeit & System
systemd-timesyncd(präzisere Zeitsynchronisation)CI/CD
Funktionsweise
Auf bestehenden Bookworm-Systemen
Beim Booten wird
runs/upgrade_stack.shüberatreboot.shausgeführt:bookworm-backports/opt/openwb-venv).stack-version(verhindert doppelte Ausführung)Auf frischen Trixie-Installationen
Python 3.13 ist bereits vorhanden:
Idempotenz
upgrade_stack.shläuft nur bei Versionsänderung (.stack-version)setup_caddy.shstartet Caddy nur bei Konfigurationsänderung neuGeänderte Dateien
Neue Dateien
runs/platform_detect.sh– Systemerkennungruns/upgrade_stack.sh– Upgrade-/Migrationslogikruns/setup_caddy.sh– ersetzt Apache-Setuppymodbus_compat.py– Kompatibilität für pymodbus 3.xrequirements-dev.txt– TestabhängigkeitenEntfernt
.htaccessWichtige Anpassungen
Abwärtskompatibilität
Getestet auf