BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
day_light.py File Reference

get day light status for automatic theme More...

Go to the source code of this file.

Namespaces

namespace  Source
namespace  Source.Model
namespace  Source.Model.day_light

Functions

bool get_sun_light_status ()
 Get sun light status.
tuple[datetime, datetime] get_sun_light_time (float lat, float long, datetime date, int i_timezone)
 Get sun light time (rise and down time)
int get_timezone ()
 Get timezone from time settings.
bool is_day (datetime date, datetime sunrise, datetime sundown)
 Check if actual time is day (depend on rise and down time of sun)

Variables

 log = logging.getLogger(__title__)

Detailed Description

get day light status for automatic theme


Definition in file day_light.py.