Dokumentation

This commit is contained in:
chk
2026-06-08 14:04:11 +02:00
parent ad1fc58186
commit 9f840ca5e3
8 changed files with 293 additions and 0 deletions

18
doc/ToDo_3_Config.md Normal file
View File

@@ -0,0 +1,18 @@
# ToDo 3 — Konfiguration
## Ziel der Verbesserung
Zentralisierte Konfiguration statt verstreuter Hardcodierung. Konfiguration soll transparent, testbar und leicht anpassbar sein.
## Aufgaben
- [ ] `config.js` oder ein zentrales Config-Modul anlegen
- [ ] Alle Umgebungsvariablen an einer Stelle lesen und validieren
- `PORT`
- `GRBL_BASE_IP`, `GRBL_ELLBOW_IP`, `GRBL_HAND_IP`
- `ROBOT_DEFAULT_FEEDRATE`
- `ROBOT_USE_SPEED_CALC`
- HTTPS-Zertifikatpfade und Passphrase
- [ ] `startRobot.js`, `TelnetSenderGRBL`, `InfoServer.js` und weitere Module mit dem Config-Modul arbeiten lassen
- [ ] Optional: `config/default.json` oder `.env` als Konfigurationsbasis bereitstellen
- [ ] Fehlende oder ungültige Konfiguration frühzeitig mit klarer Fehlermeldung melden