From 309f227722c3da02844bfdec22c1ab5499f1ace3 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 11 Feb 2020 17:26:59 +0000 Subject: [PATCH] 57_SSCal: contrib 1.8.0 git-svn-id: https://svn.fhem.de/fhem/trunk@21178 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/57_SSCal.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/DS_Starter/57_SSCal.pm b/fhem/contrib/DS_Starter/57_SSCal.pm index 924b0c592..f75783fc7 100644 --- a/fhem/contrib/DS_Starter/57_SSCal.pm +++ b/fhem/contrib/DS_Starter/57_SSCal.pm @@ -175,7 +175,7 @@ sub SSCal_Initialize($) { "showPassInLog:1,0 ". "tableInDetail:0,1 ". "tableInRoom:0,1 ". - "tableFields:multiple-strict,Begin,End,Summary,Status,Location,Description,Map,Calendar,Completion,Timezone,DaysLeft,EventId ". + "tableFields:multiple-strict,Begin,End,DaysLeft,Timezone,Summary,Description,Status,Completion,Location,Map,Calendar,EventId ". "timeout ". "usedCalendars:--wait#for#Calendar#list-- ". $readingFnAttributes; @@ -3363,14 +3363,18 @@ sub SSCal_calAsHtml($;$) { if ($mi eq "icon") { # Karten-Icon auswählen my $di = "it_i-net"; - my $ui = SSCal_evalTableSpecs ($hash,$di,$hash->{HELPER}{tableSpecs}{columnMapIcon},$bnr); - $micon = FW_makeImage($ui); + my $ui = SSCal_evalTableSpecs ($hash,$di,$hash->{HELPER}{tableSpecs}{columnMapIcon},$bnr,@allrds); + if($ui =~ /{HELPER}{tableSpecs}{columnMapText},$bnr); + $micon = SSCal_evalTableSpecs ($hash,$dt,$hash->{HELPER}{tableSpecs}{columnMapText},$bnr,@allrds); } else { $micon = ""; } @@ -3380,7 +3384,7 @@ sub SSCal_calAsHtml($;$) { $lng = (split("=", $lng))[1]; # Kartenanbieter auswählen - my $up = SSCal_evalTableSpecs ($hash,"",$hash->{HELPER}{tableSpecs}{columnMapProvider},$bnr); + my $up = SSCal_evalTableSpecs ($hash,"",$hash->{HELPER}{tableSpecs}{columnMapProvider},$bnr,@allrds); if ($up eq "GoogleMaps") { # Kartenprovider: Google Maps $gps = " $micon "; } elsif ($up eq "OpenStreetMap") {