Commit Graph
2482 Commits
Author SHA1 Message Date
Matthias Wirtz 183bd2e252 feat: use Grafana 11.0.6-security-01 (#4279) 2024-10-20 09:35:49 +02:00
Matthias Wirtz 955bde3cb6 fix: number of drives per day in drive stats (#4285) 2024-10-20 09:33:43 +02:00
JakobLichterfeld c87b8976c3 docs: add recommended RAM size (#4278)
* docs: add recommended RAM size

* docs: update changelog
2024-10-19 16:22:55 +02:00
Jakob Lichterfeld 2869acac9a docs: update changelog 2024-10-19 16:12:52 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> bad53cef65 build(deps): bump crate-ci/typos from 1.22.9 to 1.26.0 (#4261)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.22.9 to 1.26.0.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/c16dc8f5b4a7ad6211464ecf136c69c851e8e83c...6802cc60d4e7f78b9d5454f6cf3935c042d5e1e3)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-19 16:12:30 +02:00
Jakob Lichterfeld 776de2bfd1 docs: update changelog 2024-10-19 16:02:55 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> d2a4290d5c build(deps-dev): bump credo from 1.7.1 to 1.7.8 (#4238)
Bumps [credo](https://github.com/rrrene/credo) from 1.7.1 to 1.7.8.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/commits/v1.7.8)

---
updated-dependencies:
- dependency-name: credo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-19 16:02:35 +02:00
Jakob Lichterfeld 3f02f370e9 docs: update changelog 2024-10-19 15:59:09 +02:00
Matthias Wirtz 9adc7dd8b0 perf-improvements-drive-stats (#4258) 2024-10-19 15:58:24 +02:00
Jakob Lichterfeld 8205750256 style: add custom words for spell check 2024-10-19 15:55:14 +02:00
Jakob Lichterfeld 75bee3383a docs: update changelog 2024-10-19 15:52:04 +02:00
Long Zheng 123f7ab63c docs: fix Home Assistant MQTT sensor JSON templates warnings (#4257)
* Fix Home Assistant active route MQTT sensor JSON templates

More gracefully handles JSONs with error (not actively routing)

* Fix tesla_active_route_distance_to_arrival_km sensor

* Fix template sensors

Conditionally convert values if the sensor actually has a value, to prevent converting invalid non-numeric values

* Fix copy/paste mistakes
2024-10-19 15:51:28 +02:00
Jakob Lichterfeld 39c9a14de5 docs: update changelog 2024-10-19 15:50:31 +02:00
Matthias Wirtz 2b36bad743 perf: fix skipping streaming data in charging stats (#4252)
* perf-fix-skipping-streaming-data

* use drives instead of positions for another 60x improvement
2024-10-19 15:49:23 +02:00
Jakob Lichterfeld beec208a21 ci(refactor): only run check paths workflow when called 2024-10-19 14:44:49 +02:00
Jakob Lichterfeld dc02763e61 docs: update changelog 2024-10-19 14:41:35 +02:00
Jakob Lichterfeld 0dd5ef1076 ci(fix): cleanup caches when pr is closed without version pinning 2024-10-19 14:40:06 +02:00
JakobLichterfeld b110106ca3 docs: update changelog (#4276) 2024-10-19 13:20:48 +02:00
Jakob Lichterfeld 0410593850 ci(fix): run ghcr build as separate workflow to fix permission issues with forks 2024-10-19 12:54:07 +02:00
Jakob Lichterfeld 52ace50412 docs: update changelog 2024-10-19 11:54:55 +02:00
Jakob Lichterfeld b2ac33cd2d stlye: linter findings 2024-10-19 11:54:32 +02:00
Jakob Lichterfeld 99a887c463 docs: update changelog 2024-10-19 11:37:04 +02:00
Jakob Lichterfeld 9e6a2758d5 ci(fix): correct syntax in ghcr_build workflow for workflow_call 2024-10-19 11:35:43 +02:00
Jakob Lichterfeld 7f39aaffcc docs: update changelog 2024-10-19 11:34:23 +02:00
Jakob Lichterfeld 688147e2cf ci(fix): run ghcr build in DevOps workflow for forks 2024-10-19 11:32:51 +02:00
Jakob Lichterfeld 773a58e023 docs: update changelog 2024-10-17 13:13:28 +02:00
Jakob Lichterfeld 75cfc7cdd4 ci: cleanup caches when pr is closed 2024-10-17 13:12:44 +02:00
Jakob Lichterfeld f6ba2b0cfd ci(fix): correct syntax in ghcr_build step check 2024-10-15 18:12:50 +02:00
Jakob Lichterfeld 9a4e80cc46 docs: update changelog 2024-10-14 11:56:11 +02:00
Jakob Lichterfeld 40dab3e2a9 ci: pin ubuntu-24.04 as runner os 2024-10-14 11:53:45 +02:00
Jakob Lichterfeld 6584276fef docs: changelog 2024-10-14 10:24:01 +02:00
Jakob Lichterfeld 022b173430 ci(fix): only run ghcr build in DevOps workflow on own repo 2024-10-14 10:22:42 +02:00
Jakob Lichterfeld a26f7a093b docs: update changelog 2024-10-14 09:01:36 +02:00
Jakob Lichterfeld 40a5ca1b34 build(deps): bump actions/checkout from 4.1.7 to 4.2.1 2024-10-14 09:01:15 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 509f3287e5 build(deps): bump actions/checkout from 4.1.7 to 4.2.1 (#4262)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 08:59:12 +02:00
JakobLichterfeldandscottbot95 fdf8185ce2 ci: add treefmt as code formatting multiplexer, refactor CI to avoid duplication, reorg CI into DevOps workflow (#4219)
* ci: add treefmt as code formatting multiplexer

* style: linter findings in entrypoint.sh script

* style: linter findings for yaml and yml

* style: linter findings for json files

* style: linter findings for nix files

* style: linter findings for js files

* style: linter findings for dashboards.sh

* style: linter findings for md and mdx files

* chore: remove unused clang formatter in treefmt config

* style: linter findings for mdx files

* ci: exclude Grafana dashboard JSON files from prettier formatting

* Revert "style: linter findings for json files"

This reverts commit f40c2e1759.

* ci: exclude Grafana dashboard JSON files from all formatting as we use the grafana export style

* style: linter findings for json files

* doc: update changelog

* ci(refactor): use composite action to avoid duplication in elixir workflow

* doc: update changelog

* ci: prevent workflow runs for certain conditions and allow scheduled runs

* ci(refactor): use reusable workflow to check paths

* ci(fix): correct output syntax for check_paths workflow and setting base branch

* ci(refactor): use reusable workflows for streamlined DevOps pipeline

* ci(fix): add write permission for packages in DevOps workflow

* ci(test): test DevOps workflow

* ci(test): test DevOps workflow

* ci(fix): Update condition for spell_check, ensure_linting, elixir, and ghcr_build workflows to reflect empty result instead of false

* ci: revert test DevOps

* ci(refactor): allow ghcr_build parallel to elixir test

* ci(refactor): Remove redundant check_paths job from elixir.yml, elixir_test.yml, and spell_check.yml workflows, check is done in devops.yml

* feat: add treefmt-nix to nix flake (#4219 - @JakobLichterfeld)

* ci: ensure proper linting via treefmt

* ci(test): test ensure_linting workflow

* ci(fix): checkout code for spell_checker to access file to check

* ci(fix): allow impure in ensure_linting workflow

* Revert "ci(test): test ensure_linting workflow"

This reverts commit a67b17ec09.

* ci(fix): correct use of flake-utils for formatter and checks

Co-authored-by: scottbot95 <scottbot95@gmail.com>

* ci(fix): correct use of flake-utils for treefmt

Co-authored-by: scottbot95 <scottbot95@gmail.com>

* refactor: Remove unnecessary imports in flake

* ci(fix): correct syntax in flake

* ci(refactor): Remove unused code in flake.nix

* style: standardised style for input url in flake

* ci(fix): treefmt-nix config with existing options

* ci(feat): Add Nix binary cache and update treefmt command in CI workflow

* ci(refactor): Remove unused code in flake.nix

* fix: include devShell packages only on supported platforms

* fix: update hash for mix-deps package in flake.nix

* ci(fix): Update treefmt command in CI workflow

* ci(test): test ensure_linting workflow

* feat: ensure mix deps are present in devShell

* ci(feat): use flake-parts to enable treefmt-nix

* feat: use flake-parts

* fix: correct use of flake-parts for package build

* doc: update CI badge URL for devops workflow

* ci(fix): handle empty path filter output

* ci: remove --impure flag from treefmt command in CI workflow

* fix: correct treefmt.config settings in formatter.nix

* fix: correct flake-parts inputs, avoid with in imports

* fix: correct program name for mix-format in formatter.nix

* feat: devenv via flake-parts

* fix: correct use of legacy nix code with flake-parts

* ci(fix): correct nix develop command in ensure_linting.yml

* refactor: list imports explicitly in flake, rename folder to flake-modules to be precise

* style: use tabs for indent size to format sh

* style: use nixfmt-rfc-style

* Revert "style: use nixfmt-rfc-style"

This reverts commit 082056159e.

* style: use nixfmt style

* fix: remove glibcLocales from optional dependencies to avoid  "A definition for option `packages."[definition 4-entry 16]"' is not of type `package'."

* fix: remove inotify-tools from optional dependencies to avoid  "A definition for option `packages."[definition 4-entry 16]"' is not of type `package'."

* fix: Remove inotify-tools and glibcLocales from optional dependencie

* fix: correct file paths in flake.nix to version

* fix: add ELIXIR_ERL_OPTIONS to shell environment to force utf8 locale

* fix: add LOCALE_ARCHIVE to shell environment in flake.nix

* Revert "fix: add LOCALE_ARCHIVE to shell environment in flake.nix"

This reverts commit d45f6e32ee.

* ci(refactor): rename workflow to elixir_dep_verification_and_static_analysis.yml to better reflect the intention,, remove duplicate checks

* ci(debug): debug locale settings

* Revert "ci(debug): debug locale settings"

This reverts commit 9b402f3c5f.

* Revert "fix: add ELIXIR_ERL_OPTIONS to shell environment to force utf8 locale"

This reverts commit d02419cba4.

* fix: add LOCALE_ARCHIVE to shell environment in flake.nix

* Revert "fix: add LOCALE_ARCHIVE to shell environment in flake.nix"

This reverts commit 761b437e69.

* fix: add LANG=C.UTF-8 to shell environment in flake.nix

* fix: add mix local.rebar and mix local.hex commands to flake.nix

* fix: pin devenv to version without unix socket bug

* chore: update nixpkgs to nixos-24.05 and update dependencies

* doc: add treefmt config comments

* ci: do not expose treefmt formatter programs in devshell

* fix: correct use of module option to enable PostgreSQL server in flake.nix

* Revert "chore: update nixpkgs to nixos-24.05 and update dependencies"

This reverts commit a6ea3f25aa.

* feat: consistent use of erlang 26 and elixir 1_16 in flake

* ci: switch to macOS runner for linting workflow

* Revert "ci: do not expose treefmt formatter programs in devshell"

This reverts commit 1ecfa451dc.

* Revert "ci: switch to macOS runner for linting workflow"

This reverts commit 7b430667d8.

* ci: Remove nixpkgs channel specification in ensure_linting workflow

* ci(debug): Add debug output for PATH and NIX_PATH in flake.nix

* Revert "ci(debug): Add debug output for PATH and NIX_PATH in flake.nix"

This reverts commit 07faec5ddf.

* fix: avoid the need for impure for devenv

see #4245

* fix: remove invalid custom build.check for formatter and use default

* style: linter findings

* fix: Add emptyTest to avoid nix flake check test execution on non-Linux systems

* chore: Remove LANG=C.UTF-8 from enterShell in flake.nix

* ci(fix): Remove --impure flag from treefmt command in CI mode

* ci(fix): avoid impure mode in ensure_linting workflow

* style: linter findings

* ci(debug): debug elixir version and locale

* chore: Update flake.lock dependencies

* feat: use newer devenv as unix socket bug is fixed in upstream

https://github.com/cachix/devenv/issues/1497

* fix: set rebar3 path in devenv

* Revert "ci(debug): debug elixir version and locale"

This reverts commit 7ecdc77c16.

* ci: re-enable path check in DevOps workflow

* doc: update Development and Contributing guide with nix and treefmt

* ci: use PostgreSQL 17

* style: linter findings

* ci(fix): ensure cache name in build action does not contain invalid characters to avoid invalid reference format

* doc: update changelog

* Revert "ci(fix): ensure cache name in build action does not contain invalid characters to avoid invalid reference format"

This reverts commit 02abb0359d.

* ci: remove branch restriction for check_paths workflow to increase sec

* ci(fix): run ghcr build workflow only for specific conditions

- Ensure workflow only run if there are no changes to the .github folder
- Allow workflow to run on workflow call or PRs from forks
- Prevent duplicate runs for PRs from non-forks
- Avoid invalid reference format for cache name in PRs from our repository

* doc: update changelog

* fix: update hash for mix-deps package in flake.nix

* fix: disable flakeCheck for formatter, as mix format need the dep to be fetched beforehand

* ci(fix): run ghcr build workflow only for specific conditions

* fix: move nixosModules.default to top-level attribute set

* refactor: remove unnecessary config nesting in formatter.nix

* ci(fix): ensure version for buildx is set to correct name

---------

Co-authored-by: scottbot95 <scottbot95@gmail.com>
2024-10-14 08:54:10 +02:00
Jakob Lichterfeld ad34131089 doc: update changelog 2024-10-07 09:02:27 +02:00
Matthias Wirtz b582b0be8b limit positions to set elevation for to last 10 days (#4228) 2024-10-06 12:33:48 +02:00
Brian May a4f47518d8 fix: Avoid the need for impure for devenv (#4245)
Based on https://github.com/cachix/devenv/pull/1018/files
2024-10-06 08:35:54 +02:00
Jakob Lichterfeld dc64687ba8 doc: update changelog 2024-10-03 09:28:32 +02:00
Brian May 4f58d2ff14 fix: add nix module option to specify postgres package (#4227)
Without this upgrading postgres - which must be done manually - is
likely to be painful.

For postgresql upgrade instructions see
https://nixos.org/manual/nixos/stable/#module-services-postgres-upgrading
2024-10-01 07:39:17 +10:00
Jakob Lichterfeld 508bcf4f69 doc: update changelog 2024-09-29 11:22:15 +02:00
Matthias Wirtz a4f2e42534 json_build_object instead of concat in battery-health (#4229) 2024-09-29 11:21:52 +02:00
Jakob Lichterfeld 70d259cd40 doc: update changelog 2024-09-29 11:20:08 +02:00
Matthias Wirtz 1c2fa7830f multiple cars, same name, add vin next to name (#4230) 2024-09-29 11:19:42 +02:00
Jakob Lichterfeld 84335ebf9b doc: update changelog 2024-09-29 11:18:19 +02:00
Matthias Wirtz c67573e708 feat: PostgreSQL 17 (#4231) 2024-09-29 11:17:31 +02:00
Jakob Lichterfeld 5737c543aa doc: update changelog 2024-09-28 15:26:34 +02:00
Gabriele f5d981248d increase max battery charge gauge threshold to 101 in case of LFP (#4191)
* increase max battery charge gauge threshold to 101 in case of LFP

fixes visualization issue of gauge turning "red" in case of 100% battery charged on lfp teslas

* overview dashboard version bump
2024-09-28 15:25:51 +02:00
Jakob Lichterfeld 6871ef73d4 Revert "doc: update changelog"
This reverts commit 6c74011f3c.
2024-09-23 11:11:26 +02:00