-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give webui a title and make it configurable #36
Comments
Yes! exactly 👍
I'm still thinking on how to order. But, I think, first of all, could be making everything centered on the page and be able of changing the order with an index or with the order you register them, like: (1) Title of the page (2) a Label (like Physical Address config) (4) Separator (a line) (5) Group Address to Write to (config_register_ga) (8) Group Address to Read From (callback_register) (9) Feedbacks buttons can be configured to run a callback, so there is no need to config on esp-knx-ip-webserver.cpp the buttons REBOOT, EEPROM SAVE, EEPROM RESTORE, etc. What do you think? |
Still Thinking... What about that the order of elements on the webpage be just the ID, so they will show up in the same order you register them on the main application? |
This is not easily possible. Callbacks can try to read data from the packet. So there are two options:
There already exists the possiblity to add buttons via
They actually are displayed in the order they are registered, just grouped by type/category. Feedback items first, then assigned callbacks + callback assign form, then all config options and lastly the buttons. Order of items is registration order in their respective categories. |
Hi I made the following picture + code as an example of the idea to use the full library with webserver on other proyects like Tasmota. I know that for supporting this, some features should be added to the actual routines of the library, but I think that is going to solve #36, #37, #38, #14, #4. These are just ideas and I would like to discuss them:
Idea on the code to be used on the main program to generate that configuration page:
|
What do you think of the above approach? In which: Everything is shown in the order where the functions xxxx_register_xxxx where used. New functions:
Modification to functions:
|
I currently don't have the time to take a look at this. I'll come back in 2-3 weeks. |
Don't worry. I think I will simplify a little more this ideas and we can
take a look at this later.
El 14 mar. 2018 18:17, "Nico Weichbrodt" <[email protected]>
escribió:
… I currently don't have the time to take a look at this. I'll come back in
2-3 weeks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Ahw-h61_Mo2YbLZPX1yw3JCEripWCA_Vks5teYj1gaJpZM4SjTKI>
.
|
Hi @envy , First of all, thanks a lot for your time and patience! What do you think of this simpified approach (following graph): With the translations done by
So, the code for making that Webpage:
So, as a summary, the modifications proposed are: Add web_ui_config functions for:
Modifications to actual functions:
Add new functions:
So, what do you think? Please, let me know where I can help you. |
No description provided.
The text was updated successfully, but these errors were encountered: