From 28c4438ad90ef736ac9c3a6995a370d9234eefc2 Mon Sep 17 00:00:00 2001 From: ulimaass <> Date: Thu, 12 Apr 2012 16:41:58 +0000 Subject: [PATCH] floorplan moved from contrib/95_FLOORPLAN into webfrontend/pgm2 git-svn-id: https://svn.fhem.de/fhem/trunk@1441 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm2/95_FLOORPLAN.pm | 611 ++++++++++++++++++++++++++ 1 file changed, 611 insertions(+) create mode 100644 fhem/webfrontend/pgm2/95_FLOORPLAN.pm diff --git a/fhem/webfrontend/pgm2/95_FLOORPLAN.pm b/fhem/webfrontend/pgm2/95_FLOORPLAN.pm new file mode 100644 index 000000000..ada1463f3 --- /dev/null +++ b/fhem/webfrontend/pgm2/95_FLOORPLAN.pm @@ -0,0 +1,611 @@ +################################################################################ +# 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) +# +################################################################ +# +# 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_ ,,