Giter Club home page Giter Club logo

torquemate's Introduction

TorqueMate

A data logger inspired by TeslaMate, but was designed for any cars that provide data through OBDII and Torque Android application.

How it works?

flowchart LR
    car[๐Ÿš— Your car] <--> obd2[OBDII Reader] <-->|Bluetooth| torque[๐Ÿ“ฑ Torque Android App]
    torque -->|HTTP| torquemate[TorqueMate]
    torquemate --> postgres[โ› Postgres]
    grafana[Grafana] --> postgres
Loading

Components

This project consists of two parts:

  1. Web server written in C# using ASP.NET for receiving messages sent from Torque application and save to Postgres database.
  2. Grafana Dashboards that you can import to your Grafana instance to visualize the data collected by the web server.

Screenshots

TorqueMate Basic

TorqueMate Basic

Deployment

Prerequisites

  1. Docker
  2. Postgres 16
  3. Grafana 10

1. Setup Postgres instance

Create a new Postgres 16 instance, it could be on cloud or on your local server, and use ./migrations/bootstrap.sql to automatically get the database schema ready.

2. Setup TorqueMate web server

Once you have your Postgres database, to start the web server, you'll need to provide the connection string to your database to the container environment variable.

docker run \
-p 5147:5147 \
-e ConnectionStrings__NpgsqlTorqueDatabase="Host=<YOUR_DATABASE_URL>; Port=5432; Database=<YOUR_DATABASE_NAME>; Username=<YOUR_DATABASE_USERNAME>; Password=<YOUR_DATABASE_PASSWORD>" \
ghcr.io/jeeyo/torquemate:latest

3. Setup Grafana

Create a new Grafana instance, setup a new data source to connect Grafana to your Postgres instance.

Then go to https://<YOUR_GRAFANA_URL>/dashboards/import, then import each dashboard JSON file in grafana directory.

4. Setup Torque Android Application

TODO

See docker-compose.yml

torquemate's People

Contributors

jeeyo avatar

Stargazers

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