Skip to content
Snippets Groups Projects
Commit 84dbf6a1 authored by kr69sugu's avatar kr69sugu
Browse files

adapt sunrise/sunset times

parent 2a1a44ec
No related branches found
No related tags found
No related merge requests found
...@@ -210,10 +210,10 @@ def init(): ...@@ -210,10 +210,10 @@ def init():
# timestring="09-09-2020 18:00" # timestring="09-09-2020 18:00"
# now = dt.strptime(timestring,'%m-%d-%Y %H:%M') # now = dt.strptime(timestring,'%m-%d-%Y %H:%M')
if( (now.month == 7) or (now.month == 8 and now.day <= 7 )): if( (now.month == 7) or (now.month == 8 and now.day <= 18 )):
sunrise = 6 sunrise = 6
sunset = 21 sunset = 21
elif( now.month == 8 or (now.month == 9 and now.day <= 4 )): elif( now.month == 8 or (now.month == 9 and now.day <= 15 )):
sunrise = 7 sunrise = 7
sunset = 20 sunset = 20
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment