diff --git a/README.md b/README.md index cd2c053..921b5e1 100644 --- a/README.md +++ b/README.md @@ -87,19 +87,29 @@ Datasheets Battery Life ------------ -Connecting every single minute: +Battery testing is performed using a stockpile of "Energizer EN92 Industrial" +AAA batteries manufactured in 2022. No OTA updates were issued during the +testing periods. + +1-minute measurements, connecting every single minute: * 17-18 days at room temperature * 12 days at 40F * 6 days at -5F -Connecting every six minutes: +1-minute measurements, connecting every six minutes: * 68-70 days at room temperature * 60 days at 40F * 28 days at -5F -I'm currently testing 61-minute reporting intervals. +1-minute measurements, connecting once each hour: + +* 140-157 days at room temperature +* 130 days at 40F +* 68 days at -5F + +I'm currently testing 5-minute measurements connecting once every five hours. TODO ---- diff --git a/backend/http_sensor.py b/backend/http_sensor.py index ba698c6..032befb 100755 --- a/backend/http_sensor.py +++ b/backend/http_sensor.py @@ -91,14 +91,15 @@ def do_POST(self): rxtime = int(time.time()) rjsond = { - "next_epoch": (rxtime // 60 + 1) * 60, - "queue_interval": 60, + "next_epoch": (rxtime // 60 + 5) * 60, + "queue_interval": 300, "queue_count": 60, } location, want_send_delay_us = self.server.lookup_location(ser) if "outdoor" in location.lower(): + rjsond["queue_interval"] = 60 rjsond["queue_count"] = 5 if send_delay_us != want_send_delay_us: