Mega web GUI

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rayE
Normal user
Posts: 144
Joined: 12 Oct 2017, 12:53
Location: Philippines

Mega web GUI

#1 Post by rayE » 04 Feb 2019, 06:57

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Mega web GUI

#2 Post by grovkillen » 04 Feb 2019, 07:13

Remove all other URL responses. Search through the source for those.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

rayE
Normal user
Posts: 144
Joined: 12 Oct 2017, 12:53
Location: Philippines

Re: Mega web GUI

#3 Post by rayE » 04 Feb 2019, 07:17

Many thanks, ill take a look.

rayE
Normal user
Posts: 144
Joined: 12 Oct 2017, 12:53
Location: Philippines

Re: Mega web GUI

#4 Post by rayE » 04 Feb 2019, 07:40

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
};

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Mega web GUI

#5 Post by grovkillen » 04 Feb 2019, 07:46

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.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

rayE
Normal user
Posts: 144
Joined: 12 Oct 2017, 12:53
Location: Philippines

Re: Mega web GUI

#6 Post by rayE » 04 Feb 2019, 07:57

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

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests