maakbaas / esp8266-iot-framework

Framework for IoT projects implementing HTTPS requests, a React web interface, WiFi manager, live dashboard, configuration manager, file manager and OTA updates.
GNU General Public License v3.0
418 stars 113 forks source link

Enhancement: Adding "label" in dashboard #148

Closed Eisbaeeer closed 2 years ago

Eisbaeeer commented 2 years ago

Nice to have is a "label" field in dashboard. I tried it, but the framework will be getting unstable, if "label" will be used in dashboard.

@maakbaas : Your framework is more than great! You are the only one who created such like this. Many thanks for your work! I hope really to get it running on ESP32, too. The separator and title is an other thing who will be great for that framework. I think it will be easy for you to realize. I wish I´m better in react. Greets Eisbaeeer

maakbaas commented 2 years ago

The fields below can be used for purposes of the HTML page (both in configuration.json and dashboard.json) and will have no functional impact:

{
    "type": "separator"
},
{
    "type": "header",
    "text": "Header text here"
},
{
    "type": "label",
    "text": "Label text here"
},
Eisbaeeer commented 2 years ago

Tried, but does not work. Also set '-DREBUILD_HTML'

maakbaas commented 2 years ago

What do you run into? You also set -DREBUILD_DASHBOARD or -DREBUILD_CONFIG?

Eisbaeeer commented 2 years ago

You saved my day! -DREBUILD_DASHBOARD and -DREBUILD_CONFIG do the job. Now it is working!