MaPaLo76
52b04ac9a6
Update README.md Screenshots
2026-02-22 21:20:06 +01:00
MaPaLo76
546b155af2
fix(web): POST /reset setzt nur Session zurueck (resetSession), nicht NVS-Gesamtzeit
2026-02-22 20:55:24 +01:00
MaPaLo76
440dd532b6
docs(tests): Test 7.7 WebServer Abschnitt und Checkliste ergaenzt
2026-02-22 20:48:15 +01:00
MaPaLo76
d6adc9f23e
docs: Phase 7 Checkliste, README Test 7.7 Abschnitt und Implementierungsstand
2026-02-22 20:44:51 +01:00
MaPaLo76
16838fa265
feat(web): Phase 7 WebServer (ESPAsyncWebServer, Config, Reset, ElegantOTA)
2026-02-22 20:43:08 +01:00
MaPaLo76
f5257e2191
docs(plan): Phase 6 6.6 und 6.7 offen (Reconnect + Modul-5-Error ungetestet)
2026-02-22 20:30:01 +01:00
MaPaLo76
3892c6b329
docs(plan): Phase 6 Checkboxen gesetzt, Details aktualisiert (TLS, LWT, JSON-Reset)
2026-02-22 20:29:05 +01:00
MaPaLo76
82ae93626a
docs(readme): Implementierungsstand Phase 6 ergaenzt, Test 6.5 in Uebersicht, Projektstruktur aktualisiert
2026-02-22 20:26:04 +01:00
MaPaLo76
46b62f720a
docs(tests): Test 6.5 Checkliste aktualisiert (Reset OK, LWT OK, Modul5/Reconnect ungetestet)
2026-02-22 20:22:02 +01:00
MaPaLo76
84e6062ab1
docs(readme): MQTT-Sektion auf Phase-6-Stand (TLS, JSON-Reset, korrekte Payloads, Broker-Default)
2026-02-22 20:17:45 +01:00
MaPaLo76
100e4b960d
feat(mqtt): Reset-Topic akzeptiert JSON-Payload {reset:true} zusaetzlich zu plain 1
2026-02-22 20:15:39 +01:00
MaPaLo76
c1bd36c84f
docs(tests): Test 6.5 als OK markiert (mqtt.majufilo.eu TLS:8883)
2026-02-22 20:13:53 +01:00
MaPaLo76
0dbfa07744
feat(mqtt): TLS-Unterstuetzung (WiFiClientSecure, Port 8883), Secrets-Datei gitignoriert
2026-02-22 20:06:53 +01:00
MaPaLo76
b9c20c4a98
chore: Copilot Workspace Instructions hinzugefuegt (Deutsch, Terminal-Wiederverwendung)
2026-02-22 19:45:24 +01:00
MaPaLo76
7e7d8797f8
docs(tests): Test 6.5 MqttClient in test_sketches/README ergaenzt
2026-02-22 19:39:52 +01:00
MaPaLo76
71ef2c7ad0
feat(mqtt): Phase 6 - MqttClient implementiert (PubSubClient, publishSession, Heartbeat, Reset-Subscribe)
2026-02-22 19:36:29 +01:00
MaPaLo76
f389a7deea
docs(tests): test_sketches/README.md vollstaendig auf Phase-5-Stand
2026-02-22 19:17:32 +01:00
MaPaLo76
d5d0085d93
docs(readme): README auf Phase-5-Stand aktualisiert, Tests-Sektion ergaenzt
2026-02-22 19:14:15 +01:00
MaPaLo76
bf1b32e24d
fix(laser): NVS zaehlt gesamte Laser-AN-Zeit inkl. Gratiszeit
2026-02-22 18:54:35 +01:00
MaPaLo76
d114a58de6
fix(phase5): LaserTracker neu - Session/Burst-Logik korrigiert
...
- BurstState-Maschine: INACTIVE -> GRATIS -> NET_COUNTING
- _sessionNetSec (RAM): Netto-Sekunden der Betriebssitzung, reset beim Start
- _totalMinutesBase (NVS via settings.saveTotalMinutes): persistierte Gesamtzeit
- Gratis-Countdown startet bei JEDEM Laser-AN-Ereignis neu
- Netto-Zeit wird erst nach Ablauf der Gratiszeit gezaehlt
- getSessionMinutes(): sessionNetSec / 60 (ganzzahlig, hart)
- getCountdownRemaining(): nur 0 wenn INACTIVE oder NET_COUNTING
- Display Module 1-3: Session-Minuten (nicht Gesamtzeit)
- Display Module 5-7: Countdown waehrend GRATIS, sonst Idle
- settings.saveTotalMinutes() statt direkter Preferences-Calls
- main.cpp + test_laser_tracker.cpp auf neue API umgestellt
2026-02-22 18:48:35 +01:00
MaPaLo76
3827342c0c
feat(laser): implement LaserTracker with debounce, gratis time and NVS save
...
- Add include/laser_tracker.h: LaserTracker class declaration
- Software debounce (LASER_DEBOUNCE_MS = 50ms from config.h)
- Polarity-aware GPIO read (LOW_ACTIVE / HIGH_ACTIVE from settings)
- Session lifecycle: onSessionStart / onSessionEnd
- Gratis time countdown, net seconds accumulation
- Getters: isActive, getTotalMinutes, getSessionSeconds,
getCountdownRemaining, getLastSessionSeconds, resetTotal
- Add src/laser_tracker.cpp: full implementation
- readRaw() applies signal polarity
- loop() handles debounce state machine and edge detection
- onSessionEnd() saves updated totalMinutes to NVS
- getTotalMinutes() returns live value (base + current net session)
- Add test_sketches/test_laser_tracker.cpp: interactive test sketch
- Button on GPIO 4 simulates laser signal
- BOOT button (GPIO 0, 3s hold) resets total
- Display: modules 1-3 = total minutes, modules 5-7 = countdown/net
- Add test-laser-tracker env to platformio.ini
- Update src/main.cpp: integrate laserTracker.begin/loop + live display
- Update Implementation-Plan.md: mark Phase 5 tasks 5.1-5.6 complete
2026-02-22 14:30:14 +01:00
MaPaLo76
26a4e9b95c
fix(display): redesign module layout - integer minutes, dedicated error slots
...
New module assignment:
Module 0 : WiFi error indicator (showWifiError) - 'W' / blank
Module 1-3 : laser time in full minutes, 3-digit right-aligned
Module 4 : MQTT error indicator (showMqttError) - 'M' / blank
Module 5-7 : countdown seconds / idle / status, 3-digit right-aligned
Changes in display_manager.h:
- Update zone layout comments
- showLaserTime: integer minutes only, writes modules 1-3 (module 0 untouched)
- showCountdown: writes modules 5-7 only (module 4 untouched)
- showIdle: ' --' on modules 5-7
- showStatus: 3-char string on modules 5-7
- Add showWifiError(bool): module 0
- Add showMqttError(bool): module 4
Changes in display_manager.cpp:
- Add BMP_M character bitmap
- Add 'M' case in charBitmap()
- Rewrite showLaserTime() - round to int, 3 chars, modules 1-3
- Rewrite showCountdown() - 3 chars, modules 5-7
- Rewrite showIdle() - ' --' on modules 5-7
- Rewrite showStatus() - 3 chars, modules 5-7
- Add showWifiError() / showMqttError() implementations
- Update printToSerial() log output
Changes in test_sketch:
- 9 test steps covering all new methods incl. combination test
- Tested on hardware: all steps passed
2026-02-22 14:15:18 +01:00
MaPaLo76
4349b37f05
feat(display): implement DisplayManager with raw MD_MAX72XX
...
- Add include/display_manager.h: DisplayManager class declaration
- Two-zone layout: Zone 0 (top, laser time), Zone 1 (bottom, countdown/status)
- showLaserTime(), showCountdown(), showIdle(), showStatus(), setBrightness()
- rotateCCW() bitmap transformation for 90 deg physical module rotation
- charBitmap() for 17-character set (0-9, space, dash, dot, special chars)
- Add src/display_manager.cpp: full implementation
- Double-init pattern for SPI power stability
- showLaserTime() format: <10 -> ' x.x', <100 -> 'xx.x', <1000 -> ' xxx', else 'xxxx'
- showCountdown() right-aligned 4-char format
- All methods use writeZone() -> writeChar() -> rotateCCW() -> MD_MAX72XX
- Add test_sketches/test_display_manager.cpp: 6-step verification test
- allLedsOn/Off, showLaserTime (12 boundary values), showCountdown 5->0
- showIdle, showStatus (Err/AP/WiFi/oF), live simulation loop
- Update platformio.ini: add test-display-mgr environment
- Update src/main.cpp: integrate display.begin/showIdle/update
- Update Implementation-Plan.md: mark Phase 4 tasks 4.1-4.3 complete
Tested on hardware: all 6 test steps passed
2026-02-22 14:00:54 +01:00
MaPaLo76
c63cace1ae
feat(wifi): implement WiFiManager connection handling
...
- include/wifi_connector.h: WifiConnector class with WifiStatus enum,
onStatusChange callback, begin/loop/reset methods
- src/wifi_connector.cpp: autoConnect with AP timeout and restart,
reconnect logic on connection loss, printToSerial diagnostics
- src/main.cpp: call wifiConnector.begin() and loop()
- test_sketches/test_wifi.cpp: first-connect via captive portal,
auto-reconnect after reboot, BOOT-button (3s) resets credentials
- platformio.ini: add test-wifi environment
- Implementation-Plan.md: mark tasks 3.1-3.3 complete
2026-02-22 13:50:07 +01:00
MaPaLo76
68c3ce54b3
feat(settings): implement NVS persistence via Preferences
...
- include/settings.h: Settings struct + SettingsManager class with
begin/load/save/reset and atomic save methods per value
- src/settings.cpp: input validation, clamping, default fallbacks;
password masked in printToSerial()
- src/main.cpp: call settings.begin() and printToSerial() on startup
- test_sketches/test_nvs.cpp: two-phase NVS persistence test;
write known values, reboot, verify all 7 values survive (PASS)
- platformio.ini: add test-nvs environment with settings.cpp in filter
- Implementation-Plan.md: mark tasks 1.4 and 2.1/2.2 complete
2026-02-22 13:35:44 +01:00
MaPaLo76
6ac33f459d
feat(phase1): complete hardware setup, display and button test sketches
...
- platformio.ini: add all 8 libraries via Git URLs, add test-display and
test-button environments, reduce SPI clock to 1 MHz for stability
- include/config.h: add pin definitions, DISPLAY_HW_TYPE=GENERIC_HW,
MQTT topics, NVS keys and logging macros
- src/main.cpp: add minimal startup skeleton with config.h include
- test_sketches/test_display.cpp: diagnostic sketch showing 0-based module
index; GENERIC_HW verified with 90 deg CCW software rotation
- test_sketches/test_button.cpp: GPIO INPUT_PULLUP test; LOW_ACTIVE confirmed
- test_sketches/README.md: add wiring tables, flash commands, results table
- README.md: update HW type to GENERIC_HW, add power supply note (0.5A /
2.5W measured, external 5V PSU required), add Conventional Commits section
- Implementation-Plan.md: mark tasks 1.1-1.5 as complete
BREAKING CHANGE: none
2026-02-22 13:20:52 +01:00
MaPaLo76
d84dfd2119
1. Vorschlag Implementierung
2026-02-22 11:13:16 +01:00
MaPaLo76
5a3a4e40bd
Initial Version of README.md
2026-02-22 10:34:37 +01:00