tynbendad / GarminCIQ-NightscoutData

GNU General Public License v3.0
2 stars 0 forks source link

dexcom share #1

Open jasonbehrstock opened 6 years ago

jasonbehrstock commented 6 years ago

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

tynbendad commented 6 years ago

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock notifications@github.com wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

jasonbehrstock commented 6 years ago

Thanks for the quick response. This person wrote an implementation to get data from share (https://github.com/jmarler/share2ns-perlbridge).

His code is actually pretty clean, so it shouldn't be too hard to unwind. I haven't used mc before, but can probably figure it out from looking at your code (although you could likely implement it much faster than it will take me). Anyways, if you have a look and can easily implement it and are willing to do so, I'd be very happy; if not let me know and I'll give it a go myself.

Best, Jason

On Sat, May 19, 2018 at 11:52 PM, tynbendad notifications@github.com wrote:

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock notifications@github.com wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390455775, or mute the thread https://github.com/notifications/unsubscribe-auth/AHnvYqPcCXcgbRvbI9cw9gQDg-AqVKh3ks5t0OhygaJpZM4UF75m .

tynbendad commented 6 years ago

Oh, that is very cool. I'll give it a try and if the perl script works I don't see any reason yet it shouldn't be possible from Garmin... Not sure when I'll be able to get to it though, minimum is a few weeks. Thanks, H

On Sat, May 19, 2018, 10:13 PM jasonbehrstock notifications@github.com wrote:

Thanks for the quick response. This person wrote an implementation to get data from share (https://github.com/jmarler/share2ns-perlbridge).

His code is actually pretty clean, so it shouldn't be too hard to unwind. I haven't used mc before, but can probably figure it out from looking at your code (although you could likely implement it much faster than it will take me). Anyways, if you have a look and can easily implement it and are willing to do so, I'd be very happy; if not let me know and I'll give it a go myself.

Best, Jason

On Sat, May 19, 2018 at 11:52 PM, tynbendad notifications@github.com wrote:

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock notifications@github.com wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390455775 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHnvYqPcCXcgbRvbI9cw9gQDg-AqVKh3ks5t0OhygaJpZM4UF75m

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390456433, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoaZGnTWZbtwAzeJAJ3EPRY7j2p96ks5t0O1ggaJpZM4UF75m .

jasonbehrstock commented 6 years ago

If that script doesn't work let me know, since i have a version on my computer which works (which I may have modified slightly, but don't remember since it was about 2 years ago). I don't own a garmin cycling computer yet which supports apps and data fields, but finding your code convinced me that I should so I will in the next few weeks. If I get a chance before you do, I'll make the modifications myself and send you the code.

Best, Jason

On Sun, May 20, 2018 at 12:20 AM, tynbendad notifications@github.com wrote:

Oh, that is very cool. I'll give it a try and if the perl script works I don't see any reason yet it shouldn't be possible from Garmin... Not sure when I'll be able to get to it though, minimum is a few weeks. Thanks, H

On Sat, May 19, 2018, 10:13 PM jasonbehrstock notifications@github.com wrote:

Thanks for the quick response. This person wrote an implementation to get data from share (https://github.com/jmarler/share2ns-perlbridge).

His code is actually pretty clean, so it shouldn't be too hard to unwind. I haven't used mc before, but can probably figure it out from looking at your code (although you could likely implement it much faster than it will take me). Anyways, if you have a look and can easily implement it and are willing to do so, I'd be very happy; if not let me know and I'll give it a go myself.

Best, Jason

On Sat, May 19, 2018 at 11:52 PM, tynbendad notifications@github.com wrote:

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock <notifications@github.com

wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390455775 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ AHnvYqPcCXcgbRvbI9cw9gQDg-AqVKh3ks5t0OhygaJpZM4UF75m

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390456433, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoaZGnTWZbtwAzeJAJ3EPRY7j2p96ks5t0O1ggaJpZM4UF75m

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390456678, or mute the thread https://github.com/notifications/unsubscribe-auth/AHnvYrg9XkW6t7noLHuYhSOu2jOqeXsXks5t0O8ggaJpZM4UF75m .

tynbendad commented 6 years ago

very nice - the script worked for me, i'll try to get this in soon.

tynbendad commented 6 years ago

fyi Jason, just wanted to let you know I haven't forgotten about this... I am waiting for Garmin to release Connect IQ SDK 3.0 so we can get the needed support, it was lacking something needed for dexcom unfortunately, but luckily they included it in 3.0. Unfortunately only some devices will be upgraded to 3.0 - I hope you bought something on the right hand column - regards, j:

On Sat, May 19, 2018 at 10:27 PM, jasonbehrstock notifications@github.com wrote:

If that script doesn't work let me know, since i have a version on my computer which works (which I may have modified slightly, but don't remember since it was about 2 years ago). I don't own a garmin cycling computer yet which supports apps and data fields, but finding your code convinced me that I should so I will in the next few weeks. If I get a chance before you do, I'll make the modifications myself and send you the code.

Best, Jason

On Sun, May 20, 2018 at 12:20 AM, tynbendad notifications@github.com wrote:

Oh, that is very cool. I'll give it a try and if the perl script works I don't see any reason yet it shouldn't be possible from Garmin... Not sure when I'll be able to get to it though, minimum is a few weeks. Thanks, H

On Sat, May 19, 2018, 10:13 PM jasonbehrstock notifications@github.com wrote:

Thanks for the quick response. This person wrote an implementation to get data from share (https://github.com/jmarler/share2ns-perlbridge).

His code is actually pretty clean, so it shouldn't be too hard to unwind. I haven't used mc before, but can probably figure it out from looking at your code (although you could likely implement it much faster than it will take me). Anyways, if you have a look and can easily implement it and are willing to do so, I'd be very happy; if not let me know and I'll give it a go myself.

Best, Jason

On Sat, May 19, 2018 at 11:52 PM, tynbendad notifications@github.com wrote:

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock < notifications@github.com

wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390455775 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ AHnvYqPcCXcgbRvbI9cw9gQDg-AqVKh3ks5t0OhygaJpZM4UF75m

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390456433, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoaZGnTWZbtwAzeJAJ3EPRY7j2p96ks5t0O1ggaJpZM4UF75m

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390456678, or mute the thread https://github.com/notifications/unsubscribe-auth/ AHnvYrg9XkW6t7noLHuYhSOu2jOqeXsXks5t0O8ggaJpZM4UF75m .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390456879, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoVdd97-I37nIob0Kl-ZQD_zGML26ks5t0PCpgaJpZM4UF75m .

jasonbehrstock commented 6 years ago

Thanks. I bought a 520 and I’ve been using it with your nightscout datafield implementation, which is great!

I actually modified the code for share and thought it should work, but it didn’t and I haven’t had time to debug. I do still think a share version would be good to have as the readings are more current and the platform is pretty robust.

Best, Jason

On Jul 31, 2018, at 9:18 PM, tynbendad notifications@github.com wrote:

fyi Jason, just wanted to let you know I haven't forgotten about this... I am waiting for Garmin to release Connect IQ SDK 3.0 so we can get the needed support, it was lacking something needed for dexcom unfortunately, but luckily they included it in 3.0. Unfortunately only some devices will be upgraded to 3.0 - I hope you bought something on the right hand column - regards, j:

On Sat, May 19, 2018 at 10:27 PM, jasonbehrstock notifications@github.com wrote:

If that script doesn't work let me know, since i have a version on my computer which works (which I may have modified slightly, but don't remember since it was about 2 years ago). I don't own a garmin cycling computer yet which supports apps and data fields, but finding your code convinced me that I should so I will in the next few weeks. If I get a chance before you do, I'll make the modifications myself and send you the code.

Best, Jason

On Sun, May 20, 2018 at 12:20 AM, tynbendad notifications@github.com wrote:

Oh, that is very cool. I'll give it a try and if the perl script works I don't see any reason yet it shouldn't be possible from Garmin... Not sure when I'll be able to get to it though, minimum is a few weeks. Thanks, H

On Sat, May 19, 2018, 10:13 PM jasonbehrstock notifications@github.com wrote:

Thanks for the quick response. This person wrote an implementation to get data from share (https://github.com/jmarler/share2ns-perlbridge).

His code is actually pretty clean, so it shouldn't be too hard to unwind. I haven't used mc before, but can probably figure it out from looking at your code (although you could likely implement it much faster than it will take me). Anyways, if you have a look and can easily implement it and are willing to do so, I'd be very happy; if not let me know and I'll give it a go myself.

Best, Jason

On Sat, May 19, 2018 at 11:52 PM, tynbendad notifications@github.com wrote:

Hi, no, sorry, it might be possible but I haven't seen a good enough description of what a dexcom share client needs to do (dexcom does not publish this so it would be something that has been reverse engineered.)

However, I do plan to support reading directly from xdrip+ and spike if you use either of those.

Regards, H

On Sat, May 19, 2018, 9:06 PM jasonbehrstock < notifications@github.com

wrote:

Any chance you have an implementation of this that allows one to get the BG from Dexcom Share (either through their portal or directly from bluetooth)? If so I'd be interested in trying it out! Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoUh4qsIlFB20SALohuyuz_dcMnYuks5t0N3QgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390455775 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ AHnvYqPcCXcgbRvbI9cw9gQDg-AqVKh3ks5t0OhygaJpZM4UF75m

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390456433, or mute the thread https://github.com/notifications/unsubscribe-auth/ ATtYoaZGnTWZbtwAzeJAJ3EPRY7j2p96ks5t0O1ggaJpZM4UF75m

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/ issues/1#issuecomment-390456678, or mute the thread https://github.com/notifications/unsubscribe-auth/ AHnvYrg9XkW6t7noLHuYhSOu2jOqeXsXks5t0O8ggaJpZM4UF75m .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-390456879, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoVdd97-I37nIob0Kl-ZQD_zGML26ks5t0PCpgaJpZM4UF75m .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tynbendad commented 5 years ago

fyi, finally debugged this and discussed with Garmin - they do not currently support query parameters on POST requests, which dexcom's server requires (at least as far as I have been able to figure). They have put this on their TODO list but they don't expect to get to it anytime soon.

bwardy commented 5 years ago

fyi, finally debugged this and discussed with Garmin - they do not currently support query parameters on POST requests, which dexcom's server requires (at least as far as I have been able to figure). They have put this on their TODO list but they don't expect to get to it anytime soon.

I'm guessing this makes it impossible to have your datafield use an auth token with Nightscout sites?

Thanks, Brendan

tynbendad commented 5 years ago

I think Nightscout could probably work, but I don't know how it uses auth tokens, have always used it with just an api secret. If you would like to work on it I can send you a .zip of the source. I'm kind of tired of Garmin development.

Regards, J

On Sat, Dec 22, 2018, 3:42 PM bwardy <notifications@github.com wrote:

fyi, finally debugged this and discussed with Garmin - they do not currently support query parameters on POST requests, which dexcom's server requires (at least as far as I have been able to figure). They have put this on their TODO list but they don't expect to get to it anytime soon.

I'm guessing this makes it impossible to have your datafield use an auth token with Nightscout sites?

Thanks, Brendan

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tynbendad/GarminCIQ-NightscoutData/issues/1#issuecomment-449602016, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoRH_FHXcUbH2hipCNidvWCvDj0Aaks5u7rVfgaJpZM4UF75m .

bwardy commented 5 years ago

I think Nightscout could probably work, but I don't know how it uses auth tokens, have always used it with just an api secret. If you would like to work on it I can send you a .zip of the source. I'm kind of tired of Garmin development. Regards, J On Sat, Dec 22, 2018, 3:42 PM bwardy @.*** wrote: fyi, finally debugged this and discussed with Garmin - they do not currently support query parameters on POST requests, which dexcom's server requires (at least as far as I have been able to figure). They have put this on their TODO list but they don't expect to get to it anytime soon. I'm guessing this makes it impossible to have your datafield use an auth token with Nightscout sites? Thanks, Brendan — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtYoRH_FHXcUbH2hipCNidvWCvDj0Aaks5u7rVfgaJpZM4UF75m .

Is there a way I can use your datafield if I set up an API Secret? I haven't seen how but possibly haven't looked closely enough. While the API Secret Method isn't the most secure, I guess it might be better than nothing. Thanks for your time... This datafield is awesome. However I can understand if you're tired of Garmin development.

Brendan

tynbendad commented 5 years ago

Nightscout with an API secret is the normal way to use this - the API secret isn't needed to view the website or use the watchface/datafield - its only used to upload data to Nightscout (e.g., from xdrip+, Spike, OpenAPS, or Loop.)