95_Astro: add keywords
git-svn-id: https://svn.fhem.de/fhem/trunk@19817 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -776,7 +776,8 @@ sub Define ($@) {
|
|||||||
|
|
||||||
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"
|
||||||
if ( defined( $modules{$type}{global} ) );
|
if ( defined( $modules{$type}{global} )
|
||||||
|
&& $modules{$type}{global}{NAME} ne $name );
|
||||||
$modules{$type}{global} = $hash;
|
$modules{$type}{global} = $hash;
|
||||||
$hash->{SCOPE} = 'global';
|
$hash->{SCOPE} = 'global';
|
||||||
}
|
}
|
||||||
@@ -1141,7 +1142,7 @@ sub SUNRISE_EL_sr_alt($$$$$$$$$) {
|
|||||||
$hasalt = 1;
|
$hasalt = 1;
|
||||||
$altit=$main::alti{uc($altit)};
|
$altit=$main::alti{uc($altit)};
|
||||||
shift;
|
shift;
|
||||||
} elsif($altit =~ /HORIZON=([\-\+]*[0-9\.]+)/i) {
|
} elsif($altit =~ /HORIZON=(([\-\+]*[0-9\.]+)(?::([\-\+]*[0-9\.]+))?)/i) {
|
||||||
$hasalt = 1;
|
$hasalt = 1;
|
||||||
$altit=$1;
|
$altit=$1;
|
||||||
shift;
|
shift;
|
||||||
@@ -3195,7 +3196,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.0",
|
"version": "v2.1.1",
|
||||||
"author": [
|
"author": [
|
||||||
"Prof. Dr. Peter A. Henning <>",
|
"Prof. Dr. Peter A. Henning <>",
|
||||||
"Julian Pawlowski <>",
|
"Julian Pawlowski <>",
|
||||||
@@ -3216,16 +3217,24 @@ sub Get($@) {
|
|||||||
"astronomy",
|
"astronomy",
|
||||||
"constellation",
|
"constellation",
|
||||||
"moon",
|
"moon",
|
||||||
|
"moonrise",
|
||||||
|
"moonset",
|
||||||
"sun",
|
"sun",
|
||||||
|
"sunrise",
|
||||||
|
"sunset",
|
||||||
"star sign",
|
"star sign",
|
||||||
"twilight",
|
"twilight",
|
||||||
"zodiac",
|
"zodiac",
|
||||||
"Astrologie",
|
"Astrologie",
|
||||||
"Astronomie",
|
"Astronomie",
|
||||||
"Mond",
|
"Mond",
|
||||||
|
"Mondaufgang",
|
||||||
|
"Monduntergang",
|
||||||
"Sonne",
|
"Sonne",
|
||||||
"Sternbild",
|
"Sternbild",
|
||||||
"Sternzeichen",
|
"Sternzeichen",
|
||||||
|
"Sonnenaufgang",
|
||||||
|
"Sonnenuntergang",
|
||||||
"Tierkreiszeichen",
|
"Tierkreiszeichen",
|
||||||
"Zodiak"
|
"Zodiak"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user