diff --git a/apps/chargent/ChangeLog b/apps/chargent/ChangeLog index d7081ecfb..fb3eaa780 100644 --- a/apps/chargent/ChangeLog +++ b/apps/chargent/ChangeLog @@ -3,3 +3,4 @@ 0.03: Added threshold 0.04: Added notification 0.05: Fixed boot +0.06: Allow tap to silence notification/buzzing diff --git a/apps/chargent/README.md b/apps/chargent/README.md index db93615a6..5fd486217 100644 --- a/apps/chargent/README.md +++ b/apps/chargent/README.md @@ -6,10 +6,12 @@ The first stage of charging Li-ion ends at ~80% capacity when the charge voltage This app has no UI and no configuration. To disable the app, you have to uninstall it. +Tap the charged notification to prevent buzzing for this charging session. + New in v0.03: before the very first buzz, the average value after the peak is written to chargent.json and used as threshold for future charges. This reduces the time spent in the second charge stage. Side notes - Full capacity is reached after charge current drops to an insignificant level. This is quite some time after charge voltage reached its peak / `E.getBattery()` returns 100. - This app starts buzzing some time after `E.getBattery()` returns 100 (~15min on my watch), and at least 5min after the peak to account for noise. -\* according to https://batteryuniversity.com/article/bu-409-charging-lithium-ion assuming similar characteristics and readouts from pin `D30` approximate charge voltage \ No newline at end of file +\* according to https://batteryuniversity.com/article/bu-409-charging-lithium-ion assuming similar characteristics and readouts from pin `D30` approximate charge voltage diff --git a/apps/chargent/boot.js b/apps/chargent/boot.js index c8fd4f930..198e36f18 100644 --- a/apps/chargent/boot.js +++ b/apps/chargent/boot.js @@ -24,7 +24,8 @@ lim = sum / cnt; require('Storage').writeJSON('chargent.json', {limit: lim}); } - require('notify').show({id: 'chargent', title: 'Fully charged'}); + const onHide = () => { id = clearInterval(id) }; + require('notify').show({id: 'chargent', title: 'Fully charged', onHide }); // TODO ? customizable Bangle.buzz(500); setTimeout(() => Bangle.buzz(500), 1000); diff --git a/apps/chargent/metadata.json b/apps/chargent/metadata.json index d43493ada..bae35b361 100644 --- a/apps/chargent/metadata.json +++ b/apps/chargent/metadata.json @@ -1,6 +1,6 @@ { "id": "chargent", "name": "Charge Gently", - "version": "0.05", + "version": "0.06", "description": "When charging, reminds you to disconnect the watch to prolong battery life.", "icon": "icon.png", "type": "bootloader",