Hard coding segments

I am trying to hardcore segments.
I want to have predefined segments and can not be edited or deleted.

Can someone help with that?

Not sure if that is possible at all in WLED.

The closest I can think of would be to program WLED up the way you want it and then disable or set the WiFi to an unknown or “hidden” value.
Essentially you would make it impossible to program and/or change anything in the setup.

Not sure how helpful that might be.
What is your use case for this?

Not possible without heavy modifications.

Its gonna be a product with multiple parts or sections. So i still need the access to the wled for color changing and effects.
The user will see the predefined parts. And can add more of their own

I am willing to do the heavy modifications. I just need to understand the logic of the code. I have reached to it. It is called makeSeg() in the jason.js file. I have tried to fiddle with it. But it seems there is another code somewhere thats blocking the new changes. As the html refreshes with the new adjustments and then removed it immediately.

Lets say i ran the wled on my eps32. I set the segments as i want.
Is there a way to edit the html file that is already on the esp32?
That way i can just disable the edit fields or remove them.

Yes if you go to http://ip/edit you can edit the raw JSON

I am not providing help for commercial products. Sorry.

I appreciate your honesty. And i understand your concern.
But I am not planning to remove the wled branding from it. And hopefully if the product saw success i will be donating.
And of course the modified code will be uploaded.
I am not planning to be taking without giving back

Sorry i have not noticed that you are one of the programmers.
Maybe if you would like we can make a deal if you are willing to communicate

I have no issues with commercial use of WLED but if you intend to modify it (regardless of branding included or not) for your particular needs you will need to delve into the code yourself or find someone else as I don’t do paid work for WLED.

If your product succeeds (and I hope it does) I hope you’ll keep your word. :wink:

Consider that I am donating every day (in the form of hours spent; for people like you to earn some money if they can) without expecting anything in return.

3 Likes