mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a86a1f0c3 | ||
|
|
83c29fbed8 | ||
|
|
ee6faf280d | ||
|
|
2421d0a805 | ||
|
|
aa5dee6c4a | ||
|
|
77e7510e3b | ||
|
|
6031fe6fa4 | ||
|
|
eb7945344e | ||
|
|
e9c77210b7 | ||
|
|
64cbe20138 | ||
|
|
1c521e808c | ||
|
|
0d7507b3d9 | ||
|
|
d8aa9cb7d9 | ||
|
|
2dfda5bbc0 | ||
|
|
522e9890ca | ||
|
|
453252d864 |
@@ -14,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: 🚀 Run Home Assistant Add-on Lint
|
||||
uses: frenck/action-addon-linter@v2
|
||||
|
||||
@@ -19,11 +19,11 @@ jobs:
|
||||
packages: write
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ["amd64", "armv7", "aarch64"]
|
||||
arch: ["amd64", "aarch64"]
|
||||
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: Get version
|
||||
run: |
|
||||
@@ -35,14 +35,14 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3.4.0
|
||||
uses: docker/login-action@v3.6.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and publish
|
||||
uses: home-assistant/builder@2025.03.0
|
||||
uses: home-assistant/builder@2025.09.0
|
||||
with:
|
||||
args: |
|
||||
--${{ matrix.arch }} \
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
path: teslamate
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
git push --tags
|
||||
working-directory: ${{ github.workspace }}/teslamate
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v2.3.2
|
||||
uses: softprops/action-gh-release@v2.4.1
|
||||
with:
|
||||
tag_name: v${{ steps.semver.outputs.semver }}
|
||||
body_path: CHANGELOG.txt
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
prerelease: false
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Checkout addon repo
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@v5.0.0
|
||||
with:
|
||||
path: repo
|
||||
repository: lildude/ha-addons
|
||||
|
||||
@@ -28,14 +28,14 @@ jobs:
|
||||
name: Build add-on
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ["amd64", "armv7", "aarch64"]
|
||||
arch: ["amd64", "aarch64"]
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: Build add-on
|
||||
uses: home-assistant/builder@2025.03.0
|
||||
uses: home-assistant/builder@2025.09.0
|
||||
with:
|
||||
args: |
|
||||
--test \
|
||||
|
||||
@@ -77,7 +77,6 @@ custom_plugins:
|
||||
- name: panodata-map-panel
|
||||
url: https://github.com/panodata/panodata-map-panel/releases/download/0.16.0/panodata-map-panel-0.16.0.zip
|
||||
unsigned: true
|
||||
custom_plugins: []
|
||||
env_vars:
|
||||
- name: GF_SECURITY_ADMIN_USER
|
||||
value: <youruser>
|
||||
@@ -151,6 +150,8 @@ For example, if you access your Home Assistant instance at `https://ha.example.c
|
||||
|
||||
Do _not_ use these values. Use the values from your log output.
|
||||
|
||||
**Note:** If you do not see the links in your add-on logs, clear the values in the TeslaMate configuration and restart the add-on.
|
||||
|
||||
## Migrate TeslaMate to a Different PostgreSQL Server
|
||||
|
||||
In order to migrate TeslaMate to a different PostgreSQL server, you will need to make a backup of the original data and then restore it to the destination server.
|
||||
|
||||
+1
-2
@@ -33,8 +33,7 @@ RUN \
|
||||
tzdata \
|
||||
xz-utils \
|
||||
&& S6_ARCH="${BUILD_ARCH}" \
|
||||
&& if [ "${BUILD_ARCH}" = "amd64" ]; then S6_ARCH="x86_64"; \
|
||||
elif [ "${BUILD_ARCH}" = "armv7" ]; then S6_ARCH="arm"; fi \
|
||||
&& if [ "${BUILD_ARCH}" = "amd64" ]; then S6_ARCH="x86_64"; fi \
|
||||
&& curl -Ls "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" | tar xpJ -C / \
|
||||
&& curl -Ls "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz" | tar xpJ -C / \
|
||||
&& curl -Ls "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz" | tar Jxp -C / \
|
||||
|
||||
+3
-7
@@ -1,14 +1,10 @@
|
||||
{
|
||||
"build_from": {
|
||||
"aarch64": "teslamate/teslamate:2.0.0",
|
||||
"amd64": "teslamate/teslamate:2.0.0",
|
||||
"armv7": "teslamate/teslamate:2.0.0"
|
||||
"aarch64": "teslamate/teslamate:2.2.0",
|
||||
"amd64": "teslamate/teslamate:2.2.0"
|
||||
},
|
||||
"args": {
|
||||
"teslamate_version": "2.0.0"
|
||||
},
|
||||
"codenotary": {
|
||||
"signer": "colin@symr.io"
|
||||
"teslamate_version": "2.2.0"
|
||||
},
|
||||
"labels":{
|
||||
"maintainer": "Colin Seymour (https://github.com/lildude)",
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
"description": "A self-hosted data logger for your Tesla.",
|
||||
"url": "https://github.com/lildude/ha-addon-teslamate",
|
||||
"arch": [
|
||||
"armv7",
|
||||
"aarch64",
|
||||
"amd64"
|
||||
],
|
||||
@@ -74,6 +73,5 @@
|
||||
"map": [
|
||||
"share:rw"
|
||||
],
|
||||
"codenotary": "colin@symr.io",
|
||||
"image": "ghcr.io/lildude/ha-addon-teslamate-{arch}"
|
||||
}
|
||||
|
||||
@@ -113,7 +113,11 @@ if [[ -z $(PGPASSWORD="$DATABASE_PASS" psql -h "$DATABASE_HOST" -p "$DATABASE_PO
|
||||
bashio::log.notice "=> Dashboards: $grafana_ingress"
|
||||
bashio::log.notice ""
|
||||
fi
|
||||
ulimit -n 1048576
|
||||
|
||||
# Set max open file limit to avoid memory allocation issues
|
||||
if [ "$(ulimit -Hn)" -gt 524288 ]; then
|
||||
ulimit -n 524288
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting TeslaMate..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user