mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
99_SUNRISE_EL.pm: Fix next-day summertime chnage, compute todays value in
*abs even after after the event (Forum #42920) git-svn-id: https://svn.fhem.de/fhem/trunk@12485 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
404ec44335
commit
374e65447d
@ -116,7 +116,7 @@ sr_alt($$$$$$$$$)
|
||||
$nt += 86400;
|
||||
@lt = localtime($nt);
|
||||
my $ngmtoff = _calctz($nt,@lt); # in hour
|
||||
$diff = 24+$gmtoff-$ngmtoff;
|
||||
$diff = 24;
|
||||
|
||||
($rt,$st) = _sr_alt($altit,$needrise,$needset,
|
||||
$lt[5]+1900,$lt[4]+1,$lt[3], $ngmtoff);
|
||||
@ -384,8 +384,8 @@ sub sunrise_coord($$$) { ($long, $lat, $tz) = @_; return undef; }
|
||||
|
||||
sub sunrise_rel(@) { return sr_alt(time(),1,1,0,1,shift,shift,shift,shift); }
|
||||
sub sunset_rel (@) { return sr_alt(time(),0,1,0,1,shift,shift,shift,shift); }
|
||||
sub sunrise_abs(@) { return sr_alt(time(),1,0,0,1,shift,shift,shift,shift); }
|
||||
sub sunset_abs (@) { return sr_alt(time(),0,0,0,1,shift,shift,shift,shift); }
|
||||
sub sunrise_abs(@) { return sr_alt(time(),1,0,0,0,shift,shift,shift,shift); }
|
||||
sub sunset_abs (@) { return sr_alt(time(),0,0,0,0,shift,shift,shift,shift); }
|
||||
sub sunrise (@) { return sr_alt(time(),1,2,0,1,shift,shift,shift,shift); }
|
||||
sub sunset (@) { return sr_alt(time(),0,2,0,1,shift,shift,shift,shift); }
|
||||
sub isday (@) { return sr_alt(time(),1,0,1,1,shift,shift,shift,shift); }
|
||||
|
Loading…
Reference in New Issue
Block a user