Skip to content

Conversation

@ohAnd
Copy link
Owner

@ohAnd ohAnd commented Aug 3, 2025

This pull request introduces several updates, focusing on enhancing the captive portal functionality, improving web server performance, updating warning list, and refining documentation. Key changes include the addition of universal captive portal detection, serving static web assets from PROGMEM for efficiency, and updating version information across files. Below is a categorized summary of the most important changes:

Captive Portal Enhancements:

  • Implemented universal captive portal detection with support for Android, iOS, Windows, and macOS. Added redirects for various platform-specific endpoints such as /generate_204, /connecttest.txt, and /hotspot-detect.html to ensure seamless configuration page access. (src/base/webserver.cpp, src/base/webserver.cppR104-R181)
  • Updated the README to highlight the new captive portal functionality, including automatic detection and manual fallback options for various platforms. (readme.md, [1] [2] [3]

Web Server Improvements:

  • Replaced the use of LittleFS for serving static files with direct serving from PROGMEM, improving memory usage and caching capabilities. Added caching headers for JavaScript and CSS files. (src/base/webserver.cpp, src/base/webserver.cppL42-R72)
  • Updated the handling of the main configuration page (index.html) to prevent caching and ensure users always see the latest version. (src/base/webserver.cpp, src/base/webserver.cppL42-R72)

DTU Warnings Update

  • add warning codes in DTUInterface for improved clarity and compatibility - closes #105 - thanks to @chrisr79

Documentation Updates:

  • Added new sections in the README to describe the zero-configuration setup and universal captive portal features, emphasizing cross-platform compatibility and user-friendly setup. (readme.md, [1] [2]
  • Updated examples and descriptions for improved clarity, including renaming variables for consistency (e.g., inverter_PV1_U to inverterPV1_U). (readme.md, readme.mdL494-R528)

Partitioning and Build Configuration:

  • Introduced a custom partition table (custom_partitions.csv) to define memory layout for the firmware, replacing the previous min_spiffs.csv. Updated platformio.ini to use the new partition table. (custom_partitions.csv, [1]; platformio.ini, [2]

These updates improve the user experience, optimize system performance, and ensure compatibility across devices, making the setup process more intuitive and efficient.

@ohAnd ohAnd merged commit 78e9d85 into main Aug 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Alarmlist (dtu Warnings)

2 participants