nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
80 stars 414 forks source link

[Experimental] - Add Dana pump #194

Closed avouspierre closed 4 months ago

avouspierre commented 4 months ago

Add dana pump with adding the submodule proposed by https://github.com/bastiaanv/DanaKit (for Loop).

Very experimental features to test only.

Don't forget to update your submodule (git submodule update).

Simulator Screenshot - iPhone 15 - 2024-05-15 at 19 55 20

LiroyvH commented 4 months ago

I'm gonna try to get my hands on a Dana (probably i) to test this if its fully capable? (Meaning: the integration has the pump fully featured: bolus, temp basal, etc.)

avouspierre commented 4 months ago

@LiroyvH I can not test but in theory, all functions available in Trio with a interaction with a pump should be available with Dana

bastiaanv commented 4 months ago

You can test the dana(-I or RS-v3) with a raspberry pi (headless for now)

https://github.com/bastiaanv/dana-simulator

LiroyvH commented 4 months ago

@avouspierre I suppose its unlikely this will insta-merge in to Trio; even in Dev. If I do get my hands on a Dana-RS, could you help me patch in the code to dev on my personal fork so I may test?

@bastiaanv Nice work!! :)

marionbarker commented 4 months ago

After checking out this branch, I did need to issue this command:

git submodule update

This triggered the clone command to bring down:

https://github.com/bastiaanv/DanaKit.git
489c310 (HEAD, origin/dev, origin/HEAD, dev) fix: Cleanup state better

At this time I was able to xed . and build Trio with Dana added as a pump option on an SE phone running iOS 17.5.

For each option, I went through the steps to start scanning for the pump:

I plan to set up the simulator on my rPi and will report in a separate comment, but I believe this is ready to merge into dev.

marionbarker commented 4 months ago

I successfully configured a Dana simulator and am running Trio talking to the simulator.

avouspierre commented 4 months ago

updated with a experimental label for Dana pump.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud