From: Marc M. <ma...@me...> - 2009-08-04 01:13:27
|
Howdy again, Ok, so I got both web interfaces working, fixed a few bugs in them and made sure they worked with multiple thermostats, as well as improved them a bit. For now, it's here: http://misterhouse.wikispaces.com/hai_stats http://misterhouse.wikispaces.com/file/view/hai_mh_20090803.tar.gz Feel free to fix/upload new/better versions if you have updates within the next month as I won't be around, but code should really get in svn now because I'm sure others can improve on it or fix a possible bug or two I left behind (although I hope I didn't :) ). Oh, I have no idea how to include the menu.html file in my config. Please let me know how I can have the icons show up in my mh config directly :) Changelog: omnistat.pl was changed to create Omnistat objects to make everything else happy (as recommended by Daniel) omnistat_sched_web.pl 2009/08/03 -- merlin - cleanups, added debugging, logging and comments - fixed to support 24H time, like the rest of the world uses :) - added code to report stat not found errors as opposed to outputting perl errors - output the stat type on the screen - fixed to work with more than one thermostat - fixed incorrect perl: $location == $statname should be $location eq $statname omnistat_setup_web.pl 2009/08/03 -- merlin - cleanups, added debugging, logging and comments - added code to report stat not found errors as opposed to outputting perl errors - output the stat type on the screen - fixed to work with more than one thermostat - fixed incorrect perl: $location == $statname should be $location eq $statname - added option to restore setpoints to what's programmed, making use of Daniel's cool function - added option to set/remove hold - reworked gui a bit, including updating the stat as soon as a drop down list is updated (good for the backend, smaller separate updates are better than big ones which can create more of a hang). Omnistat.pm 2009/08/03 - Marc MERLIN ======================== - send_cmd is now a method too so that we can compare the return value against $$self{addr} - improved command ack parsing failure error reporting - oops, got omnistat_log function to actually respect log_level - added omnistat_debug function - hold function now only sets hold if it's different from cached value, this is because we get frequent calls to hold off and want to avoid actually sending them if hold was already off - restore|cool|heat_setpoints now unhold the that before programming it (or it won't work) and then put it back on hold depending on the Omnistat_set_does_not_hold setting in mh.private.ini Hopefully this should be pretty complete now. Hope all 2 or 3 users we have ;-) can benefit from the changes. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |