Commit Graph

19 Commits

Author SHA1 Message Date
jlestel
b900a98d08 feat: Respect Retry-After header on 429 response code (#3943)
* Respect 429 response code instructions

* format

* up

* up

---------

Co-authored-by: Julien <julien@citio.digital>
2024-06-07 10:10:35 +02:00
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
Adrian Kumpf
e243645abb Add Dialyzer 2023-06-10 18:44:18 +02:00
Franco Mossotto
6359f15287 Charging curve on Charging Stats and Charge Details dashboards (#2152)
* Charging curve on grafana dashboards

* charging stats curve add average line

* using median instead of average

* Trace labels

* SuC curve color by age

* Add median power to DC charge curve

Inspired by #2152

* Always use charger_power

* Integrate DC charge curve into Charging Stats

* Change colors

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
2022-04-22 14:53:18 +02:00
Adrian Kumpf
796d0c8ef4 Update phoenix to 1.6.0 2021-09-24 22:39:26 +02:00
Adrian Kumpf
70468ea762 Migrate from webpack to esbuild 2021-09-22 22:07:14 +02:00
Adrian Kumpf
2eca00ee52 Partially revert changes to .gitignore 2020-03-18 15:35:43 +01:00
DrMichael
361d4d5cd9 Add states to overview dashboard (#520)
* Added States to Overview

* Added \n at the end
2020-03-18 15:25:02 +01:00
Adrian Kumpf
30494869ae Move to npm everywhere 2020-02-12 13:42:40 +01:00
Adrian Kumpf
6641874439 Improve locale detection 2020-02-07 13:21:05 +01:00
Adrian Kumpf
f61315cb10 Implement TeslaFi import
Closes #316
2020-02-07 13:21:05 +01:00
Christian Traber
683352eb64 added usable_battery_level and projected range to summary view 2020-01-14 14:52:22 +01:00
krezac
8ec38045a2 Initial version of Shortcuts guide (#200)
* 0 version, no picture, not all labels are correct

* relative path to imgs test

* test image added

* image test 2

* image test 3

* image test 4

* image test 5

* pictures added

* pictures added to page (unorganized)

* img moved 1

* imgs 2

* img 4

* Update ShortcutsSetup.md

imgs 5

* imgs 7

* imgs 8

* icon added

* no lock required by tests
2019-10-21 11:06:11 +02:00
Adrian Kumpf
93033ee0ff Add mapping provider 2019-08-28 12:48:05 +02:00
Adrian Kumpf
a783b11f8c Delete canceled updates 2019-06-19 22:57:30 +02:00
Adrian Kumpf
439fa0ff47 Add grafana dashboards 2019-06-13 17:01:03 +02:00
Adrian Kumpf
76208a456c Rename otp app 2019-04-07 13:42:51 +02:00
Adrian Kumpf
9a11c4b7e7 Build docker container with release 2019-04-07 13:14:40 +02:00
Adrian Kumpf
3d95859dfe Initial commit 2019-03-31 14:00:40 +02:00