Closed JonnyTech closed 5 months ago
@JonnyTech There was a change in 15 for ui build which is automated now
You can look at the source here https://github.com/Aircoookie/WLED/tree/0_15 with the changes , if you compile that it will work , I do not compile on VSC but only on github
Thanks for your reply. Sorry, I am not a developer and was just following instructions the compiling guide.
So the section is there in platformio.ini
:
[scripts_defaults]
extra_scripts =
pre:pio-scripts/set_version.py
post:pio-scripts/output_bins.py
post:pio-scripts/strip-floats.py
pre:pio-scripts/user_config_copy.py
pre:pio-scripts/build_ui.py
Do I need to change it for compilation to succeed?
Should I be using something else to compile locally?
Looking through the rest of the documentation, I found this:
https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#changing-web-ui
Changing Web UI
In order to conserve space, the Web UI interface is represented as a series of wled00/html_ui.h, wled00/html_settings.h and wled00/html_other.h files which contain C/C++ strings with specific parts of the Web UI.
These files are automatically created from source files available in wled00/data folder. To generate files, install [NodeJS 11.0+](https://nodejs.org/en/download/) globally. After that, recreate html_*.h files by running in the repo directory:
> npm install
> npm run build
After running those two commands, it now compiles correctly.
When I have a moment, I shall create a PR for the documentation.
Wiki is no longer used.
Wiki is no longer used.
Thanks @blazoncek.
Yes, indeed, as stated in my first post, the guide was not on the wiki:
https://kno.wled.ge/advanced/compiling-wled/
But the tip to execute the npm
commands was found on the wiki.
npm install
is the last item in the "Preparation" section on https://kno.wled.ge/advanced/compiling-wled/
Perhaps it is a bit easy to miss, and I would love for npm to run install automatically on first build in a fresh environment, so that step can be omitted. Maybe I can figure something out.
Thanks @Aircoookie - my bad, I completely missed it.
While you are here, the reason that I am trying to recompile WLED is so that I can adapt the serial API to accept cfg JSON so that I can change the IP address. Is this possible at all?
What happened?
Tring to build WLED-0_15 terminates with an error
wled00/wled_server.cpp:3:21: fatal error: html_ui.h: No such file or directory
To Reproduce Bug
Open source folder in VS Code Open
platformio.ini
Modify for required env:Click build Wait for error
Expected Behavior
Compilation should complete correctly as per instructions at https://kno.wled.ge/advanced/compiling-wled/
Install Method
Self-Compiled
What version of WLED?
v0.15.0-b3
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
Anything else?
This builds correctly: Build 2404040 WLED 0.14.3 release
Code of Conduct