projekt:python_fastapi
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| projekt:python_fastapi [2026/02/21 12:56] – [Python FASTAPI] torsten.roehl | projekt:python_fastapi [2026/02/23 07:26] (aktuell) – [Systemd] torsten.roehl | ||
|---|---|---|---|
| Zeile 278: | Zeile 278: | ||
| return html | return html | ||
| - | |||
| @app.get("/ | @app.get("/ | ||
| def led_page(): | def led_page(): | ||
| r, y, g = hardware.status() | r, y, g = hardware.status() | ||
| + | |||
| return HTMLResponse( | return HTMLResponse( | ||
| load_template(" | load_template(" | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| + | " | ||
| + | " | ||
| + | " | ||
| }) | }) | ||
| ) | ) | ||
| - | |||
| @app.get("/ | @app.get("/ | ||
| Zeile 400: | Zeile 402: | ||
| sudo systemctl enable course_web | sudo systemctl enable course_web | ||
| sudo systemctl start course_web | sudo systemctl start course_web | ||
| + | |||
| + | </ | ||
| + | |||
| + | Nützlich: | ||
| + | <code bash> | ||
| + | sudo systemctl restart course_web | ||
| sudo systemctl status course_web | sudo systemctl status course_web | ||
| </ | </ | ||
projekt/python_fastapi.1771678569.txt.gz · Zuletzt geändert: von torsten.roehl
