From 72cbf176fb6af135e310ee6bf8108488e963455a Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 1 Jun 2021 06:40:45 +0000 Subject: [PATCH] 76_Solarforcast: contrib 0.49.3 git-svn-id: https://svn.fhem.de/fhem/trunk@24554 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 05d845caf..cd0184ea5 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -3609,8 +3609,8 @@ sub forecastGraphic { ## no critic 'complexity' ########################## my $day; - my $t = NexthoursVal ($hash, "NextHour00", "starttime", '0000-00-00 24'); - my (undef,undef,$day_str,$thishour) = $t =~ m/(\d{4})-(\d{2})-(\d{2})\s(\d{2})/x; + my $t = NexthoursVal ($hash, "NextHour00", "starttime", '0000-00-00 24'); + my ($year,$month,$day_str,$thishour) = $t =~ m/(\d{4})-(\d{2})-(\d{2})\s(\d{2})/x; $thishour++; @@ -3621,8 +3621,7 @@ sub forecastGraphic { ## no critic 'complexity' $hfcg->{0}{day_str} = $day_str; $day = int($day_str); $hfcg->{0}{day} = $day; - # $hfcg->{0}{mktime} = fhemTimeLocal(0,0,$thishour,$day,int($month)-1,$year-1900); <-falsch !! - $hfcg->{0}{mktime} = timestringToTimestamp ($t); # gleich die Unix Zeit dazu holen + $hfcg->{0}{mktime} = fhemTimeLocal(0,0,$thishour,$day,int($month)-1,$year-1900); # gleich die Unix Zeit dazu holen my $val1 = 0; my $val2 = 0;