From 85697b244214e348a52a325e9a2974fb4e0bd11f Mon Sep 17 00:00:00 2001 From: --replace-all Date: Thu, 4 Feb 2021 23:00:20 +0800 Subject: [PATCH] Increase sleep timer for user experience --- openoceancamera/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openoceancamera/main.py b/openoceancamera/main.py index d07956b..b91d46e 100755 --- a/openoceancamera/main.py +++ b/openoceancamera/main.py @@ -249,7 +249,7 @@ def main(): print(f"We have {mins_to_next_slot} mins to next slot") if (mins_to_next_slot > 10) and slot == -1: logger.info("Camera is going to prepare to go to sleep") - sleeptime = datetime.now() + timedelta(minutes=2) + sleeptime = datetime.now() + timedelta(minutes=5) next_reboot = next_slot["start"] - timedelta(minutes=2) sleeptime = sleeptime.strftime("%d %H:%M") print(f"I will wake up at {next_reboot}")