95_Astro.pm: Letzter Fix

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14660 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2017-07-07 08:17:12 +00:00
parent 232b050837
commit 12bc064f44

View File

@ -42,12 +42,11 @@ my $DEG = pi/180.0;
my $RAD = 180./pi; my $RAD = 180./pi;
my $deltaT = 65; # Correction time in s my $deltaT = 65; # Correction time in s
my $timezone = 1; # Difference between CET and UT
my %Astro; my %Astro;
my %Date; my %Date;
my $astroversion = 1.0; my $astroversion = 1.1;
#-- These we may get on request #-- These we may get on request
my %gets = ( my %gets = (
@ -1039,12 +1038,11 @@ sub Astro_Get($@) {
return $astroversion; return $astroversion;
}elsif( $a[1] eq "json") { }elsif( $a[1] eq "json") {
Astro_Compute($hash); Astro_Compute($hash);
if( $wantsreading==1 ){ if( $wantsreading==1 ){
return toJSON($Astro{$a[2]}); return toJSON($Astro{$a[2]});
}else{ }else{
return toJSON(%Astro); return toJSON(\%Astro);
} }
}elsif( $a[1] eq "text") { }elsif( $a[1] eq "text") {