From 3cefb9265895ae905a19fe7ad2ebb79cf593b032 Mon Sep 17 00:00:00 2001 From: Till Tomczak Date: Mon, 26 May 2025 22:30:36 +0200 Subject: [PATCH] =?UTF-8?q?README:=20Kiosk-Modus=20Dokumentation=20hinzuge?= =?UTF-8?q?f=C3=BCgt=20-=20Web=20Interface=20parallel=20zur=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/docs/README.md b/docs/README.md index 981df56e..1e51555f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -77,6 +77,31 @@ curl -k https://m040tbaraspi001.de040.corpintra.net/health # → Option 3: Entwicklungs-Setup ``` +### MYP Kiosk-Modus (Produktions-bereit) + +Das Backend bietet parallel zur API auch ein **vollständiges Web-Interface** für Kiosk-Betrieb: + +```bash +./myp_installer.sh +# → Option 2: Backend-Only Installation (mit Kiosk Web Interface) +# oder +# → Option 5: Granulare Installation → Kiosk-Modus installieren +``` + +**Kiosk-Features:** +- ✅ **Web-Interface parallel zur API** - Kein separates Frontend nötig +- ✅ **Touch-optimierte Bedienung** - Ideal für Raspberry Pi Touchscreens +- ✅ **Automatischer Browser-Start** - Vollbild-Modus beim Boot +- ✅ **systemd Integration** - Service-basierte Kiosk-Verwaltung +- ✅ **Produktions-bereit** - SSL, Logging, Monitoring + +**Kiosk URLs:** +- Hauptinterface: `https://raspberrypi/` +- Dashboard: `https://raspberrypi/dashboard` +- Drucker-Verwaltung: `https://raspberrypi/printers` +- Job-Verwaltung: `https://raspberrypi/jobs` +- Admin-Panel: `https://raspberrypi/admin` + ### Manuelle Installation #### Backend Debug-Modus @@ -91,6 +116,15 @@ cd frontend npm run dev ``` +#### Kiosk-Modus manuell starten +```bash +# Backend starten +cd backend/app && python app.py + +# Kiosk-Browser starten (separates Terminal) +./backend/app/start_kiosk.sh +``` + ## 📁 Projektstruktur ``` @@ -155,6 +189,36 @@ docker-compose logs -f docker-compose logs caddy ``` +### Kiosk-Modus +```bash +# Backend Service +sudo systemctl status myp.service + +# Kiosk-Browser Service +sudo systemctl status myp-kiosk-browser.service + +# Kiosk-Browser Logs +sudo journalctl -u myp-kiosk-browser.service -f +``` + +## 🔧 Services + +### Backend Services +```bash +# Backend starten/stoppen +sudo systemctl start myp.service +sudo systemctl stop myp.service +sudo systemctl restart myp.service + +# Kiosk-Browser starten/stoppen (falls installiert) +sudo systemctl start myp-kiosk-browser.service +sudo systemctl stop myp-kiosk-browser.service + +# Automatischen Start aktivieren/deaktivieren +sudo systemctl enable myp.service +sudo systemctl enable myp-kiosk-browser.service +``` + ## 🆘 Troubleshooting ### MYP Control Center verwenden