Comments (19)
We could certainly make is a 3-way selection: unspecified, alkaline, or lithium. If unspecified (default) we use an average decay curve that does something reasonable for both. If specified, we can be more accurate...
from loop.
That looks good! Nice work.
from loop.
This is a know issue with the x22 pumps. @jlucasvt has started documenting the time-voltage curve for a lithium battery. I'm hoping someone can do the same for an alkaline as well.
from loop.
@loudnate Thanks for the answer!
from loop.
I'm finally committed to gathering Alkaline data. Should have it mapped out in about a week.
from loop.
Awesome that this is getting some love! Always wondered why the battery was blank since you could see the voltage in pump status on a x22.
from loop.
Alkaline and Lithium Battery data.
https://docs.google.com/spreadsheets/d/19FpO5YO5ewQrdph_4iIXuear6xRGzl-AYTiFeHwPcVk/edit?usp=sharing
from loop.
Very awesome!
from loop.
@jlucasvt my personal recommendation would be to expose a voltage-to-percentage remaining function on the PumpModel enum in MinimedKit, in the rileylink_ios repo.
from loop.
Yes if we use the linear eq's it should be pretty simple. I I did do a quick run with excel to generate a 4th Ord Polynomial Eq for both but they may be a bit overboard..
from loop.
Ideally there is no user setting for choosing their battery type.
from loop.
I agree with you nate, ideally - but if its tricky to detect in software, you have to realize its a switch that will be used very rarely. I would rather time be spent on other things and there be a switch.
from loop.
Yeah , My one touch ping made you choose on battery swap (ALK or LITH). It will be ideal to not worry about the battery type.
In the past I wired this up in the DeviceDataManager.assertCurrentPumpData just after battery state is retrieved and before NSUpload.
if let sentrySupported = self.pumpState?.pumpModel?.larger , !sentrySupported {
self.setBatteryStatusforNonMySentryPumps(voltage: status.batteryVolts)
}
I am going to start here and and then will need some guidance on the next steps
from loop.
Updated to latest v1.1 Loop Code Testing this week and will do a PR.
https://github.com/jlucasvt/Loop/tree/master-1.1-x22BatteryStatus
from loop.
Doing some testing now with battery and alerts. It's working pretty good.
x22 Battery Inidication
Lithium Enable Switch
from loop.
This is awesome!
from loop.
I have rebuilt the UI to allow selection of Alkaline or Lithium and a description explaining the difference for the user. I've made all the requested changes from my last PR and hopefully it will be accepted this time. Here is the current source it's based on dev 1.1.1
https://github.com/jlucasvt/Loop/tree/dev-1.1.1-x22BatteryStatus
from loop.
from loop.
This is working... One minor note though is that in practice with normal Duracell (alkalines) my battery has lasted 30-40% (ballpark) longer than loop's current algorithm predicts. I have had it warm me for 0% and the pump still had 2/4 bars on the battery meter.
from loop.
Related Issues (20)
- Loop does not deactive DASH pod during Replace Pod cancelation HOT 5
- Apple Watch won't install Loop (like issue #2099) HOT 1
- Sushis2024
- App profile reading expired
- Pairing Bug from OmniBLE 114 / OmniKit 28
- Loop crashes HOT 1
- Nightscout record not updated
- Make default carbs absorption time configurable…!
- Research on the Chinese Language
- Glucose change graph 'predicted' effects are inconsistent at different times or between orientations
- Bolus Suggestion from Watch higher than on Loop Phone
- Loop for Apple Watch (watchOS 10.x) UI issue HOT 6
- Secret is set but invalid error
- Watch has no "developer mode" in any menu for watch, can't install loop on watch. HOT 9
- Inexplicable Bolus HOT 2
- Help! I can’t renew my loop HOT 4
- Avoid unnoticed carb entries HOT 2
- DASH POD ON LOOP ERROR oxcb: HOT 13
- Loop Widget does not work HOT 2
- Failed remote carb/bolus HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loop.