Git Product home page Git Product logo

chartmogul-geckoboard's Introduction

chartmogul-geckoboard

A simple ChartMogul - Geckoboard integration written in Node.js

Instructions for running locally

To modify the integration locally and see the changes reflected immediately within Geckoboard, follow these instructions.

Prerequisites

  • Node.js

Run locally

  1. Clone this repository and cd into it

    git clone [email protected]:bilbof/chartmogul-geckoboard
    cd chartmogul-geckoboard
  2. Add your ChartMogul and Geckoboard API keys to app.js

Open app.js, and add your chartmogulApiToken & chartmogulSecretKey found at https://app.chartmogul.com/#admin/api (admin permissions required).

Next, add your geckoKey. You can find this at https://<your_geckoboard_subdomain>.geckoboard.com/account/details.

  1. Create two custom widgets in your Geckoboard

a) Add a custom line chart to your Geckoboard dashboard

Important: Select 'Push' as the Method.

Add the `widgetKey` provided to line 25 of app.js. Make any additional changes to the chart settings from line 19 in app.js.
var lineGraph = {
	enabled: true, // turn this on or off with (true) or (false).
	metric: 'mrr', // see the Metrics API documentation for more options: https://github.com/chartmogul/metrics-api
	startDate: '2015-01-01', // start date of the line graph
	endDate: '2015-12-31', // end date of the line graph
	interval: 'month', // available options: day, week, month, quarter, year (depends on the metric, see the Metrics API documentation)
	widgetKey: 'your_geckoboard_line_graph_widget_key'
}

b) Add a custom Geck-O-Meter to your Geckoboard dashboard Important: Select 'Push' as the Method.

Add the `widgetKey` provided to line 35 of app.js. Make any additional changes to the Geck-O-Meter settings from line 29 in app.js.
  var geckoMeter = {
	enabled: true, // turn this on or off with (true) or (false).
	metric: 'mrr', // see the Metrics API documentation for more options: https://github.com/chartmogul/metrics-api
	startDate: '2015-01-01',
	endDate: '2015-12-31', // use the current date here.
	interval: 'month',
	widgetKey: 'your_geckoboard_line_graph_widget_key',
	min: '5000', // the minimum value of your GeckoMeter
	max: '15000' // the maximum value of your GeckoMeter
}
  1. Run app.js.

    node app.js

Further instructions can be found in the Geckoboard documentation and the ChartMogul Metrics API documentation.

chartmogul-geckoboard's People

Stargazers

 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.