FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Thema gestartet von: hyper2910 am 22 April 2015, 09:11:54

Titel: fehler in CAL Modul
Beitrag von: hyper2910 am 22 April 2015, 09:11:54
Hallo,


seit heute finde ich im Log folgendes:   Kann mir jemand sagen woran das liegt?

"my" variable $sec masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $min masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $hour masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $mday masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $mon masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $year masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $wday masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $yday masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.
"my" variable $isdst masks earlier declaration in same scope at ./FHEM/57_CALVIEW.pm line 84, <> line 18.



Titel: Antw:fehler in CAL Modul
Beitrag von: JoWiemann am 22 April 2015, 10:19:53
Hallo,

liegt wohl daran:


81 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); # erste Deklaration ?!
82 $year += 1900; $mon += 1;
83 my $date = sprintf('%02d.%02d.%04d', $mday, $mon, $year);
84 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time + 86400); # Deklaration wird wiederholt ?!



Grüße Jörg
Titel: Antw:fehler in CAL Modul
Beitrag von: hyper2910 am 23 April 2015, 09:07:47
Danke, und wie behebt man das?
Titel: Antw:fehler in CAL Modul
Beitrag von: JoWiemann am 23 April 2015, 11:28:42
Muss sich der Maintainer drum kümmern. Hier chris1284.


Grüße Jörg

Gesendet von iPhone mit Tapatalk