Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.93k stars 3.22k forks source link

How to properly add a custom usermod #2659

Closed zettseb closed 2 years ago

zettseb commented 2 years ago

Hi, thanks first for your great work! I am trying heavily to bring a custom usermod to my WLED compile on ESP2866 (via PlatformIO and Visual Studio Code), so far without success... Can you maybe help me here?

I have added my usermod file to a separate folder in the usermod directory. Then I added the usermod specification in both places in wled00/usermods_list.cpp, as described.

Finally, I copied the d1_mini environment to the platformio_override and added build_flags = ... -D MY_USERMOD lib_deps = ... ESP8266HTTPClient (the latter being required for my usermod, otherwise I get a compilation error).

Now I am able to compile, and WLED is running on my ESP2866, but the usermods section in the GUI still says "Usermods configuration not found." :(

Can someone help me? Probably I am doing some stupid mistake, but unfortunately I couldn't find better help regarding my question after 4 hours of research...

zettseb commented 2 years ago

posted in WLED forum (https://wled.discourse.group/t/how-to-properly-add-a-custom-usermod-usermods-configuration-not-found/5323)