11 lines
379 B
Bash
11 lines
379 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
CONFIG_URL=$(bashio::config 'ha_url')
|
|
CONFIG_PIPELINE=$(bashio::config 'pipeline_id')
|
|
|
|
export HA_URL="$CONFIG_URL"
|
|
export PIPELINE_ID="$CONFIG_PIPELINE"
|
|
# SUPERVISOR_TOKEN is auto-injected by supervisor when homeassistant_api: true
|
|
|
|
bashio::log.info "Voice History starting against $HA_URL, pipeline $PIPELINE_ID"
|
|
exec node /app/voice-history.mjs
|