Here is the updated Control Panel:
You will note the separate on/off buttons have been replaced with single sliders with active colours (blue background when "on", grey when "off"). This is much more like the kinds of settings screens you typically see on mobile devices. they are easy to code also: just one line per control in the HTML and mostly one-line calls in Javascript.
I also played around with some of the tiling layout generators, but couldn't find anything that really kept the flexibility across phone/tablet/computer, and was lightweight enough not to take a hit on the performance.
The other differences are all in the Javascript code: I converted all the server calls to jQuery ($.get and $.getJSON). On the server side, all the CGI scripts are in perl or python, depending on the service they are calling - which can be in perl (file I/O), python (lifxlan-master and Honeywell thermostat using therm.py), bash shell (for mochad and curl to web services like IFTTT, openweathermap/Dark Sky).
The big advantage of DIY is seen here - in total there are about 500 lines of code and they run lightning-fast. It is clean and simple, has a common look-and-feel across all platforms , and when someone opens the front door, I get notifications on 7 different platforms (X10 devices, linphone, SSH, Google mail, IFTTT Maker, lifx, and notify-my-android).
No comments:
Post a Comment