Skip to content

Commit b635e01

Browse files
Merge branch 'main' into dependabot/hex/phoenix_live_view-1.0.10
2 parents f5df325 + 3afbf6a commit b635e01

81 files changed

Lines changed: 5106 additions & 6375 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check_paths.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2323
id: filter
2424
with:
25-
base: "master" # needed to set as a called workflow does not have direct access to repository.default_branch
25+
base: "main" # needed to set as a called workflow does not have direct access to repository.default_branch
2626
filters: |
2727
githubfolder:
2828
- '.github/**'

.github/workflows/devops.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run
1010
- "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run
1111
pull_request:
12-
branches: ["master"]
12+
branches: ["main"]
1313
paths:
1414
- "**/*"
1515
- "!.github/**" # Important: Exclude PRs related to .github from auto-run

.github/workflows/elixir_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: mix test --warnings-as-errors
4949

5050
- name: Check Coverage
51-
if: github.ref == 'refs/heads/master'
51+
if: github.ref == 'refs/heads/main'
5252
run: mix coveralls.github
5353
continue-on-error: true
5454
env:

.github/workflows/ensure_linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

1515
- name: Install Nix
16-
uses: nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703 # v30
16+
uses: nixbuild/nix-quick-install-action@63ca48f939ee3b8d835f4126562537df0fee5b91 # v32
1717

1818
- name: Nix binary cache
19-
uses: nix-community/cache-nix-action@c448f065ba14308da81de769632ca67a3ce67cf5 # v6
19+
uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3
2020
with:
2121
# restore and save a cache using this key
2222
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}

.github/workflows/ghcr_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build GHCR images
22

33
on:
44
pull_request:
5-
branches: ["master"]
5+
branches: ["main"]
66
paths:
77
- "**/*"
88
- "!.github/**" # Important: Exclude PRs related to .github from auto-run

.github/workflows/spell_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: Spell check
18-
uses: crate-ci/typos@b1a1ef3893ff35ade0cfa71523852a49bfd05d19 # v1.31.1
18+
uses: crate-ci/typos@392b78fe18a52790c53f42456e46124f77346842 # v1.34.0

.github/workflows/update-flake-lock.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Install Nix
21-
uses: nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703 # v30
21+
uses: nixbuild/nix-quick-install-action@63ca48f939ee3b8d835f4126562537df0fee5b91 # v32
2222

2323
- name: Nix binary cache
24-
uses: nix-community/cache-nix-action@c448f065ba14308da81de769632ca67a3ce67cf5 # v6
24+
uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3
2525
with:
2626
# restore and save a cache using this key
2727
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Update flake.lock
4545
id: update
46-
uses: DeterminateSystems/update-flake-lock@a2bbe0274e3a0c4194390a1e445f734c597ebc37 #v24
46+
uses: DeterminateSystems/update-flake-lock@428c2b58a4b7414dabd372acb6a03dba1084d3ab #v25
4747
with:
4848
pr-title: "build(deps): update flake.lock"
4949
pr-labels: |

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ hd = "hd"
1212
dur = "dur"
1313
pn = "pn"
1414
Derivated = "Derivated"
15+
Bre = "Bre"
1516

1617
[type.po]
1718
extend-glob = ["*.po"]

CHANGELOG.md

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,95 @@
22

33
## [unreleased]
44

