GithubHelp home page GithubHelp logo

joelvim / sensit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.55 MB

A little utility that provides a callback receiver that stores measures in an InfluxDB database

License: MIT License

JavaScript 5.95% Go 94.05%

sensit's Introduction

Sensit

sensit command allows to lauch a small server that receives callbacks from the sensit server and stores the measures in an InfluxDB timeseries database.

Building

Prerequesites

To build the command you must have installed :

Checkout the code

You can checkout the code with a git clone or with a

go get github.com/joelvim/sensit

Build the executable

To build the executable, enter

cd $GOPATH/github.com/joelvim/sensit
godep go build

You should get the sensit command in the folder.

If you want to install the sensit command in your path, run :

cd $GOPATH/github.com/joelvim/sensit
godep go install

This command will compile the executable and copy it in the $GOPATH/bin directory. Just add this directory in your $PATH env variable, and play with it.

Usage

The command is documented, just type sensit -h to get the help.

HTTP API

The server provides 2 endpoints

/ping #healthcheck your app
/api/v1/temperature #receive the metrics.

What's missing

  • SSL Support : the application does not support SSL but is targeted to be behind a proxy like nginx or Apache HTTP.
  • Support for other metrics than temperature
  • Support for periodic callback types : agregation is made by the TSDB, we don't need preagregated data.

Coming soon (or later)

  • Command to import the history by extracting it from the Sensit API.

sensit's People

Contributors

joelvim avatar

Watchers

James Cloos avatar

Forkers

fab30

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.