GithubHelp home page GithubHelp logo

dyurk / jawboneup_to_graphite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanfrantz/jawboneup_to_graphite

0.0 2.0 0.0 124 KB

A little script for sending Sleep metrics from your Jawbone Up to Graphite

License: Other

Ruby 100.00%

jawboneup_to_graphite's Introduction

jawboneup_to_graphite

A little script for sending Sleep metrics from your Jawbone Up to Graphite

##Installation

This script requires a couple of gems to function. Run the following gem install commands before using:

gem install choice
gem install faraday
gem install jawbone-up

##Instructions

Before using the script, you'll need to get a XID and Token from Jawbone to use with the script. To do this, run the script with the --get-token option and enter your Jawbone Up username and password as below. The script will then return an XID and Token.

$> ./jawboneup_to_graphite.rb --get-token
Jawbone Username: [email protected]
Jawbone Password: mypassword
Token: bhdoijfoijdoipjfdspad
Xid: sdsajdosajdioaj

The next step is to copy your XID and Token into the xid and token variables at the top of the jawboneup_to_graphite.rb script. You'll also want to set your graphite host, port, and the prefix you want to give your metrics:

xid = 'bhdoijfoijdoipjfdspad'
token = 'sdsajdosajdioaj'
graphite_host = "my.graphite.server"
graphite_port = "2003"
metric_prefix = "me.jawbone.sleep"

Now you just need to run the script whenever you Sync your Jawbone Up, and it'll send your sleep metrics to graphite ready for adding to Dashboard, creating Nagios alerts and so on.

Please note, each time it's run, the script will send all sleep data dated since yesterday at midnight to graphite. This avoids sending repeated old data to your graphite server.

jawboneup_to_graphite's People

Contributors

avleen avatar dyurk avatar jonlives avatar lozzd avatar ryanfrantz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.