mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
99_Twilight: factors for computing weater_horizon improved as joe99 suggested https://forum.fhem.de/index.php/topic,54783.msg484529.html#msg484529
git-svn-id: https://svn.fhem.de/fhem/trunk@12091 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0430eb2ebe
commit
494555d5df
@ -490,11 +490,11 @@ sub Twilight_getWeatherHorizon(@)
|
||||
}
|
||||
|
||||
my $mod = "[".$hash->{NAME} ."] ";
|
||||
my @faktor_cond_code = (25,25,25,25,20,10,10,10,10,10,
|
||||
10, 7, 7, 7, 5,10,10, 6, 6, 6,
|
||||
10, 6 ,6, 6, 6, 6, 3, 5, 5, 3,
|
||||
3, 0, 0, 0, 0, 7, 0,15,15,15,
|
||||
9,15, 8, 5,12, 6, 8, 8, 0, 0,
|
||||
my @faktor_cond_code = (10,10,10,10, 9, 7, 7, 7, 7, 7,
|
||||
7, 5, 5, 5, 5, 7, 7, 5, 5, 5,
|
||||
7, 5, 5, 5, 5, 5, 2, 4, 4, 2,
|
||||
2, 0, 0, 0, 0, 5, 0, 8, 8, 8,
|
||||
6, 8, 6, 5, 2, 5, 6, 6, 0, 0,
|
||||
0);
|
||||
|
||||
# condition codes are described in FHEM wiki and in the documentation of the yahoo weather API
|
||||
@ -733,6 +733,9 @@ sub twilight($$$$) {
|
||||
1;
|
||||
|
||||
=pod
|
||||
=item device
|
||||
=item summary delivers twilight and other sun related events for use in notify
|
||||
=item summary_DE liefert Dämmerungs Sonnen basierte Ereignisse, für notify
|
||||
=begin html
|
||||
|
||||
<a name="Twilight"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user