kevinconroy / cgm-simple-spark

a simple pebble cgm watchface with a sparkline.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Simple CGM Spark

BG is within user-specified range Alert that BG is out of user-specified range

Download from the Pebble Store

Download this to your Pebble watch

Important User Notice

This app is not supported or endorsed by Dexcom. Simple CGM MUST NOT BE USED TO MAKE MEDICAL DECISIONS. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

The watchface requires:

Other CGM Watchfaces

This is just one of many CGM watchfaces available for the Pebble. This watchface aims to provide a simple, glanceable overview of the data available from Dexcom Share or a Nightscout server. If you are looking for an additional feature that this watchface doesn't have, explore some of the other options available at http://www.nightscout.info/wiki/cgm-watchfaces.

Developers

To get started, we recommend that refer to the Pebble Developer site.

Homebrew for Local Development

brew install pebble/pebble-sdk/pebble-sdk

Rapid Local Development with gulp

To enable rapid iteration on your local machine, you can use gulp to watch for changes to your code, build the files, and automatically install it to your Pebble (or launch an emulator) just by saving your edits. Gulp requires that you have Node installed locally.

# Install node if you don't already have it
brew install node

# Switch to the working directory
cd {cgm-simple-spark}

# Download the node modules for gulp to run
npm install

On your first run, you'll want to review the variables set at the top of gulpfile.js and edit them to fit your needs.

Once you have the node environment ready, running gulp is as simple as:

gulp watch

Eclipse

To setup a development environment in Eclipse or other C editor, you'll want to setup a soft link to pebble.h so that your local source can easily compile. To do this.

PEBBLE_INC=$(pebble sdk include-path chalk) ln -s "$PEBBLE_INC/pebble.h" pebble.h

Credits

Made with love for Evan and Tyler.