added backlight and fixed outbound

This commit is contained in:
2026-07-21 09:17:48 +03:00
parent ff2b8a250e
commit 5392273794
37 changed files with 1560 additions and 76 deletions
+4 -1
View File
@@ -18,7 +18,7 @@ from api import api_bp
from auth import auth_bp, load_or_create_secret, login_required
from config_store import list_icons, load_config
from network import network_bp
from system_info import record_request, system_bp
from system_info import apply_saved_brightness, record_request, system_bp
from updater import current_version, updater_bp
@@ -38,6 +38,9 @@ def create_app():
app.register_blueprint(updater_bp)
app.register_blueprint(system_bp)
# Restore LCD brightness from config (best-effort; needs bt-brightness + sudoers).
apply_saved_brightness()
@app.before_request
def _request_start():
g._req_start = time.time()