Giter Site home page Giter Site logo

obdflux's Introduction

obdflux

An agent for collecting automotive metrics from OBD-II system on InfluxDB

Currently, this project is a WORK IN PROGRESS, so consider it useful for experimentation. Use at your own risk.

Building

GO111MODULE=on go build

Configuration

obdflux requires a running instance of InfluxDB to connect to. You can use your own installation or just use the provided docker-compose.yml by:

docker-compose up -d

Once your InfluxDB is up and running, create a new database by running:

docker-compose run influxdb-cli

then

CREATE DATABASE obdflux

Finally, create the .env file:

cp .env.example .env

and modify it if needed (or just leave it as is, if you're using the included docker-compose.yml).

Usage

To start, you need an ELM327 compatible device connected to your system and get the path to the device. For futher information on how to get the device path, please refer to the Go library elmobd which is used by obdflux to handle the underlying OBD-II specs and device serial communication.

Once you know the your device path (e.g. /dev/ttyYOUR_USB_DEVICE), run obdflux:

./obdflux --serial=/dev/ttyYOUR_USB_DEVICE

Testing

In order to test obdflux without a real device you can use the --test=true option. Finally, if you need a more verbose output, you can turn on debugging mode by setting --debug=true option.

Example:

./obdflux --test=true --debug=true

Demo

Test drive

License

MIT

obdflux's People

Contributors

leogr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.