From 6cee10a3977d8a6b02bbb29bf1904c0410b5004a Mon Sep 17 00:00:00 2001 From: ulimaass Date: Tue, 6 Mar 2012 23:14:15 +0000 Subject: [PATCH] 95_FLOORPLAN.pm Initial publication git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1327 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/95_FLOORPLAN/95_FLOORPLAN.pm | 545 +++++++++++++++++++++++++++ 1 file changed, 545 insertions(+) create mode 100644 contrib/95_FLOORPLAN/95_FLOORPLAN.pm diff --git a/contrib/95_FLOORPLAN/95_FLOORPLAN.pm b/contrib/95_FLOORPLAN/95_FLOORPLAN.pm new file mode 100644 index 000000000..b38791e6c --- /dev/null +++ b/contrib/95_FLOORPLAN/95_FLOORPLAN.pm @@ -0,0 +1,545 @@ +################################################################################ +# 95 FLOORPLAN +# Feedback: http://groups.google.com/group/fhem-users +# Define Custom Floorplans +# Date : 26.02.2012 +# Version : 1.01 +# Revisions: +# 0001: Released +# 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' +# +################################################################ +# +# Copyright notice +# +# (c) 2012 Copyright: Ulrich Maass +# All rights reserved +# +# This script 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. +# A copy is found in the textfile GPL.txt and important notices to the license +# from the author is found in LICENSE.txt distributed with these scripts. +# +# 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_ ,,