Recognize the blue box? It's got a bunch of debug on it from me hooking in the Acid Pump, but that particular piece doesn't work yet since it's XBee controlled. It's actually pretty easy to hide things in web pages, so I may hide it and put a button up to show it when needed. There's actually no limit to what kinds of things I can do now that I have a real web server running to present the data.
I still haven't settled on the entire architecture. I have a background process that collects data from around the house and shoves it into a database. Then the web page interacts with a php file to suck the data back out. All the buttons connect to another php file that translates the clicks into commands that are tailored for each particular device since they are all different from each other. Yes, I screwed up and made them different. But as I went along, I learned things and did them differently as each new device came online. Actually, the separation from data display and command makes it easier to add in a device. I construct a basic page, implement the commands, and go back and play with presentation. Since presentation is a never ending task, it's nice to have it isolated.
No comments:
Post a Comment