homeassistant-addons/epaper-station/rootfs/etc/services.d/epaper-station/run

12 lines
347 B
Text

#!/usr/bin/with-contenv bashio
bashio::log.info "Reading config..."
CONFIG_PATH=/data/options.json
EPS_CHANNEL="$(bashio::config 'channel')"
EPS_PORT="$(bashio::config 'serial_port')"
EPS_IMAGE_WORKDIR="/tmp"
EPS_DATABASE_DIR="/data/database/"
mkdir -p $EPS_DATABASE_DIR
bashio::log.info "Starting epaper station..."
exec python /app/station.py