mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
95_Astro.pm: Viele kleine Änderungen u.a. von loredo und CoolTux
git-svn-id: https://svn.fhem.de/fhem/trunk@25198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bec3812fcd
commit
3fe10e2e59
@ -773,6 +773,7 @@ sub Define ($@) {
|
|||||||
|
|
||||||
return $@ unless ( FHEM::Meta::SetInternals($hash) );
|
return $@ unless ( FHEM::Meta::SetInternals($hash) );
|
||||||
use version 0.77; our $VERSION = FHEM::Meta::Get( $hash, 'version' );
|
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) {
|
if ($global) {
|
||||||
return "$type global device $modules{$type}{global}{NAME} is already defined"
|
return "$type global device $modules{$type}{global}{NAME} is already defined"
|
||||||
@ -2516,8 +2517,9 @@ sub Update($@) {
|
|||||||
defined( $hash->{RECOMPUTEAT} ) ? split( ',', $hash->{RECOMPUTEAT} ) : () )
|
defined( $hash->{RECOMPUTEAT} ) ? split( ',', $hash->{RECOMPUTEAT} ) : () )
|
||||||
{
|
{
|
||||||
if ( $comp eq 'NewDay' ) {
|
if ( $comp eq 'NewDay' ) {
|
||||||
|
my @dch = localtime($now + 86400 + 3600*((localtime($now))[8] - (localtime($now + 86400.))[8]));
|
||||||
push @next,
|
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;
|
next;
|
||||||
}
|
}
|
||||||
my $k = ".$comp";
|
my $k = ".$comp";
|
||||||
@ -3196,7 +3198,7 @@ sub Get($@) {
|
|||||||
=end html_DE
|
=end html_DE
|
||||||
=for :application/json;q=META.json 95_Astro.pm
|
=for :application/json;q=META.json 95_Astro.pm
|
||||||
{
|
{
|
||||||
"version": "v2.1.2",
|
"version": "v2.2",
|
||||||
"author": [
|
"author": [
|
||||||
"Prof. Dr. Peter A. Henning <>",
|
"Prof. Dr. Peter A. Henning <>",
|
||||||
"Julian Pawlowski <>",
|
"Julian Pawlowski <>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user