jwoglom / tconnectsync

Syncs data from Tandem Source (formerly t:connect) to Nightscout for the t:slim X2 and Mobi insulin pumps
MIT License
115 stars 65 forks source link

Automatically update Nightscout basal profile settings from pump #29

Closed jwoglom closed 1 year ago

jwoglom commented 2 years ago

Tconnectsync should have an option to change Nightscout's built-in basal profile options based on the pump's current values.

craigpress commented 2 years ago

This would be really awesome. I manually entered my kids profile information into nightscout, but will have to update when we change settings.

jwoglom commented 2 years ago

Initial code to query for profile and pump settings is in https://github.com/jwoglom/tconnectsync/commit/fae1d4de2c870d96fe0c0f082fa44f70237b6991

There's remaining work to be done to actually upload these values into nightscout, hoping to get to this in the next week or two

rankelly commented 2 years ago

Any progress on this part?

rankelly commented 2 years ago

Would be nice if they had an API to grab this data.

jwoglom commented 2 years ago

@rankelly unfortunately not, however I started on the baseline work to scrape pump settings out of a table inside the tconnect UI, so the work for this is about halfway done. I haven't spent as much time working on tconnectsync lately as I've been focused on https://github.com/jwoglom/pumpx2.

The work on that effort could one day remove the dependency on tconnect (and tconnectsync) entirely for pushing data to nightscout. Not dissimilar from how xDrip can publish directly to Nightscout using without Dexcom Share.

jwoglom commented 1 year ago

@craigpress @rankelly @t1diotac @justinswartz This has been implemented in tconnectsync v0.9.0! Simply enable the PROFILES features option (see https://github.com/jwoglom/tconnectsync#what-gets-synced for instructions). Profile names and values should be synced from the pump to Nightscout, as well as profile switches (by modifying the default profile).

Please try it out! Once this has been tested a bit more widely, I'll enable this by default in tconnectsync.