Code Monkey home page Code Monkey logo

mdroid-core-public's Introduction

MDroid-Core

Build Status Go Report Card

Controls Control App

Watch Intgration

Galaxy Watch Integration

REST & GraphQL API for vehicle data. It is the backbone to several projects allowing remote access to my car and its data.

Motivation

I wanted a hub to ingest different kinds of data from sources on my car, as well as store this data and make it queryable for other programs. Some sources are from my interfaces to the stock buses like PyBus or CAN, others are inputs like GPS or Drok UART.

The board it's riding has an always-on LTE connection, giving me real time updates and control. Inspired by Tesla's app implementation.

Benefits

  • Incoming data is stored in InfluxDB: a performant time series Database.
  • Pipelines data to one location that can be reliably queried, using raw JSON or GraphQL.
  • Stores persistent settings for other machines on the network.
  • Can lower windows, open trunk, turn on hazards remotely, etc by mapping queries to the BMW K-Bus).
  • It's written in Go, runs on OpenWRT ARM boards in the MUSL compiler. Try it, the MUSL bin is cross-compiled.

GraphQL

Requirements

Installation

Having InfluxDB & the rest of the TICK stack is recommended, although a neutered version will run fine without it.

go get github.com/qcasey/MDroid-Core-Public/

Usage

MDroid-Core --settings-file ./settings.json

The difference between settings and session values

Generally, Settings are persistent and saved to disk frequently. Session values are not.

Example Setting Values

  • Wait time after power loss to shutdown
  • Vehicle lighting mode
  • Meta program settings

Example Session Values

  • Speed
  • RPM
  • GPS fixes
  • License plate sightings

Naturally, Session values are the more interesting to see change over time.

mdroid-core-public's People

Contributors

qcasey avatar

Watchers

James Cloos 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.