The "Tcl" program.
I used Tcl/Tk for the GUI. By using Tcl/Tk, I could use the same
code for either a linux box on my network, or my android phone using the Androwish package. I looked at
creating an app from scratch for android, but way too much work. I found androwish by accident while
googling and found it perfect for my application. The base androwish is pretty big, but once it is
installed on the phone, it is possible to add additional apps using minimal space. The great thing
about this approach is you can very quickly verify changes to the GUI on the linux box and once you
have it the way you want, you can push it to the phone and have the same look and feel. Very cool.
Picture of display
Upon launch, the GUI displays the current status as well as last event.
Using the buttons, the door light can be switched on or off, the door can be opened or
closed, and finally the door power can be enabled or disabled. Lastly, by clicking the
Update button, status can be queried immediately. If the code detects it is running
on a phone, and the phone is not connected via wifi, the update interval is 1 hour.
As always if you opt to allow for internet access, add an authentication method.
|
©2016 Stabie-Soft, Inc. All Rights Reserved.