From 1f9b1ac4b1a3d9801f58b6bc3d0f0c67cbac5379 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 26 Aug 2013 12:19:39 +0000 Subject: [PATCH] docu fix git-svn-id: https://svn.fhem.de/fhem/trunk@3792 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 0ecffff4e..e448caea0 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -141,7 +141,7 @@ readingsGroup_2html($) my $name = $h->{NAME}; next if( !$h ); - if( $regex =~ m/\+(.*)/ ) { + if( $regex && $regex =~ m/\+(.*)/ ) { $regex = $1; my $now = gettimeofday(); @@ -243,7 +243,7 @@ readingsGroup_2html($) $m =~ s/\%ALIAS/$a/g; } - $ret .= "
$m
"; + $ret .= "
$m
"; $ret .= "
$v
"; $ret .= "
$t
" if( $show_time ); } @@ -430,7 +430,7 @@ readingsGroup_Get($@) Can be a simple string or a perl expression enclosed in {} that returns a hash that maps reading names to the displayed name. The keys can be either the name of the reading or <device>.<reading>. %DEVICE, %ALIAS and %READING are replaced by the device name, device alias and reading name respectively, e.g:
- attr temperatures mapping %READING in %ALIAS + attr temperatures mapping %DEVICE-%READING attr temperatures mapping {temperature => "%DEVICE Temperatur"}
  • separator
    @@ -453,7 +453,8 @@ readingsGroup_Get($@) attr temperatures valueStyle {($DEVICE =~ m/aussen/)?'style="color:green"':'style="color:red"'} Note: The perl expressions are evaluated only once during html creation and will not reflect value updates with longpoll. - Refresh the page to update the dynamic style. + Refresh the page to update the dynamic style. For nameStyle the collor attribut is not working at the moment, + font-... and background do work.