Commit Graph
23 Commits
Author SHA1 Message Date
Matthias WirtzandJakob Lichterfeld 571ae70b6f feat: use Grafana 12.0.1 (#4756)
* Grafana 12.0.1

* remove workarounds as all supported platforms have 12.0.0 or later

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-24 13:16:47 +02:00
Matthias WirtzandJakob Lichterfeld c31c22d69c feat: use Grafana 12.0.0 (#4721)
* Grafana 12.0.0

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-07 18:53:26 +02:00
Brian MayandJakob Lichterfeld f88048b9d8 fix(nix): update cldr hash (#4723)
* fix: update cldr hash

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-07 15:31:16 +02:00
Jakob Lichterfeld ad49caf95c fix(nix): update mix dependency hash in nix builds 2025-04-26 11:36:07 +02:00
JakobLichterfeld 2ac2baef62 fix(nix): update mix dependency hash in nix builds (#4695)
* fix(nix): update mix dependency hash in nix builds

* docs: update changelog
2025-04-26 10:35:10 +02:00
Matthias WirtzandJakob Lichterfeld f4cdc6c2b2 feat: use Grafana 11.6.1 to fix issues when using browser locale for date formats (#4662)
* Grafana 11.6.1

* fix #4690

* increase dateTimeAsLocal column width to 210 for en-us locale, remove obsolete config entries

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-25 16:24:36 +02:00
ca398000f8 fix(nix): non-recursive provider for ../grafana/dashboards (#4680)
* non-recursive provider for ../grafana/dashboards

* docs: update changelog

* fix(nix): fixc incorrect hashes

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
Co-authored-by: Brian May <brian@linuxpenguins.xyz>
2025-04-22 10:32:34 +02:00
Jakob Lichterfeld 3d08431ee3 fix(nix): update mix dependency hash in nix builds 2025-04-15 14:01:02 +02:00
54a4ee8b61 feat: check Postgres version on startup, require 16.7 / 17.3, update earthdistance extension (#4648)
* check postgres version on startup

* update earthdistance to 1.2

* detail postgres requirement

* align additional requirements

* 17 is available on nixpkgs now

* allow upcoming major as well but issue a warning

* style: linter findings

* ci: skip ghcr build for PRs from outside repo (#4660)

* ci: skip ghcr build for PRs from outside repo

* docs: update changelog

* ci: early exit if check paths triggers

* ci: improve ghcr check_if_pr_from_outside_repo logging

* feat:show tpms value to the low pressure tooltip in webview (#4654)

* Added the tpms value to the tooltip

* Update pot files

* mix format

* Revert "mix format"

This reverts commit bbfe5aaa9f.

* style: linter findings

* Update pot files

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
Co-authored-by: Nir Klinger <45952578+NirKli@users.noreply.github.com>
2025-04-15 10:53:38 +02:00
Matthias Wirtz 14e910628e feat: Grafana 11.6.0 (#4570)
* disable database high availability mode (single instance)

* Grafana 11.6.0
2025-03-27 15:54:15 +01:00
Wei Ren 9b350b6c38 fix: update mix dependency hash in nix builds. (#4577) 2025-03-09 13:54:47 +01:00
Matthias Wirtz 1902dc5d2f feat: Grafana 11.5.0 (#4509) 2025-02-02 09:52:40 +01:00
Matthias Wirtz 3771102bb3 fix(nix): temporarily disable browser locale in date formats for nix deployment as well (#4480) 2025-01-13 17:23:23 +01:00
Brian May 2f68de0e7b fix: update dependancy hash in nix build (#4469) 2025-01-04 11:08:49 +11:00
Wei Ren b4e6d3575e fix: update mix deps hash to fix build error on recent NixOS 24.11 update (#4428) 2024-12-07 13:05:09 +01:00
Brian May 3c69df8412 fix(nix): wait for mosquitto to start before starting teslamate (#4419)
After reboot, I noticed a number of errors from teslamate, because it
started before mosquitto started.
2024-12-04 15:39:41 +01:00
Brian May 93cc34437c fix(nix): bump hash for dependencies (#4371) 2024-11-11 08:34:18 +11:00
JakobLichterfeld 31c082a69b docs: update Home Assistant integration documentation with configuration URL and model name hints (#4359)
* feat: add CONTRIBUTING file to exclusion lists for treefmt

* docs: update Home Assistant integration documentation with configuration URL and model name hints

* docs: update changelog

* docs: improve Home Assistant integration documentation with additional configuration details and clarifications

* docs: update Home Assistant integration documentation with placeholders for car model and name

* docs: move car ID configuration details to the Configuration section in Home Assistant integration documentation
2024-11-06 15:50:05 +01:00
Matthias Wirtz 68b5e356a6 update nix module with recent changes in grafana docker image 2024-11-05 15:20:35 +01:00
JakobLichterfeld cfaa4b8915 fix: use elixir-1.17.3-otp-26 to avoid beam.smp chewing CPU on arm (#4319)
* fix: use elixir-1.17.3-otp-26 to avoid beam.smp chewing CPU on arm

fixes: #4307

* docs: update changelog
2024-10-29 18:59:27 +01:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Jakob Lichterfeld
1b89ae7fd3 build(deps): bump elixir from 1.16.2-otp-26 to 1.17.2-otp-27 (#4296)
* build(deps): bump elixir from 1.16.2-otp-26 to 1.17.2-otp-27

Bumps elixir from 1.16.2-otp-26 to 1.17.2-otp-27.

---
updated-dependencies:
- dependency-name: elixir
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump elixir from 1.16.2-otp-26 to 1.17.2-otp-27 in workflow, flake and docs

* docs: update changelog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2024-10-23 11:27:20 +02:00
scottbot95andJakob Lichterfeld dffdea99ef refactor: Cleanup nix code (#4265)
* refactor: Extract package creation to separate flake-module

* refactor: move module.nix to nix folder

* refactor: extract checks into their own flake module

* refactor: extract devShell into its own flake module

* refactor: Extract nix dev dependencies to a separate partition

* fix: spelling error

* fix: Checks break on darwin

Looks like `mkIf` doesn't work properly with flake-parts/perSystem

* fix: Remove partitions to make `devenv up` work

RIP partitions :(

* style: linter findings

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2024-10-21 15:40:49 +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