From: Neil C. <nc...@li...> - 2010-12-13 00:26:23
|
On 12/12/2010 06:04 PM, Thomas Paine wrote: > I'm not using it but I sure would like to. I just don't understand how to code it in yet. Ah, well I've taken care of that by updating the documentation on the Wiki! :-) I couldn't figure out how to use it either. http://misterhouse.wikispaces.com/Floor+Plan The good news is that the HTML and the SVG versions of Floor Plan use the same setup. I might suggest that you use the following files to replace the existing floor plan files: <http://ushomeautomation.com/Projects/DollHouse/code/read_table_A.pl> <http://ushomeautomation.com/Projects/DollHouse/code/floorplan.pl> <http://ushomeautomation.com/Projects/DollHouse/code/floorplan_SVG.pl> The floor plan files go into your ~mh/web/bin directory and the read table file goes into the ~mh/lib/ directory. Backup the original versions before hand and be careful with svn updates. One of the new things I've added to the read table file is the CODE type. It allows me to do stuff like this: (items.mht file) X10I, M9, GarageDoorLamp, M|Porch(28;2), myPLM CODE, $GarageDoorLamp->set_fp_icons(on => 'fp-ds10-on.png', off => 'fp-ds10-off.png'); This allows me to assign icons to the device states. I can also do this: GROUP, Gar, Property(40;10;10;24) CODE, $Gar->{title} = "Garage and workshop"; What this does is to allow the Garage to display: Garage and workshop when you hover of the Garage (only in the SVG version). The reason I haven't checked these in yet is that I'm not certain I want this (it could be really annoying) or I might come up with a better way to deal with this. Remember, this works best with Firefox. So far IE, Safari and Opera have problems with the floor plan software. Thoughts? -- Linux Home Automation Neil Cherry nc...@li... http://www.linuxha.com/ Main site http://linuxha.blogspot.com/ My HA Blog Author of: Linux Smart Homes For Dummies |