Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
/ MDroid-Core Public archive

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

Notifications You must be signed in to change notification settings

qcasey/MDroid-Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDroid-Core

Build Status Go Report Card

Controls Control App

Watch Intgration

Galaxy Watch Integration

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 available 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.
  • 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.

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages