This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Soft buttons (on web page)
#4
(2017-02-17, 02:28 PM)Saqqara Wrote: Wow... that's excellent. I was thinking of it as output only and I hadn't had a chance to dig into it.

So yesterday I installed it on my office PC and found a pretense to use it for a work related dashboard. Very cool. 

Yes, this is the way forward, for so many things!

This is a flow I use to shutdown, it closes opencpn hopefully saving any routes/tracks first then shuts down the Pi..

Hope this might be of use:


Code:
[{"id":"aebc54b0.f35f08","type":"inject","z":"a1ba0b6c.b93d98","name":"shutdown!","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":136.00003051757812,"y":1272,"wires":[["deaaaa5f.9d7048"]]},{"id":"deaaaa5f.9d7048","type":"exec","z":"a1ba0b6c.b93d98","command":"killall -s TERM opencpn ","addpay":false,"append":"","useSpawn":"","timer":"","name":"Shutdown Opencpn","x":347.0000305175781,"y":1306.9999694824219,"wires":[[],["2f9c2c03.3c0024"],[]]},{"id":"2f9c2c03.3c0024","type":"delay","z":"a1ba0b6c.b93d98","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":501.0000305175781,"y":1267,"wires":[["68d1ee59.5575"]]},{"id":"b96ce45d.65ae48","type":"ui_button","z":"a1ba0b6c.b93d98","name":"shutdown","group":"8861c889.240108","order":8,"width":0,"height":0,"label":"Shutdown!","color":"red","icon":"","payload":"","payloadType":"date","topic":"","x":147.00003051757812,"y":1193.9999694824219,"wires":[["deaaaa5f.9d7048"]]},{"id":"68d1ee59.5575","type":"exec","z":"a1ba0b6c.b93d98","command":"sudo shutdown -h now","addpay":true,"append":"","useSpawn":"","timer":"","name":"Shutdown Pi","x":617.0000305175781,"y":1311.4999694824219,"wires":[[],[],[]]},{"id":"8861c889.240108","type":"ui_group","z":"","name":"Temperature gauges","tab":"aeffa403.23f5f8","disp":true,"width":"19"},{"id":"aeffa403.23f5f8","type":"ui_tab","z":"","name":"Gauges","icon":"dashboard","order":1}]
Reply


Messages In This Thread
Soft buttons (on web page) - by Saqqara - 2017-02-10, 07:48 PM
RE: Soft buttons (on web page) - by gniersma - 2017-02-16, 09:30 PM
RE: Soft buttons (on web page) - by Saqqara - 2017-02-17, 02:28 PM
RE: Soft buttons (on web page) - by PaddyB - 2017-03-09, 04:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)