diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 0edd121..d8242e4 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: EPaper Station -version: 1.0.0.4 +version: 1.0.0.5 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish Pictures to EPaper pricetags @@ -9,8 +9,12 @@ arch: - amd64 - armv7 - aarch64 +map: + - "share:rw" + - "config:rw" options: serial_port: "" + image_path: "/config/epaper-station/images" channel: 25 schema: serial_port: str diff --git a/epaper-station/rootfs/etc/services.d/epaper-station/run b/epaper-station/rootfs/etc/services.d/epaper-station/run index 54a9b52..d190401 100644 --- a/epaper-station/rootfs/etc/services.d/epaper-station/run +++ b/epaper-station/rootfs/etc/services.d/epaper-station/run @@ -6,7 +6,9 @@ export EPS_CHANNEL="$(bashio::config 'channel')" export EPS_PORT="$(bashio::config 'serial_port')" export EPS_IMAGE_WORKDIR="/tmp" export EPS_DATABASE_DIR="/data/database/" +export EPS_IMAGE_DIR="$(bashio::config 'image_path')" mkdir -p $EPS_DATABASE_DIR +mkdir -p $EPS_IMAGE_DIR bashio::log.info "Starting epaper station..." exec python /app/station.py