mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
Updated HORIZON=<number> for sunrise/sunset functions
git-svn-id: https://svn.fhem.de/fhem/trunk@1859 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0b0e0e624e
commit
e69a225281
@ -11077,7 +11077,7 @@ isday</pre>
|
||||
Optionally, for all functions you can set first argument which defines a horizon value
|
||||
which then is used instead of the $defaultaltit in SUNRISE_EL.pm.<br>
|
||||
Possible values are: "REAL", "CIVIL", "NAUTIC", "ASTRONOMIC" or a
|
||||
positive or negative number preceded by "HORIZON"<br>
|
||||
positive or negative number preceded by "HORIZON="<br>
|
||||
REAL is 0, CIVIL is -6, NATUIC is -12, ASTRONOMIC is -18 degrees above horizon.<br><br>
|
||||
Example:<br>
|
||||
<ul>
|
||||
@ -11086,10 +11086,10 @@ isday</pre>
|
||||
sunrise("CIVIL");
|
||||
|
||||
# When sun is 3 degrees below (-3 above) horizon (Between real and civil sunset)
|
||||
sunset("HORIZON -3");
|
||||
sunset("HORIZON=-3");
|
||||
|
||||
# When sun is 1 degree above horizon
|
||||
sunset("HORIZON 1");
|
||||
sunset("HORIZON=1");
|
||||
|
||||
# Switch lamp1 on at real sunset, not before 18:00 and not after 21:00
|
||||
define a15 at *{sunset("REAL",0,"18:00","21:00")} set lamp1 on
|
||||
|
Loading…
Reference in New Issue
Block a user