From b0d190965312220c420f91b999221f217afcca0e Mon Sep 17 00:00:00 2001 From: Michael Schappacher Date: Fri, 22 Mar 2024 15:10:30 -0400 Subject: [PATCH] Update timer logic to be 2.0 compatible, added extra print statements for easier debugging --- firmware/lib/scout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/lib/scout.py b/firmware/lib/scout.py index 5716da7..7f800b4 100644 --- a/firmware/lib/scout.py +++ b/firmware/lib/scout.py @@ -71,6 +71,7 @@ def set_timer(self, child_id, activity): timer = send_api_request( self.base_url, path=path, data={"child": child_id, "name": activity} ) + print("Timer started for " + activity) return timer def get_timer(self, child_id, activity): @@ -88,7 +89,6 @@ def get_timer(self, child_id, activity): if ( timer["name"] == activity and timer["child"] == child_id - and timer["active"] == True ): return timer return None @@ -101,6 +101,7 @@ def sleep(self, child_id): """ activity = "sleep" self.resolve_timers(child_id, activity) + print("Recorded Sleep") def tummy_time(self, child_id): """