The Astro binding is used for calculating many DateTime and positional values for sun and moon.
This binding supports two Things: Sun and Moon
Discovery is not necessary, because all calculations are done within the binding.
No binding configuration required.
The things requires the geolocation (latitude, longitude) for which the calculation is done. Optionally, a refresh interval (in seconds) can be defined to also calculate positional data like azimuth and elevation.
- thing
sun
- group
rise, set, noon, night, morningNight, astroDawn, nauticDawn, civilDawn, astroDusk, nauticDusk, civilDusk, eveningNight, daylight
- channel
start, end
(DateTime),duration
(Number)
- channel
- group
position
- channel
azimuth, elevation
(Number)
- channel
- group
zodiac
- channel
start, end
(DateTime),sign
(String)
- channel
- group
season
- channel:
spring, summer, autumn, winter
(DateTime),name
(String)
- channel:
- group
eclipse
- channel:
total, partial, ring
(DateTime)
- channel:
- group
- thing
moon
- group
rise, set
- channel
start, end
(DateTime),duration
(Number), Note: start and end is always equal, duration always 0.
- channel
- group
phase
- channel:
firstQuarter, thirdQuarter, full, new
(DateTime),age, illumination
(Number),name
(String)
- channel:
- group
eclipse
- channel:
total, partial
(DateTime)
- channel:
- group
distance
- channel:
date
(DateTime),kilometer, miles
(Number)
- channel:
- group
perigee
- channel:
date
(DateTime),kilometer, miles
(Number)
- channel:
- group
apogee
- channel:
date
(DateTime),kilometer, miles
(Number)
- channel:
- group
zodiac
- channel
sign
(String)
- channel
- group
position
- channel
azimuth, elevation
(Number)
- channel
- group
Things:
astro:sun:home [ geolocation="xx.xxxxxx,xx.xxxxxx", interval=60]
astro:moon:home [ geolocation="xx.xxxxxx,xx.xxxxxx", interval=60]
Items:
DateTime Sunrise_Time "Sunrise [%1$tH:%1$tM]" { channel="astro:sun:home:rise#start" }
DateTime Sunset_Time "Sunset [%1$tH:%1$tM]" { channel="astro:sun:home:set#start" }
Number Azimuth "Azimuth" { channel="astro:sun:home:position#azimuth" }
Number Elevation "Elevation" { channel="astro:sun:home:position#elevation" }
String MoonPhase "MoonPhase" { channel="astro:moon:home:phase#name" }