Commit Graph
2414 Commits
Author SHA1 Message Date
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
Brian May ea154d6fa4 chore: update mix dependancy hash in nix flake (#4223) 2024-09-23 11:20:58 +10:00
Jakob Lichterfeld 6c74011f3c doc: update changelog 2024-09-20 16:35:11 +02:00
Matthias Wirtz 62b1ec579a timezone fixes and moving window on beginning of period (#4217) 2024-09-19 19:12:53 +02:00
Jakob Lichterfeld 05068a0b93 doc: update changelog 2024-09-18 09:58:46 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 63cd67b2d3 build(deps): bump classnames from 2.3.2 to 2.5.1 in /website (#4211)
Bumps [classnames](https://github.com/JedWatson/classnames) from 2.3.2 to 2.5.1.
- [Changelog](https://github.com/JedWatson/classnames/blob/main/HISTORY.md)
- [Commits](https://github.com/JedWatson/classnames/compare/v2.3.2...v2.5.1)

---
updated-dependencies:
- dependency-name: classnames
  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-09-18 09:58:04 +02:00
Jakob Lichterfeld 852b29606b doc: update changelog 2024-09-18 09:34:17 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 3435260470 build(deps): bump jason from 1.4.1 to 1.4.4 (#4216)
Bumps [jason](https://github.com/michalmuskala/jason) from 1.4.1 to 1.4.4.
- [Release notes](https://github.com/michalmuskala/jason/releases)
- [Changelog](https://github.com/michalmuskala/jason/blob/v1.4.4/CHANGELOG.md)
- [Commits](https://github.com/michalmuskala/jason/compare/v1.4.1...v1.4.4)

---
updated-dependencies:
- dependency-name: jason
  dependency-type: direct:production
  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-09-18 09:33:56 +02:00
Jakob Lichterfeld e5a4a9d086 doc: update changelog 2024-09-18 09:33:36 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> e0736c673d build(deps): bump phoenix_ecto from 4.4.3 to 4.6.2 (#4213)
Bumps [phoenix_ecto](https://github.com/phoenixframework/phoenix_ecto) from 4.4.3 to 4.6.2.
- [Changelog](https://github.com/phoenixframework/phoenix_ecto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_ecto/compare/v4.4.3...v4.6.2)

---
updated-dependencies:
- dependency-name: phoenix_ecto
  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-09-18 09:32:57 +02:00
Jakob Lichterfeld 7850dd0227 doc: update changelog 2024-09-18 09:30:36 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 0ba148b129 build(deps): bump @docusaurus/preset-classic in /website (#4210)
Bumps [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic) from 3.4.0 to 3.5.2.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: "@docusaurus/preset-classic"
  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-09-18 09:29:35 +02:00
Jakob Lichterfeld fa85b5d2fc doc: update changelog 2024-09-18 09:18:29 +02:00
JakobLichterfeld 02554b27dc ci: enable dependabot for mix and npm (#4207)
* ci: enable dependabot for mix

* ci: enable dependabot for npm in assets path

* ci: enable dependabot for npm in the website path
2024-09-18 09:17:54 +02:00
Jakob Lichterfeld 107bf47e50 doc: update changelog 2024-09-18 08:28:33 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> f72304cea7 build(deps): bump send and express in /website (#4203)
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 08:27:47 +02:00
JakobLichterfeld 1ac5fd7967 chore: Update tzdata to version 1.1.2 and mimerl to version 1.3.0 (#4205)
* chore: Update tzdata to version 1.1.2 and mimerl to version 1.3.0

fixes: #4196

* doc: update changelog
2024-09-17 11:00:09 +02:00
Matthias Wirtz c64384f0f6 add moving average / percentiles to charge level (#4200) 2024-09-16 14:09:45 +02:00
Jakob Lichterfeld 57ac19a500 doc: update changelog 2024-09-15 09:58:14 +02:00