StephenBlackWasAlreadyTaken / xDrip

Android Application that collects dex signals, allows calibrations, and uploads
GNU General Public License v3.0
208 stars 176 forks source link

broadcast locally #179

Open danpowell88 opened 7 years ago

danpowell88 commented 7 years ago

How exactly does this work, is there anyway to have another app on the phone hit a local http endpoint and receive the latest values?

Looking to do this as a hack around Garmin Api only allowing communication via http and wanting to have it work when I can't directly connect to nightscout.

Rytiggy commented 6 years ago

+1

naftis commented 5 years ago

@StephenBlackWasAlreadyTaken, this is the first search result for "xdrip broadcast locally". How can developers integrate into xDrip using this? Some information should be here; is there a example source code from an app I can use, or is there documentation somewhere? Would definitely appreciate some help!

Rytiggy commented 5 years ago

Hey @naftis you can access data on xDrip by turning on the xDrip Web Service to do that follow the steps below: Navigate to Settings -> Inter-App settings -> xDrip Web Service -> ON

then once you have that enabled you can view the blood sugars by going to this url http://127.0.0.1:17580/sgv.json on your phone.