ESPHome
2024.11.0
|
#include <sun.h>
Public Member Functions | |
void | set_time (time::RealTimeClock *time) |
time::RealTimeClock * | get_time () const |
void | set_latitude (double latitude) |
void | set_longitude (double longitude) |
bool | is_above_horizon (double elevation=-0.83333) |
optional< ESPTime > | sunrise (double elevation) |
optional< ESPTime > | sunset (double elevation) |
optional< ESPTime > | sunrise (ESPTime date, double elevation) |
optional< ESPTime > | sunset (ESPTime date, double elevation) |
double | elevation () |
double | azimuth () |
Protected Member Functions | |
internal::HorizontalCoordinate | calc_coords_ () |
optional< ESPTime > | calc_event_ (bool rising, double zenith) |
optional< ESPTime > | calc_event_ (ESPTime date, bool rising, double zenith) |
Protected Attributes | |
time::RealTimeClock * | time_ |
internal::GeoLocation | location_ |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |