msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

Improve sensor battery readings #253

Closed adamdewey closed 11 months ago

adamdewey commented 11 months ago

Describe the bug Several reports from multiple sources that the sensor battery readings are unreliable - e.g. often jumping from 50 to 48 to 52, even down to 28.

Could we perhaps improve the accuracy by taking an average of, say, the last 20 battery readings (rounded to the nearest integer)

To Reproduce Steps to reproduce the behavior:

  1. Set up a BM sensor with CCA
  2. Watch the battery reading...

Expected behavior Battery reading to be reasonably accurate so that users know when to replace it.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

adamdewey commented 11 months ago

@louisaw123 can testify more I'm sure

adamdewey commented 11 months ago

Wait, there's already a ticket that Louisa created - will close this in favour of that