Commit Graph

18 Commits

Author SHA1 Message Date
b2fd24b136 Fix config save - use doSerializeConfig global flag
Changed serializeConfig() to doSerializeConfig = true
This is the correct way to trigger config save in WLED
2026-01-30 19:47:23 +02:00
e8430ab8ac Update save to use new /gpu-fan/save endpoint
Posts directly to custom endpoint which calls serializeConfig()
2026-01-30 19:43:40 +02:00
211118f8ff Add /gpu-fan/save endpoint with serializeConfig()
- New POST endpoint handles JSON body with curve config
- Calls serializeConfig() to persist to flash
- Simplified and cleaned up code
2026-01-30 19:42:35 +02:00
fdcd26b3ce Fix save function to persist config to flash
- Add psave:true flag to trigger WLED config save
- Explicitly list all curve point fields instead of loop
- Better error handling in save function
2026-01-30 19:34:26 +02:00
7816ecf949 Register /gpu-fan handler in setup() using global server variable
- Add webHandlerRegistered flag to prevent duplicate registration
- Call registerWebHandler() in both setup() and connected()
- Use global 'server' variable directly with lambda
- Removed unused methods
2026-01-30 19:23:36 +02:00
e5b02c65e8 Embed curve editor HTML and serve at /gpu-fan
- Include gpu_fan_html.h with embedded HTML page
- Add addToWebHandlers() to register /gpu-fan endpoint
- Add serveGpuFanPage() static method to serve the page
- Add [Curve Editor] link in WLED Info panel
- No filesystem upload required
2026-01-30 19:17:23 +02:00
b13dbb2897 Add embedded HTML header for curve editor page
Minified HTML/CSS/JS that will be served directly from code
without needing filesystem upload
2026-01-30 19:16:09 +02:00
e2d1a8f74f Update readme with visual curve editor documentation
- Added visual curve editor section
- Updated config documentation for flat curve structure
- Added curve editor troubleshooting
- Added mode API endpoint documentation
2026-01-30 18:54:17 +02:00
12c17bf6f4 Add visual curve editor web page
Features:
- Interactive SVG graph with draggable curve points
- Live GPU temperature display with indicator on graph  
- Real-time fan speed monitoring
- Mode toggle between Fixed and Curve modes
- Point table for precise value entry
- Touch support for mobile devices
- Minified CSS for smaller file size
2026-01-30 18:53:32 +02:00
f0873c1c6e Add custom web UI with visual curve editor and live temperature display
- Interactive SVG curve editor with draggable points
- Live GPU temperature display with indicator on graph
- Real-time fan speed monitoring
- Mode toggle between Fixed and Curve
- Point table for precise value entry
- Touch support for mobile devices
2026-01-30 18:48:11 +02:00
a3cd6bac16 Fix fan curve saving - use flat config structure for WLED compatibility
- Changed from nested JSON array to flat curve-t1/s1, curve-t2/s2, etc.
- Added appendConfigData() for config page labels
- Reduced max curve points to 5 for simpler config
- Added bounds checking for speed values
2026-01-30 18:41:07 +02:00
77a3853a4e Fix library.json - add libArchive: false for WLED build system 2026-01-30 18:23:55 +02:00
7d398f3529 Add sample platformio_override.ini for GPU Fan Controller 2026-01-30 17:37:57 +02:00
c6fce06c6f Add Python requirements for GPU temperature monitor 2026-01-30 17:37:47 +02:00
5f3bd9ae8e Add GPU temperature monitor Python script for WLED integration 2026-01-30 17:37:15 +02:00
286c2345f5 Add GPU Fan Controller library.json 2026-01-30 17:36:47 +02:00
8812a31b4d Add GPU Fan Controller usermod documentation 2026-01-30 17:36:20 +02:00
8ff78b0413 Add GPU Fan Controller usermod C++ file
- PWM fan control for GPU cooling
- Fixed speed and temperature curve modes
- HTTP API for temperature updates
- WLED UI integration
2026-01-30 17:35:59 +02:00