Skip to content

Commit

Permalink
Update README with battery testing results
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalvinowens committed Mar 12, 2024
1 parent 6f8dce6 commit 07acb25
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----
Expand Down
5 changes: 3 additions & 2 deletions backend/http_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 07acb25

Please sign in to comment.