Skip to content

Conversation

@RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Nov 25, 2025

This changes the following:

  • Uses a fixed, user-set interval for granular control of update times
  • Limits the total cycles to 60, so new values always change the average for greater accuracy over a long period of use
  • Changes the README documenting these changes

Removed dynamic interval setting for battery recording and replaced it with a fixed update interval of 8 hours.
Update battery cycle and hour tracking logic to limit cycles to 60.
Return to fixed update intervals and added settings to change the update interval. Limited cycles to 60 for greater precision over longer periods.
Added details about the update interval setting for battery drainage recording.
@bobrippling
Copy link
Collaborator

LGTM, will merge if you're happy with testing

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Nov 25, 2025

Yeah, testing on my end looks good, we can merge if you're happy with this :)

@bobrippling
Copy link
Collaborator

Nice!

@bobrippling bobrippling merged commit e46c386 into espruino:master Nov 25, 2025
1 check passed
@RKBoss6 RKBoss6 deleted the smartbattUpdates branch November 26, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants