i have a “little” project where i need to flash around 200 d1 mini with wled.
To upload a config manualy via wifi is not a viable option due to the time it would take.
Is there an option to flash the firmware preconfigured?
A) Load cfg.json and preset.json with curl :
e.g curl -F "data=@cfg.json" 10.0.6.70/upload
note that wled would auto reboot once you upload cfg.json , you could easily script that with a loop same as it is done in this script WLED/tools/multi-update.sh at 0_15 · Aircoookie/WLED · GitHub
B) Configure one unit and clone it with esptool and then flash other units with serial ( OTA will not work with a dump from esptool)
C) Build your own fs , this is a bit involved and not my favorite option , please visit discord if you need more info on that .
Just a note in all the options you might want to download cfg.json and edit it to remove all device dependent (or unnecessary) keys from it ( this note is quote from wled dev but will reduce your headache afterword ) . Cheers