2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +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:
arnoaugustin 2012-09-17 13:12:51 +00:00
parent 0b0e0e624e
commit e69a225281

View File

@ -11077,7 +11077,7 @@ isday</pre>
Optionally, for all functions you can set first argument which defines a horizon value 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> which then is used instead of the $defaultaltit in SUNRISE_EL.pm.<br>
Possible values are: "REAL", "CIVIL", "NAUTIC", "ASTRONOMIC" or a 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> REAL is 0, CIVIL is -6, NATUIC is -12, ASTRONOMIC is -18 degrees above horizon.<br><br>
Example:<br> Example:<br>
<ul> <ul>
@ -11086,10 +11086,10 @@ isday</pre>
sunrise("CIVIL"); sunrise("CIVIL");
# When sun is 3 degrees below (-3 above) horizon (Between real and civil sunset) # 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 # 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 # 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 define a15 at *{sunset("REAL",0,"18:00","21:00")} set lamp1 on