mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Update, refactor and restructure repo (#1)
* Remove unused files * Update dev env * Update config * Update docker config * Add translations * Update run script * Auto-gen enc key if not set * Replace workflows * Replace dependabot with renovate * Remove armhf * Lint * Remove armhf * Whoops * Remove stray comma * Add image * Reorder options * Split and improve docs * Add back image line * Update cw * Typo * Use correct org * Move bootstrap to run * Update scripts * Update config * Add note about database * Label in dockerfile * tmp force devcontainer version * Start implementing db creation if not exists * Create DB if doesn't exist * Update words * Remove unused file
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
# Database things
|
||||
export DATABASE_HOST=$(bashio::config 'database_host')
|
||||
export DATABASE_NAME=$(bashio::config 'database_name')
|
||||
export DATABASE_PASS=$(bashio::config 'database_pass')
|
||||
export DATABASE_PORT=$(bashio::config 'database_port')
|
||||
export DATABASE_USER=$(bashio::config 'database_user')
|
||||
|
||||
# MQTT things
|
||||
export DISABLE_MQTT=$(bashio::config 'disable_mqtt')
|
||||
export MQTT_HOST=$(bashio::config 'mqtt_host')
|
||||
export MQTT_NAMESPACE=$(bashio::config 'mqtt_namespace')
|
||||
export MQTT_PASSWORD=$(bashio::config 'mqtt_pass')
|
||||
export MQTT_TLS_ACCEPT_INVALID_CERTS=$(bashio::config 'mqtt_tls_accept_invalid_certs')
|
||||
export MQTT_TLS=$(bashio::config 'mqtt_tls')
|
||||
export MQTT_USERNAME=$(bashio::config 'mqtt_user')
|
||||
|
||||
|
||||
# Other things
|
||||
export IMPORT_DIR=$(bashio::config 'import_dir')
|
||||
export PORT=4000
|
||||
export TZ=$(bashio::config 'timezone')
|
||||
export ENCRYPTION_KEY=$(bashio::config 'encryption_key')
|
||||
export DEFAULT_GEOFENCE=$(bashio::config 'default_geofence')
|
||||
|
||||
# Import dashboards
|
||||
if [ $(bashio::config 'grafana_import_dashboards') == 'true' ]; then
|
||||
/dashboards.sh restore
|
||||
fi
|
||||
|
||||
# https://developers.home-assistant.io/blog/2023/04/13/new_limits_for_add_ons/
|
||||
ulimit -n 1048576
|
||||
|
||||
exec $(/usr/bin/env sh) /entrypoint.sh "$@"
|
||||
Reference in New Issue
Block a user