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.
* 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>
* 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