Add image dir parameter
This commit is contained in:
parent
f05a8b5896
commit
cb1dc48ade
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: EPaper Station
|
name: EPaper Station
|
||||||
version: 1.0.0.4
|
version: 1.0.0.5
|
||||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||||
slug: epaper-station
|
slug: epaper-station
|
||||||
description: Publish Pictures to EPaper pricetags
|
description: Publish Pictures to EPaper pricetags
|
||||||
|
@ -9,8 +9,12 @@ arch:
|
||||||
- amd64
|
- amd64
|
||||||
- armv7
|
- armv7
|
||||||
- aarch64
|
- aarch64
|
||||||
|
map:
|
||||||
|
- "share:rw"
|
||||||
|
- "config:rw"
|
||||||
options:
|
options:
|
||||||
serial_port: ""
|
serial_port: ""
|
||||||
|
image_path: "/config/epaper-station/images"
|
||||||
channel: 25
|
channel: 25
|
||||||
schema:
|
schema:
|
||||||
serial_port: str
|
serial_port: str
|
||||||
|
|
|
@ -6,7 +6,9 @@ export EPS_CHANNEL="$(bashio::config 'channel')"
|
||||||
export EPS_PORT="$(bashio::config 'serial_port')"
|
export EPS_PORT="$(bashio::config 'serial_port')"
|
||||||
export EPS_IMAGE_WORKDIR="/tmp"
|
export EPS_IMAGE_WORKDIR="/tmp"
|
||||||
export EPS_DATABASE_DIR="/data/database/"
|
export EPS_DATABASE_DIR="/data/database/"
|
||||||
|
export EPS_IMAGE_DIR="$(bashio::config 'image_path')"
|
||||||
mkdir -p $EPS_DATABASE_DIR
|
mkdir -p $EPS_DATABASE_DIR
|
||||||
|
mkdir -p $EPS_IMAGE_DIR
|
||||||
|
|
||||||
bashio::log.info "Starting epaper station..."
|
bashio::log.info "Starting epaper station..."
|
||||||
exec python /app/station.py
|
exec python /app/station.py
|
||||||
|
|
Loading…
Reference in a new issue