2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

57_SSCal: contrib 1.6.1

git-svn-id: https://svn.fhem.de/fhem/trunk@21119 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-02-04 15:35:22 +00:00
parent 7400314daa
commit 7d6838ead4

View File

@ -3242,6 +3242,14 @@ sub SSCal_calAsHtml($) {
$completion = ReadingsVal($name, $prestr."_16_percentComplete", "");
$cal = ReadingsVal($name, $prestr."_90_calName", "");
if($gps) {
my $img = FW_makeImage("it_i-net");
my ($lat,$lng) = split(",", $gps);
$gps = "<a href='https://www.openstreetmap.org/?$lat&$lng&zoom=14' target='_blank'> $img </a>";
#$gps = "<img src=\"$FW_ME/www/images/default/Restart.png\" >";
# $gps = $img;
}
$out .= "<tr class='odd'>";
$out .= "<td class='sscal'> $begin </td>" if($seen{Begin});
$out .= "<td class='sscal'> $end </td>" if($seen{End});