Skip to content
REST & GraphQL API for vehicle data. It is the backbone to several projects allowing remote access to my car and its data.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
db
format
module
mserial
pybus
sessions
settings
.gitignore
.travis.yml
README.md
config.go
graphql.go
hooks.go
main.go
power.go
routes.go
routes_test.go

README.md

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/

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.

You can’t perform that action at this time.