define <name> Twilight <latitude> <longitude> [<indoor_horizon> [<Weather_Position>]]0 - total night, sun is at least -18 degree below horizon1 - astronomical twilight, sun is between -12 and -18 degree below horizon2 - nautical twilight, sun is between -6 and -12 degree below horizon3 - civil twilight, sun is between 0 and -6 degree below horizon4 - 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
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 (during 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 |
| azimuth | the current azimuth of the sun 0° ist north 180° is south |
| compasspoint | a textual representation of the compass point |
| elevation | the elevaltion of the sun |
| twilight | a percetal value of a new (twi)light value: (elevation+12)/18 * 100) |
| twilight_weather | a percetal value of a new (twi)light value: (elevation-WEATHER_HORIZON+12)/18 * 100). So if there is weather, it is always a little bit darker than by fair weather |
| condition | the yahoo condition weather code |
| condition_txt | the yahoo condition weather code as textual representation |
| horizon | value auf the actual horizon 0°, -6°, -12°, -18° |
| $twilight | name of the twilight instance |
| $reading | name of the reading to use example: ss_astro, ss_weather ... |
| $min | parameter min time - optional |
| $max | parameter max time - optional |
define BlindDown at *{twilight("myTwilight","sr_indoor","7:30","9:00")} set xxxx position 100
# xxxx is a defined blind
=end html
=begin html_DE
define <name> Twilight <latitude> <longitude> [<indoor_horizon> [<Weather_Position>]]0 - Totale Nacht, die Sonne ist mind. -18 Grad hinter dem Horizont1 - Astronomische Dämmerung, die Sonne ist zw. -12 und -18 Grad hinter dem Horizont2 - Nautische Dämmerung, die Sonne ist zw. -6 and -12 Grad hinter dem Horizont3 - Zivile/Bürgerliche Dämmerung, die Sonne ist zw. 0 and -6 hinter dem Horizont4 - "indoor twilight", die Sonne ist zwischen dem Wert indoor_horizon und 0 Grad hinter dem Horizont (wird nicht verwendet wenn indoor_horizon=0)5 - Wetterbedingte Dämmerung, die Sonne ist zwischen indoor_horizon und einem virtuellen Wetter-Horizonz (der Wetter-Horizont ist Wetterabhängig (optional)6 - Maximales Tageslicht
define myTwilight Twilight 49.962529 10.324845 3 676757
get <name> <reading>| light | der aktuelle virtuelle Tageslicht-Wert |
| nextEvent | Name des nächsten Events |
| nextEventTime | die Zeit wann das nächste Event wahrscheinlich passieren wird (während Lichtphase 5 und 6 wird dieser Wert aktualisiert wenn sich das Wetter ändert) |
| sr_astro | Zeit des astronomitschen Sonnenaufgangs |
| sr_naut | Zeit des nautischen Sonnenaufgangs |
| sr_civil | Zeit des zivilen/bürgerlichen Sonnenaufgangs |
| sr | Zeit des Sonnenaufgangs |
| sr_indoor | Zeit des "indoor" Sonnenaufgangs |
| sr_weather | "Wert" des Wetters beim Sonnenaufgang |
| ss_weather | "Wert" des Wetters beim Sonnenuntergang |
| ss_indoor | Zeit des "indoor" Sonnenuntergangs |
| ss | Zeit des Sonnenuntergangs |
| ss_civil | Zeit des zivilen/bürgerlichen Sonnenuntergangs |
| ss_nautic | Zeit des nautischen Sonnenuntergangs |
| ss_astro | Zeit des astro. Sonnenuntergangs |
| azimuth | aktueller Azimuth der Sonne. 0° ist Norden 180° ist Süden |
| compasspoint | Ein Wortwert des Kompass-Werts |
| elevation | the elevaltion of the sun |
| twilight | Prozentualer Wert eines neuen "(twi)light" Wertes: (elevation+12)/18 * 100) |
| twilight_weather | Prozentualer Wert eines neuen "(twi)light" Wertes: (elevation-WEATHER_HORIZON+12)/18 * 100). Wenn ein Wetterwert vorhanden ist, ist es immer etwas dunkler als bei klarem Wetter. |
| condition | Yahoo! Wetter code |
| condition_txt | Yahoo! Wetter code als Text |
| horizon | Wert des aktuellen Horizont 0°, -6°, -12°, -18° |
| $twilight | Name der twiligh Instanz |
| $reading | Name des zu verwendenden Readings. Beispiel: ss_astro, ss_weather ... |
| $min | Parameter min time - optional |
| $max | Parameter max time - optional |
define BlindDown at *{twilight("myTwilight","sr_indoor","7:30","9:00")} set xxxx position 100
# xxxx ist ein definiertes Rollo
=end html_DE
=cut