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