Brian May 2b5cdbdffd Add nix flake (#3485)
This will add support for nix flakes. Which really helps with my
development on nixos. This has two basic parts:

1. DEVELOPMENT

After this you can use the following commands on computer with nix and a
patched version of direnv:

direnv allow
devenv up

And it will automatically start and instance of postgresql and mosquitto
for development.

And the environment variables are already configured for teslamate.

So then can start teslamate with:

npm install --prefix ./assets && npm run deploy --prefix ./assets
iex -S mix phx.server

This part is all working as designed. And pretty simple and straight
forward.

2. NIX PACKAGE OF TESLA

This is 99% complete, but some pain points I haven't addressed yet.
Because I don't yet know of good solutions.

* There are two checksums in flake.nix that needs to be updated whenever
  mix.lock or package-lock.json changes.
2024-03-19 09:37:17 +01:00
2024-03-19 09:37:17 +01:00
2024-03-19 09:37:17 +01:00
2024-03-19 09:37:17 +01:00
2023-11-22 12:49:28 +01:00
2023-06-10 18:44:18 +02:00
2021-09-22 22:07:14 +02:00
2024-03-19 09:37:17 +01:00
2024-03-19 09:37:17 +01:00
2023-06-11 13:16:54 +02:00
2024-03-19 09:37:17 +01:00
2021-01-31 17:08:02 +01:00
2024-03-19 09:37:17 +01:00
2024-03-19 09:37:17 +01:00
2019-07-24 19:38:09 +02:00
2020-10-04 19:09:17 +02:00
2021-09-30 19:19:29 +02:00
2024-02-15 13:40:45 +01:00

TeslaMate

CI Publish Docker images

A powerful, self-hosted data logger for your Tesla.

  • Written in Elixir
  • Data is stored in a Postgres database
  • Visualization and data analysis with Grafana
  • Vehicle data is published to a local MQTT Broker

Documentation

The documentation is available at docs.teslamate.org.

Features

Dashboards

General

  • High precision drive data recording
  • No additional vampire drain: the car will fall asleep as soon as possible
  • Automatic address lookup
  • Easy integration into Home Assistant (via MQTT)
  • Easy integration into Node-Red & Telegram (via MQTT)
  • Geo-fencing feature to create custom locations
  • Supports multiple vehicles per Tesla Account
  • Charge cost tracking
  • Import from TeslaFi and tesla-apiscraper

Screenshots

Drive Details Web Interface

MORE SCREENSHOTS

Credits

S
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-02-27T09:17:33.534Z
Readme MIT 95 MiB
Languages
Elixir 88.9%
HTML 6.3%
JavaScript 1.8%
MDX 0.9%
Nix 0.6%
Other 1.4%