forked from sibbl/hass-lovelace-kindle-screensaver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·23 lines (19 loc) · 957 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/with-contenv bashio
bashio::log.info "Starting npm server..."
export HA_BASE_URL="$(bashio::config 'HA_BASE_URL')"
export HA_SCREENSHOT_URL=$(bashio::config 'HA_SCREENSHOT_URL')
export HA_ACCESS_TOKEN="$(bashio::config 'HA_ACCESS_TOKEN')"
export LANGUAGE=$(bashio::config 'LANGUAGE')
export CRON_JOB=$(bashio::config 'CRON_JOB')
export RENDERING_TIMEOUT=$(bashio::config 'RENDERING_TIMEOUT')
export RENDERING_DELAY=$(bashio::config 'RENDERING_DELAY')
export RENDERING_SCREEN_HEIGHT=$(bashio::config 'RENDERING_SCREEN_HEIGHT')
export RENDERING_SCREEN_WIDTH=$(bashio::config 'RENDERING_SCREEN_WIDTH')
export ROTATION=$(bashio::config 'ROTATION')
export SCALING=$(bashio::config 'SCALING')
export GRAYSCALE_DEPTH=$(bashio::config 'GRAYSCALE_DEPTH')
export COLOR_MODE=$(bashio::config 'COLOR_MODE')
export HA_BATTERY_WEBHOOK=$(bashio::config 'HA_BATTERY_WEBHOOK')
bashio::log.info "Using base_url: ${HA_BASE_URL}"
cd /app
exec /usr/bin/npm start