define <name> Twilight <latitude> <longitude> [<indoor_horizon> [<Weather_Position>]]
0 - total night, sun is at least -18 degree below horizon
1 - astronomical twilight, sun is between -12 and -18 degree below horizon
2 - nautical twilight, sun is between -6 and -12 degree below horizon
3 - civil twilight, sun is between 0 and -6 degree below horizon
4 - indoor twilight, sun is between the indoor_horizon and 0 degree below horizon (not used if indoor_horizon=0)
5 - weather twilight, sun is between indoor_horizon and a virtual weather horizon (the weather horizon depends on weather conditions (optional)
6 - maximum daylight
latitude
and longitude
are decimal numbers which give the position on earth for which the twilight states shall be calculated.define myTwilight Twilight 49.962529 10.324845 3 676757
get <name> <reading>
light | the current virtual daylight value |
nextEvent | the name of the next event |
nextEventTime | the time when the next event will probably happen (durint light phase 5 and 6 this is updated when weather conditions change |
sr_astro | time of astronomical sunrise |
sr_naut | time of nautical sunrise |
sr_civil | time of civil sunrise |
sr | time of sunrise |
sr_indoor | time of indoor sunrise |
sr_weather | time of weather sunrise |
ss_weather | time of weather sunset |
ss_indoor | time of indoor sunset |
ss | time of sunset |
ss_civil | time of civil sunset |
ss_nautic | time of nautic sunset |
ss_astro | time of astro sunset |