mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33d50cce75 | ||
|
|
b5ab114562 | ||
|
|
b17ded97f6 | ||
|
|
3a9e27e9ac | ||
|
|
fb4eff6570 | ||
|
|
d54d94a480 | ||
|
|
a979b4fdf6 |
@@ -52,7 +52,7 @@ jobs:
|
||||
git push --tags
|
||||
working-directory: ${{ github.workspace }}/teslamate
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v2.0.8
|
||||
uses: softprops/action-gh-release@v2.2.1
|
||||
with:
|
||||
tag_name: v${{ steps.semver.outputs.semver }}
|
||||
body_path: CHANGELOG.txt
|
||||
|
||||
@@ -105,6 +105,8 @@ _Note_ that the security admin password and usernames can only be set on the fir
|
||||
|
||||
Once you have Grafana up and running, you'll need to configure a data source to read data from the PostgreSQL database:
|
||||
|
||||
‼️ **Note**: The name must be `TeslaMate` as all the dashboards expect the datasource to use this name.
|
||||
|
||||
![Grafana Postgres data source][grafana-datasource]
|
||||
|
||||
#### Other Options
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"build_from": {
|
||||
"aarch64": "teslamate/teslamate:1.31.0",
|
||||
"amd64": "teslamate/teslamate:1.31.0",
|
||||
"armv7": "teslamate/teslamate:1.31.0"
|
||||
"aarch64": "teslamate/teslamate:1.32.0",
|
||||
"amd64": "teslamate/teslamate:1.32.0",
|
||||
"armv7": "teslamate/teslamate:1.32.0"
|
||||
},
|
||||
"args": {
|
||||
"teslamate_version": "1.31.0"
|
||||
"teslamate_version": "1.32.0"
|
||||
},
|
||||
"codenotary": {
|
||||
"signer": "colin@symr.io"
|
||||
|
||||
@@ -54,6 +54,24 @@ backup() {
|
||||
|
||||
|
||||
restore() {
|
||||
bashio::log.info "Checking for Grafana datasource: TeslaMate"
|
||||
datasources=$(curl --silent --show-error \
|
||||
--user "$LOGIN" -H "Content-Type: application/json" \
|
||||
"$URL/api/datasources")
|
||||
|
||||
if [[ $datasources == *"statusCode"* ]]; then
|
||||
bashio::log.error "Error getting Grafana datasources: $(echo "$datasources" | jq -r .message)"
|
||||
bashio::log.debug "$datasources"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DS=$(echo "$datasources" | jq ".[] | select(.name==\"TeslaMate\")")
|
||||
|
||||
if [[ -z "$DS" ]]; then
|
||||
bashio::log.error "'TeslaMate' datasource not found. Please create or rename your datasource. It must be named 'TeslaMate'."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
bashio::log.info "Checking for Grafana folder: $FOLDER_NAME"
|
||||
folders=$(curl --silent --show-error \
|
||||
--user "$LOGIN" -H "Content-Type: application/json" \
|
||||
|
||||
Reference in New Issue
Block a user