From 84dbf6a15f32f8d9f3776f088cd940191bdedd4d Mon Sep 17 00:00:00 2001 From: kr69sugu <karl.rackwitz@idiv.de> Date: Wed, 12 Aug 2020 13:10:47 +0200 Subject: [PATCH] adapt sunrise/sunset times --- skyglow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyglow.py b/skyglow.py index e0435b4..1b03827 100755 --- a/skyglow.py +++ b/skyglow.py @@ -210,10 +210,10 @@ def init(): # timestring="09-09-2020 18:00" # 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 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 sunset = 20 else: -- GitLab