From 3fe10e2e596eb43ac6f75dc907d8f3b21cea35a3 Mon Sep 17 00:00:00 2001 From: phenning <> Date: Sun, 7 Nov 2021 15:42:54 +0000 Subject: [PATCH] =?UTF-8?q?95=5FAstro.pm:=20Viele=20kleine=20=C3=84nderung?= =?UTF-8?q?en=20u.a.=20von=20loredo=20und=20CoolTux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.fhem.de/fhem/trunk@25198 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_Astro.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/95_Astro.pm b/fhem/FHEM/95_Astro.pm index 4b37e6d28..c796788db 100644 --- a/fhem/FHEM/95_Astro.pm +++ b/fhem/FHEM/95_Astro.pm @@ -773,6 +773,7 @@ sub Define ($@) { return $@ unless ( FHEM::Meta::SetInternals($hash) ); use version 0.77; our $VERSION = FHEM::Meta::Get( $hash, 'version' ); + return 'Astro may not be run on Windows systems' if $^O eq 'MSWin32'; if ($global) { return "$type global device $modules{$type}{global}{NAME} is already defined" @@ -2516,8 +2517,9 @@ sub Update($@) { defined( $hash->{RECOMPUTEAT} ) ? split( ',', $hash->{RECOMPUTEAT} ) : () ) { if ( $comp eq 'NewDay' ) { + my @dch = localtime($now + 86400 + 3600*((localtime($now))[8] - (localtime($now + 86400.))[8])); push @next, - _timelocal_modern( 0, 0, 0, (localtime($now + 86400.))[3,4], (localtime($now + 86400.))[5]+1900. ); + _timelocal_modern( 0, 0, 0, $dch[3], $dch[4], $dch[5]+1900. ); next; } my $k = ".$comp"; @@ -3196,7 +3198,7 @@ sub Get($@) { =end html_DE =for :application/json;q=META.json 95_Astro.pm { - "version": "v2.1.2", + "version": "v2.2", "author": [ "Prof. Dr. Peter A. Henning <>", "Julian Pawlowski <>",