Page 1 of 1

Mega web GUI

Posted: 04 Feb 2019, 06:57
by rayE
Hi All,
I need some advice on making changes to WebServer.ino so that the web GUI ONLY displays the "Config" page, all other menu buttons are not shown as i do not want users to mess around with the units settings. Any pointers to this are most welcome :-)

Regards
Ray

Re: Mega web GUI

Posted: 04 Feb 2019, 07:13
by grovkillen
Remove all other URL responses. Search through the source for those.

Re: Mega web GUI

Posted: 04 Feb 2019, 07:17
by rayE
Many thanks, ill take a look.

Re: Mega web GUI

Posted: 04 Feb 2019, 07:40
by rayE
So i can just comment out the menu items i do not need here?
else if (varName == F("menu"))
{
static const __FlashStringHelper* gpMenu[8][3] = {
// See https://github.com/letscontrolit/ESPEasy/issues/1650
// Icon, Full width label, URL
F("⌂"), F("Main"), F("/"), //0
F("⚙"), F("Config"), F("/config"), //1
F("💬"), F("Controllers"), F("/controllers"), //2
F("📌"), F("Hardware"), F("/hardware"), //3
F("🔌"), F("Devices"), F("/devices"), //4
F("⧴"), F("Rules"), F("/rules"), //5
F("✉"), F("Notifications"), F("/notifications"), //6
F("🔧"), F("Tools"), F("/tools"), //7
};

Re: Mega web GUI

Posted: 04 Feb 2019, 07:46
by grovkillen
Yes that should do it... but you might want to update the HTML to not show those tabs in the GUI just to not confuse anyone.

Re: Mega web GUI

Posted: 04 Feb 2019, 07:57
by rayE
Got it! Ill make a donation in the near future to you guys toward your continuing work on this excellent project.
Keep up the good work and Many thanks