The goal of Project-Glu is to use a small amount of glue to bring lots of existing things together to make managing my son's T1D easier and safer. The intial focus is on data from the Dexcom G4, but later I'd like to include carbs, insulin, and activity data.
I have a forked version of @jcostik's original-android-app running on a Moto G and have it posting simple json to this web app, I'm planing to replace this with a locally running instance of the tidepool platform.
I also have a forked version of NightScout that uses the same mongo db as the basic web-app and a forked version of cgm-pebble that connects to the project-glu endpoint to display the current BG value on a Pebble watch.
For quick, easy, and repeatable deploys I'm using vagrant. To give it a try follow these steps:
- clone repo
git clone https://github.com/jasoncalabrese/project-glu.git; cd project-glu
- install vagrant
- setup a digital ocean account: use promo code 'SSDMAY10' for 2 free months - link includes my referral code
- install https://github.com/smdahlen/vagrant-digitalocean
- configure dropbox: https://github.com/andreafabrizi/Dropbox-Uploader
- Set ENV VARS
* use the Digital Ocean api page to find your values for: DO_CLIENT_ID, DO_API_KEY
*
DB_CONF="/Users/<YOU>/.dropbox_uploader"
ORDB_CONF="/home/<YOU>/.dropbox_uploader"
vagrant up --provider=digital_ocean
and wait (I'm using a mac and have no idea if this would/could work from windows)- done
Running the vagrant up
command above should have:
- launched an brand new server at digitalocean, called a droplet ($5/month)
- installed node, mongo, git, nginx, etc
- cloned all the required repos
- ran the required setups: npm, bower, grunt, etc
- downloaded a backup from your dropbox (if configured)
- started everything
- installed a cron script that runs nightly to backup data to dropbox
Once all of that is done and assuming there were now big errors you should be able to:
In links below replace YOUR_DROPLET_IP with the IP address of your droplet, this should be one of the last lines after running vagrant up
or you can find it at digital ocean
- See NightScout running on your brand new droplet
- See the Project-Glu login on your droplet
- And if those work, update the Android uploader so it can start uploading to you're new droplet (more info comming later)
Tracking ideas/progress on trello