Add image dir parameter

This commit is contained in:
Jan-Henrik 2023-02-06 22:54:51 +01:00
parent f05a8b5896
commit cb1dc48ade
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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