Updated Add own functionality (markdown)

This commit is contained in:
Aircoookie 2020-05-25 18:27:21 +02:00
parent 8c73a85f53
commit 609d1a4ddb
1 changed files with 1 additions and 8 deletions

View File

@ -79,14 +79,7 @@ If you programmed a nice effect you want to share, submit a pull request!
Changes to the embedded web user interface are not convenient. The reason is that the HTML is gzipped and added to the code as a binary array in `html_ui.h` to boost speed and lower flash usage.
If you want to test changes to the UI, it is easiest to work with the local `/wled00/data/index.htm` file. You just need to change a single line to have the local file interface to an ESP with WLED installed. Preview
Change
`url = command ? '/json/state':'/json';` (0.9.1 line 1048, subject to change)
to
`url = command ? 'http://[Your ESP IP address]/json/state':'http://[Your ESP IP address]/json';`
**Important:** Do not forget to change it back before gzipping the UI file! Otherwise it will not work on any other WLED installation with a different IP address.
If you want to test changes to the UI, it is easiest to work with the local `/wled00/data/index.htm` file. You just need to enter the IP address of a WLED 0.10.0 or newer instance into the popup. If you accidentally input an incorrect IP, or want to test with a different instance, clear the local storage (in Chrome: Developer Tools -> Application -> Local Storage)
To serve your changes by the internal webserver, you will need to follow these or similar steps to gzip compress the `index.html` file: