Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding CGM support for Dexcom touchscreen receivers #1182

Closed
wants to merge 11 commits into from
Closed

Adding CGM support for Dexcom touchscreen receivers #1182

wants to merge 11 commits into from

Conversation

jaylagorio
Copy link
Contributor

@jaylagorio jaylagorio commented Jan 12, 2019

  • Adds g6 and g6-upload support for Dexcom touchscreen CGM receivers. Note that these receivers work with G5 transmitters as well.

Must merge these two in order first for this to work without breaking things:

cluckj and others added 11 commits July 11, 2018 21:59
The latest node-js for raspbian deprecates the use of nodejs-legacy, which breaks this script on new pi installs. This will make it so that nodejs-legacy is only installed on the edison.
* Adds ``g6`` and ``g6-upload`` support for Dexcom touchscreen CGM receivers. Note that these work with G5 transmitters as well.
@scottleibrand
Copy link
Contributor

Am I reading this correctly that it's safe to merge this even without openaps/openaps#139, but that is a dependency for actually selecting g6 or g6-upload when running oref0-setup?

@jaylagorio
Copy link
Contributor Author

This one is safe to merge before #139 and the underlying dexcom_reader project. But that's correct that the user should not specify G6 or G6-upload.

@scottleibrand scottleibrand changed the base branch from master to dev February 6, 2019 22:38
@@ -682,6 +684,9 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
if [[ ${CGM,,} =~ "g5" || ${CGM,,} =~ "g5-upload" ]]; then
openaps use cgm config --G5
openaps report add raw-cgm/raw-entries.json JSON cgm oref0_glucose --hours "24.0" --threshold "100" --no-raw
elif [[ ${CGM,,} =~ "g6" || ${CGM,,} =~ "g6-upload" ]]; then
openaps use cgm config --G6
openaps report add raw-cgm/raw-entries.json JSON cgm oref0_glucose --hours "24.0" --threshold "100" --no-raw
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to add set_pref_string .cgm_loop_path "$directory" in this function to make sure oref0-monitor-cgm.sh runs in the right place. See: #1149 and #1211

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this bug! I ran into it a while ago and gave up on it because I couldn't track it down in the time I had. I'm closing this PR and opening a new one that both adds setup support for touchscreen receivers, fixes this bug, and makes some changes to oref0-cron-every-minute to make the CGM loop work with the new receivers too.

@jaylagorio
Copy link
Contributor Author

Replacing with #1217

scottleibrand pushed a commit that referenced this pull request Mar 11, 2019
… receivers (#1217)

* Add support for touchscreen receivers, fix CGM loop bug for connected receivers

Changed files:
`oref0-setup.sh`
- Includes cgm_loop_path fix found by @chuckj for both G5 and G6 (8799a13 to fix #1149) and includes support for G5/G6 touch receivers (previously under #1182)

`oref0-cron-every-minute.sh`
- Reincluding support for offline CGM, with optional upload, for G5 and G6 receivers

* Readding accidentally removed logging

Reenables apache-chainsaw support

* Resolving conflicts with newly merged changes

* Touchup
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.

4 participants