Comments (26)
Tutorial Establishing Connection Strings
-
log into azure
Find the Configure tab -
Add environment variables:
- DEXCOM_ACCOUNT_NAME, Custom type, should be your Dexcom Sharer user name.
- DEXCOM_PASSWORD, Custom type, should be your Dexcom Sharer password.
- Pre-requisite, you should have
API_SECRET
already defined in order to enable the Web API. If it's not there add it now. Only requirement is that it be at least 12 characters long. Type anything in there, make it long.
from share2nightscout-bridge.
Tutorial: Getting the latest bridge
-
Visit the releases page
- https://github.com/bewest/share2nightscout-bridge/releases/latest
This link will always take you to the latest release.
At time of this writing the latest release looks like this: .
- https://github.com/bewest/share2nightscout-bridge/releases/latest
-
nightscout-sidecar.zip Download this file to your computer. You can simply click on it and it will download.
from share2nightscout-bridge.
Tutorial: Creating Azure Sidecar (eg WebJob)
- Find the WEBJOBS tab:
Click the Add to create a new job: - Type a name, like
share-ns-bridge
, use the nightscout-sidecar.zip from the previous step, to upload, and confirm the dialog: - After confirming the dialog, a new job will transition to the
Running
state after a few moments if all goes well: .
Ready
Within a few moments, your nightscout rig should receive data, pebble and website should continue to work.
It should look something like this:
from share2nightscout-bridge.
Leave comments/feedback/critiques below.
Really, success stories, questions, "what does this mean?" all welcome. Make sure you are logged into github in order to see the comment box:
from share2nightscout-bridge.
from share2nightscout-bridge.
from share2nightscout-bridge.
from share2nightscout-bridge.
These instructions, combined with the nightscout.info directions for setting up the database and website, worked great for me on my first try. I never used Nightscout before the Dexcom Share came out, so I was starting totally new, and I don't have programming experience.
I signed up for a paid Azure account (Basic, I think?), and will keep an eye on whether it starts to get expensive.
This morning I was able to apply the updated job, which enabled the trend arrows. That process was also straightforward and immediately successful. Wonderful work. Thank you.
from share2nightscout-bridge.
A comment on the CGM in the Cloud post stated that the site needs to be turned to always on. This is not apparent in the tutorial.
from share2nightscout-bridge.
Hi all, apologies for my butchering of terminology here... I can see in the logs for my sidecar webjob on the Azure configure interface that the webjob IS pulling data from SHARE - it has data there that come from after I had unplugged my share receiver from my uploader phone... But these aren't getting pushed to my NS website and the webjob says it's shutting down.
Thanks in advance for any help.
Logs:
[03/20/2015 00:40:08 > fbb0ee: SYS INFO] WebJob is stopping due to website shutting down
[03/20/2015 00:40:08 > fbb0ee: SYS INFO] Status changed to Stopping
[03/20/2015 00:40:13 > fbb0ee: ERR ] Thread was being aborted.
[03/20/2015 00:40:13 > fbb0ee: SYS INFO] WebJob process was aborted
[03/20/2015 00:40:13 > fbb0ee: SYS INFO] Status changed to Stopped
[03/20/2015 00:40:21 > fbb0ee: SYS INFO] Status changed to Starting
[03/20/2015 00:40:22 > fbb0ee: SYS INFO] Run script 'index.js' with script host - 'NodeScriptHost'
[03/20/2015 00:40:22 > fbb0ee: SYS INFO] Status changed to Running
[03/20/2015 00:40:25 > fbb0ee: INFO] RUNNING failures 0
[03/20/2015 00:40:25 > fbb0ee: INFO] Fetching new token
[03/20/2015 00:40:25 > fbb0ee: INFO] RUNNING failures 0
[03/20/2015 00:40:26 > fbb0ee: INFO] Entries [ { sgv: 142,
[03/20/2015 00:40:26 > fbb0ee: INFO] date: 1426811866000,
[03/20/2015 00:40:26 > fbb0ee: INFO] dateString: '2015-03-20T00:37:46.000Z',
[03/20/2015 00:40:26 > fbb0ee: INFO] trend: 4,
[03/20/2015 00:40:26 > fbb0ee: INFO] direction: 'Flat',
[03/20/2015 00:40:26 > fbb0ee: INFO] device: 'share2',
[03/20/2015 00:40:26 > fbb0ee: INFO] type: 'sgv' } ]
[03/20/2015 00:40:30 > fbb0ee: INFO] Nightscout upload error null status 200 []
from share2nightscout-bridge.
That looks like a successful log, @thefutureofamerica.
The "error" in this situation is "null," meaning no error, and the status of 200 is successful.
There should be data starting to show up in Nightscout.
from share2nightscout-bridge.
Thanks Ben, it did eventually start receiving data. My NS website was weird for a couple hours because it had data from my MotoG uploader (with wrong time-stamps) and from Share (with correct time-stamps) that were all showing up together - but after I left the NS uploader disconnected for an hour or two it sorted itself out. It worked flawlessly overnight. Thanks for developing this!
from share2nightscout-bridge.
BTW, you did not butcher any terms, you submitted a fantastic report. Perfectly understandable and all terms used correctly. :-)
from share2nightscout-bridge.
Ben, this is remarkable Excellent job, easy to follow directions. It worked perfectly.
from share2nightscout-bridge.
One thing, I initially had Enchilada (dev) deployed and it would not work. Once I changed to master it worked fine.
from share2nightscout-bridge.
I stand corrected, re-deployed Enchilada and this time it is working fine. Maybe I didn't wait ling enough the first time.
from share2nightscout-bridge.
question.. can my son wear his pebble even when his dexcom share is using Bluetooth with his iPhone? can the iPhone handle both share and pebble ?
my husband and I both got our watches to display but my sons wont work
from share2nightscout-bridge.
I have not received my dexcom yet but based off the set-up, I think you will still need the nightscout set-up on the IPhone to push it to the pebble watch. Unless someone has been able to create an app in the pebble app to be compatible with the Share2 app. Hope this helps, I wont have out dexcoms till Sat and will update if you need.
from share2nightscout-bridge.
To get the Pebble watch working with the share2nightscout-bridge you will need:
- Nightscout website running
- Share2nightscout-bridge job running
- Pebble app installed on your iPhone with the Nightscout watchface.
- Configure Pebble app with the correct endpoint ie. HTTPS://nickname.azurewebsites.net/pebble
from share2nightscout-bridge.
Sidecar deployment to the Azure Web Job was flawless and I started seeing CGM data right away.
What I've found since is that there are intermittent lapses in data which I've been able to correct a couple of times by either restarting the Azure Web Site or checking on the Share2 App and finding that it was in an interim state of not sending data. Seems that simply clicking on the Status icon on the Share2 app recovers the issue so I am not sure if this is a bug with the app and wondering if anyone else is seeing this?
One theory I have is that since I haven't found a way to ensure the app runs under lock screen, perhaps it stops running and thus transmitting data? Clearly not a Nightscout issue if that's the case but again curious if others are having to nudge the app from time to time?
Also, I did find the following log entries interesting:
patientData 5
running update
running loadData
patientData 5
running emitData 1427206648850 5
running update
running loadData
data isn't different, will not send to clients
patientData 5
running update
running loadData
data isn't different, will not send to clients
patientData 5
running update
running loadData
patientData 5
running emitData 1427206828882 5
running update
running loadData
data isn't different, will not send to clients
patientData 5
I need t spend some more time with the code but wondering if the Sidecar isn't sending data after a while because it thinks its the same as the last insert to Mongo?
from share2nightscout-bridge.
we have the same issue. my son is so used to closing apps after he is done using them to conserve data that he is constantly closing the share app. very annoying and hoping dexcom is working on a fix for this! Our pebbles are working great and we are using the follow app on our iphones so now we have the best of both worlds. It is truly amazing! Lots of items to charge at the end of the day but well worth it.
from share2nightscout-bridge.
Is there something I need to change to get trend data? All of my sgv values are being entered correctly and timestamped accurately, but every record's has the same "trend": 4, & "direction": "Flat" values regardless of what the trend is actually doing.
(didn't have this issue when I used android uploader, this seems only to be happening with share2 bridge)
If relevant I'm using heroku for both my ns site and this app.
from share2nightscout-bridge.
Do you have the latest release of sidecar? The original release did not have the "trend" feature.
from share2nightscout-bridge.
Just merged latest changes into my repository. Is there a need for me to maintain my own fork of this repository if I plan on just keeping them in sync?
from share2nightscout-bridge.
You do not need to keep your repo updated. You will need to make sure you use the latest version of sidecar if you are using Azure. For Heroku, the correct version will automatically be selected.
from share2nightscout-bridge.
I believe you can click on Ben's deploy to Heroku button
from share2nightscout-bridge.
Related Issues (20)
- battery status
- Document the Share API HOT 12
- understanding azure billing HOT 3
- get more data from share API HOT 6
- Web Job stops
- Missing CHO absorption rate
- Password and username HOT 2
- Bridge seems to require alpha-numeric Dexcom passwords HOT 3
- Connection to Dexcom share does not work HOT 2
- EU server not working HOT 3
- Pernille b’s
- Dexcom
- Special Characters in Dexcom username issue HOT 4
- Dexcom HOT 1
- Dexcom is returning Trend a string, not an integer in EU region HOT 6
- Trouble logging in HOT 1
- Does anyone know why the api LoginPublisherAccountByName always return a default session id HOT 5
- Host as docker container HOT 1
- Login error for users with '+' in their account names HOT 1
- Misc. Discussion (Technical) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from share2nightscout-bridge.