################################################################################ # 95 FLOORPLAN # Feedback: http://groups.google.com/group/fhem-users # Define Custom Floorplans # Released : 26.02.2012 # Version : 1.01 # Revisions: # 0001: Released to testers # 0002: use local FP_select and FP_submit after clash with FHEMWEB update # 0003: FP_arrange_default repaired # 0004: WebApp-enabled links in floorplanlist, fixed message 'use of uninitialized value' (FW_pO - $FP_name) # 0005: Change arrange-mode: When selected, display device-name instead of selection # 0006: kicked out various routines previously copied from FHEMWEB - now using FW_*-versions thanks to addtl. global variables $FW_RET, $FW_wname, $FW_subdir, %FW_pos # 0007: Added fp_default # 0008: Changed name of background-picture from to fp_ to avoid display of picture in device-list at fhem-menu 'Everything' # -> general release # 0009: updated selection of add-device-list: suppress CUL$ only (instead of CUL.*) # 0010: Added Style3, fp_stylesheetPrefix, fp_noMenu (Mar 13, 2012) # 0011: Added Style4, code beautification, css review, minor $text2-fix (SVN 1342) # 0012: Added startscreen-text when no floorplans defined, fixed startscreen-stylesheet, added div for bg-img, added arrangeByMouse (1368) # 0013: implemented redirectCmd, fixed minor -error in html-output, fp_arrange for single web-devices, fp_arrange detail (Mar 23, 2012) # 0014: deleted $data{FWEXT}{$fhem_url}{STYLESHEET} , added attr-values for FHEMWEB-detail-screen, adapted FHT-representation to FHT.pm updates (Apr 19, 2012) # 0015: implemented Tobias' icon subfolder solution, fp_arrange detail always (fp_arrange detail deprecated, fp_arrange 1 shows all detail), # changed backimg-size to 99% to avoid scrollbars , adopted slider & new FHT representation (May 1, 2012) # 0016: Minor repair of html-output, allowed devices with dot in name (May 2, 2012) # ################################################################ # # Copyright notice # # (c) 2012 Copyright: Ulrich Maass # All rights reserved # # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # The GNU General Public License can be found at # http://www.gnu.org/copyleft/gpl.html. # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # ################################################################################ # Usage # define FLOORPLAN # # Step-by-Step HowTo - mind all is case sensitive: # Step 1: # define FLOORPLAN # Example: define Groundfloor FLOORPLAN # # Step 2: # store picture fp_.png in your modpath. This will be used as background-picture. # Example: fhem/FHEM/Groundfloor.png # # Step 3: # Activate 'Arrange-Mode' to have user-friendly fields to move items: # attr fp_arrange 1 # Delete this attribute when you're done with setup # To make objects display, they will thereby get assigned # attr fp_ ,,