As I wanted to get my hands dirty with the web interface code (not the HTML ; but the .cpp) and compile it, I did have some small troubles setting up a dev environment.
I took some notes, and reworked a little the file layout of the main git (https://github.com/jsphuebner/esp8266-web-interface) to make it a little bit easier to build using the Arduino IDE.
I wanted to share this to gather feedback, and see if this could be useful to somebody out there. And if johu is OK with the direction it take I'll happily send PRs to apply to the main git.
See it here https://github.com/llange/esp8266-web-i ... -mdns-name
It's mostly release engineering (no new or visible features and there should be no regression), you can see the differences here https://github.com/jsphuebner/esp8266-w ... -mdns-name :
- Change the layout so that Code and Data are untangled. This helps building the filesystem without having to move the files. It'll mostly benefits newcomers (as experienced users already have their own approach to that)
- Update the README, add some documentation around Arduino IDE : first time setup and day to day usage
- Add support for PlatformIO dev environment (project files + documentation)
- Fix mDNS registration of the board so that it appears at inverter.local as expected
- Publish the Web Server (port 80) on mDNS
- Using github actions workflow to build a new release at each compile / branch / tag and publish it ready to download on GitHub
- Migrate the filesystem to LittleFS to get rid of the warnings if people find it worthy (SPIFFS is deprecated - works fine but will certainly stop being available at some point)
- Store the git version / tag / ... during the build phase (as a define) and find a way to display it somewhere on the interface
Thanks for whatever feedback you want to share !