################################################################################ # 95 FLOORPLAN # $Id$ # Feedback: http://groups.google.com/group/fhem-users # Define Custom Floorplans # Released : 26.02.2012 # Version : 2.0 # 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) # 0017: updating for changes in fhemweb: css-path, bgimg-path, deactivating rereadicons (July 30, 2012) # 0018: Changes by Boris (icon-paths, fp_stylesheetPrefix -> stylesheet # 0019: added fp_backgroundimg (October 15, 2012) # 0020: moved creation of userattr to define, added slider and timepicker and setList, added style5 icon+commands, added style 6 readingstimestamp, # added style-descriptions in fp-arrange (October 22, 2012) # 0021: fixed http-header, unsetting FF-autocomplete, added attribute fp_setbutton (fixes by Matthias) (November 23, 2012) # 0022: longpoll by Matthias Gehre (November 27, 2012) # 0023: longpoll updates readings also - by Matthias Gehre; FW_longpoll is now a global variable (January 21, 2013) # ################################################################ # # Copyright notice # # (c) 2012-2013 Copyright: Ulrich Maass # # This file is part of fhem. # # Fhem 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. # # Fhem 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. # # You should have received a copy of the GNU General Public License # along with fhem. If not, see . # ################################################################################ # 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_ ,,