From 6481da192aa7b06e6858ebe1c04f2c4fe955c84d Mon Sep 17 00:00:00 2001 From: chris1284 <> Date: Wed, 28 Dec 2016 17:43:04 +0000 Subject: [PATCH] 57_CALVIEW.pm: -new function age calculation -new reading for description of terms git-svn-id: https://svn.fhem.de/fhem/trunk@12901 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/57_CALVIEW.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/57_CALVIEW.pm b/fhem/FHEM/57_CALVIEW.pm index 94daf4a78..306521206 100644 --- a/fhem/FHEM/57_CALVIEW.pm +++ b/fhem/FHEM/57_CALVIEW.pm @@ -136,7 +136,7 @@ sub CALVIEW_GetUpdate($){ @termyear = split(/\./,$termin->{bdate}); if($yobfield eq "_location" && length($termin->{location}) > 0 && $termin->{location}=~ /^\d+$/ ) { $age = $termyear[2] - ($termin->{location});} elsif($yobfield eq "_description" && length($termin->{description}) > 0 && $termin->{description}=~ /^\d+$/) { $age = $termyear[2] - ($termin->{description});} - else {$age = "no calculation passible"} + else {$age = " "} } #standard reading t_[3steliger counter] anlegen if($isbday == 1 ){ readingsBulkUpdate($hash, "t_".sprintf ('%03d', $counter)."_age", $age);}