ESP Easy local control buttons missing?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
FanOfHue
Normal user
Posts: 96
Joined: 06 Oct 2018, 10:08

ESP Easy local control buttons missing?

#1 Post by FanOfHue » 21 Dec 2018, 12:31

Just want to turn on a local gpio pin using the webgui, but don't know how to do so.
Is this option missing be design or did i miss something?

I've updated the MessageBus plugin to take over root page control by adding a rule to redirect the main page.
Also added options to add buttons to the main page to control local GPIO pins or likely other stuff in the future.

Using these rules:

Code: Select all

on System#Boot do
  webrootredirect
endon

on D_On do
  gpio,12,1
endon

on D_Off do
  gpio,12,0
endon

on * do
  webprint
  webprint <H1>Power: [plugin#gpio#pinstate#12]</H1>
  webbutton button-link;?cmd=event,D_On;On
  webbutton button-link;?cmd=event,D_Off;Off
endon
does this:
RootWebNew.png
RootWebNew.png (16.64 KiB) Viewed 2963 times
Attachments
_P253_MSGBus.zip
(4.7 KiB) Downloaded 187 times

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

Re: ESP Easy local control buttons missing?

#2 Post by grovkillen » 21 Dec 2018, 13:35

You should then assign a HTTP url to those buttons directing them to the IP of "self".
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:

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: ESP Easy local control buttons missing?

#3 Post by iron » 26 Dec 2018, 11:04

Would be a good idea (if not a necessity) to have a redirect url/file in the options. (e.g /dashboard.esp)

This way a "customer / third party" would get to see the custom web page with the info that is relevant to them when calling the IP, instead of the main page.

-D
-D

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

Re: ESP Easy local control buttons missing?

#4 Post by grovkillen » 26 Dec 2018, 12:07

iron wrote: 26 Dec 2018, 11:04 Would be a good idea (if not a necessity) to have a redirect url/file in the options. (e.g /dashboard.esp)

This way a "customer / third party" would get to see the custom web page with the info that is relevant to them when calling the IP, instead of the main page.

-D
We have big plans for the GUI so we're not adding anything (big) to the GUI until then. I hope you understand ;)
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:

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: ESP Easy local control buttons missing?

#5 Post by iron » 26 Dec 2018, 12:10

LIKE !!!
-D

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 44 guests