5+
### New features
6+
7+
- feat(webview): add Google Maps link for car's current location (#4781 - @clhuang)
8+
9+
### Improvements and bug fixes
10+
11+
- fix(nix): update cldr hash (#4723 - @brianmay)
12+
- feat: use Grafana 12.0.0 (#4721 - @swiffer)
13+
- feat: use Grafana 12.0.1 (#4756 - @swiffer)
14+
- feat: preserve the folders when restoring dashboards (#4715 - @IngmarStein)
15+
- feat: use Grafana 12.0.1+security-01 (#4799 - @swiffer)
16+
- feat: use Grafana 12.0.2 (#4805 - @swiffer)
17+
- feat(mqtt): always publish healthy status and disable retain to prevent stale healthy status via mqtt (#4817 - @allivshits)
18+
- feat: use the k8s-style API introduced in Grafana v12 if using manual dashboard setup (#4764- @IngmarStein)
19+
- feat(db-check): allow beta / rc PostgreSQL versions for testing (#4795 - @swiffer)
20+
21+
#### Build, CI, internal
22+
23+
- build(deps): bump tzdata from 1.1.2 to 1.1.3 (#4713)
24+
- build(deps-dev): bump mock from 0.3.8 to 0.3.9 (#4712)
25+
- build(deps-dev): bump credo from 1.7.11 to 1.7.12 (#4711)
26+
- build(deps): bump crate-ci/typos from 1.31.1 to 1.31.2 (#4710)
27+
- fix(nix): update mix dependency hash in nix builds ([08fe0ac](https://github.com/teslamate-org/teslamate/commit/08fe0ac934176484c84fd4329c8d64925b6b0b97) - @JakobLichterfeld)
28+
- feat(nix): use nixos-25.05 (#4716 - @JakobLichterfeld)
29+
- build(deps): update flake.lock (#4716)
30+
- fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility (#4763 - @JakobLichterfeld)
31+
- build(deps): bump DeterminateSystems/update-flake-lock from 24 to 25 (#4774)
32+
- build(deps): bump crate-ci/typos from 1.31.2 to 1.32.0 (#4775)
33+
- build(deps): bump castore from 1.0.12 to 1.0.14 (#4778)
34+
- build(deps): update flake.lock (#4772)
35+
- build(deps): bump phoenix_ecto from 4.6.3 to 4.6.4 (#4779)
36+
- build(deps): bump @docusaurus/preset-classic from 3.7.0 to 3.8.0 in /website (#4776)
37+
- build(deps): bump @docusaurus/core from 3.7.0 to 3.8.0, @docusaurus/preset-classic from 3.8.0 to 3.8.1, bump dependencies in /website (#4777 - @JakobLichterfeld)
38+
- build(deps): bump nixbuild/nix-quick-install-action from 30 to 32 (#4813)
39+
- build(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /website (#4821)
40+
- build(deps): bump plug_cowboy from 2.7.3 to 2.7.4 (#4816)
41+
- build(deps): bump crate-ci/typos from 1.33.1 to 1.34.0 (#4814)
42+
43+
#### Dashboards
44+
45+
- fix: new image on home dashboard as old got removed from Tesla mediaserver (#4702 - @JakobLichterfeld, @swiffer)
46+
- feat: update image on home dashboard to juniper and back to dark (#4742 - @swiffer)
47+
- fix: consumption for drives with positive soc diff (#4746 - @swiffer)
48+
- fix: align usage of time-range filters to fix consumption gross issues in some edge cases (#4787 - @swiffer)
49+
- feat(dashboards-Charging-Stats): align query conditions and introduce a min duration filter applied to all panels to ensure consistent charging stats (#4791 - @swiffer)
50+
- feat(dashboards): reliably calculate charging costs per 100 km for shorter periods and align across trip, statistics and charging stats dashboards (#4791 - @swiffer)
51+
- feat(dashboards)detect consecutive charges and exclude from Charge / Discharge Stats (#4791 - @swiffer)
52+
53+
#### Translations
54+
55+
- i18n: create Catalan default.po (#4727 and #4728 - @pellix)
56+
- i18n: more descriptive italian localization (#4748 -@StarkITA)
57+
58+
#### Documentation
59+
60+
- docs: improvement to the Debian installation instructions (#4734 - @iustin)
61+
- docs: add note on accessory power functionality can prevent car sleep (#4737 - @darox)
62+
- docs: clarify pricing for Teslemetry (#4705 - @Bre77)
63+
- docs: add NixOS installation guide (#4768 - @JakobLichterfeld)
64+
65+
## [2.0.0] - 2025-04-26
66+
67+
**This is a breaking change release:** TeslaMate uses PostgreSQL as database, this is an external dependency and needs to be updated by yourself. We now require PostgreSQL 16.7 or 17.3 or higher as we are upgrading the bundled earthdistance extension to v1.2. TeslaMate will now fail to start if you are using an older version. Ensure to upgrade your database before upgrading TeslaMate. To upgrade PostgreSQL, you need to follow these instructions:
68+
69+
- [Backup your data](https://docs.teslamate.org/docs/maintenance/backup_restore#backup)
70+
- [Upgrade PostgreSQL to postgres:17](https://docs.teslamate.org/docs/maintenance/upgrading_postgres) (Yes, you will have to erase your data, which is why you need your backup in the first place.)
71+
- [Upgrade TeslaMate to this version](https://docs.teslamate.org/docs/upgrading)
72+
- [Backup your data after the upgrade](https://docs.teslamate.org/docs/maintenance/backup_restore#backup)
73+
74+
**Note for user which revoked permissions:** If the SUPERUSER privilege has been revoked after the initial (manual) installation, it must be temporarily granted for pending earthdistance migrations to succeed. The privilege can then be safely revoked.
75+
76+
As always, there are also many improvements. The webview now shows the TPMS values in the low pressure tooltip. We use the latest Grafana 11.6.1 and have improved the battery health dashboard and aligned the range calculation through the dashboards. Additionally time zone handling has been improved and the date formats are now based on the browser locale.
77+
78+
Enjoy it.
79+
80+
**Note for contributors:** The default branch was renamed to `main`. Please update your local repository accordingly (see GitHub hint when visiting [teslamate-org/teslamate](https://github.com/teslamate-org/teslamate) or [GitHub documentation](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch#updating-a-local-clone-after-a-branch-name-changes) for more information).
81+
582
### Breaking Changes
683

784
- feat: check Postgres version on startup, require 16.7 / 17.3, update earthdistance extension (#4648 - @swiffer)
885

986
### New features
1087

11-
- feat:show tpms value to the low pressure tooltip in webview (#4654 -@NirKli)
88+
- feat: show tpms value to the low pressure tooltip in webview (#4654 - @NirKli)
1289

1390
### Improvements and bug fixes
1491

1592
- fix(nix): non-recursive provider for ../grafana/dashboards (#4680 - @swiffer)
93+
- feat: use Grafana 11.6.1 (#4662 - @swiffer)
1694

1795
#### Build, CI, internal
1896

@@ -38,6 +116,12 @@
38116
- build(deps): bump react from 18.3.1 to 19.1.0 and docusaurus/core from 3.4.0 to 3.7.0 in /website (#4618 - @JakobLichterfeld)
39117
- build(deps): bump phoenix_ecto from 4.6.2 to 4.6.3 (#4333)
40118
- build(deps): update flake.lock (#4674)
119+
- fix(nix): update mix dependency hash in nix builds (#4695 - @JakobLichterfeld)
120+
- chore: rename branch to main (#4700 - @JakobLichterfeld and @adriankumpf)
121+
- build(deps-dev): bump phoenix_live_reload from 1.5.3 to 1.6.0 (#4699)
122+
- build(deps): bump tortoise311 from 0.12.0 to 0.12.1 (#4698)
123+
- build(deps): bump nix-community/cache-nix-action from 6.1.2 to 6.1.3 (#4696)
124+
- build(deps): bump floki from 0.36.3 to 0.37.1 (#4697)
41125

42126
#### Dashboards
43127

@@ -46,13 +130,16 @@
46130
- fix: use same rated range calculation in updates dashboard as in battery health dashboard (#4682 - @swiffer)
47131
- fix: explicitly set height of home dashboard background image based on current layout & grafana css (#4681 -@swiffer)
48132
- fix: set $\_\_timezone explicitly in dashboards to ensure truncation is done with respect to the Grafana timezone (#4684 - @swiffer)
133+
- fix: issues when using browser locale for date formats (#4662 - @swiffer)
134+
- fix: widens Date Columns to fully show date strings formatted in US locale (#4662 - @swiffer)
49135

50136
#### Translations
51137

52138
#### Documentation
53139

54140
- chore(issue-template): add PostgreSQL version input and checkbox for latest version check in bug report template (#4643 - @JakobLichterfeld)
55141
- docs: allow to add energy added to the Home Assistant's Energy tab to measure how much energy each session uses (#4659 - @alexsapran)
142+
- docs: update changelog with breaking changes description (#4691 - @JakobLichterfeld)
56143

57144
## [1.33.0] - 2025-03-28
58145

@@ -2390,7 +2477,8 @@ New users need to sign in via the web interface.
23902477

23912478
## [1.0.0] - 2019-07-25
23922479

2393-
[unreleased]: https://github.com/teslamate-org/teslamate/compare/v1.33.0...HEAD
2480+
[unreleased]: https://github.com/teslamate-org/teslamate/compare/v2.0.0...HEAD
2481+
[2.0.0]: https://github.com/teslamate-org/teslamate/compare/v1.33.0...v2.0.0
23942482
[1.33.0]: https://github.com/teslamate-org/teslamate/compare/v1.32.0...v1.33.0
23952483
[1.32.0]: https://github.com/teslamate-org/teslamate/compare/v1.31.1...v1.32.0
23962484
[1.31.1]: https://github.com/teslamate-org/teslamate/compare/v1.31.0...v1.31.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/teslamate-org/teslamate/actions/workflows/devops.yml/badge.svg)](https://github.com/teslamate-org/teslamate/actions/workflows/devops.yml)
44
[![Publish Docker images](https://github.com/teslamate-org/teslamate/actions/workflows/buildx.yml/badge.svg)](https://github.com/teslamate-org/teslamate/actions/workflows/buildx.yml)
5-
[![Coverage](https://coveralls.io/repos/github/teslamate-org/teslamate/badge.svg?branch=master)](https://coveralls.io/github/teslamate-org/teslamate?branch=master)
5+
[![Coverage](https://coveralls.io/repos/github/teslamate-org/teslamate/badge.svg?branch=main)](https://coveralls.io/github/teslamate-org/teslamate?branch=main)
66
[![current version](https://img.shields.io/docker/v/teslamate/teslamate/latest)](https://hub.docker.com/r/teslamate/teslamate)
77
[![docker image size](https://img.shields.io/docker/image-size/teslamate/teslamate/latest)](https://hub.docker.com/r/teslamate/teslamate)
88
[![docker pulls](https://img.shields.io/docker/pulls/teslamate/teslamate?color=%23099cec)](https://hub.docker.com/r/teslamate/teslamate)

0 commit comments

Comments
 (0)