diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index a91b537..23fa94c 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: EPaper Station -version: 1.0.0.37 +version: 1.0.0.38 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish Pictures to EPaper pricetags @@ -20,11 +20,19 @@ options: image_path: "/config/epaper-station/images" image_format: "1bppR" channel: 25 + checkin_delay: 300000 + retry_delay: 1000 + failed_checkins_till_blank: 5 + failed_checkins_till_dissoc: 5 schema: - serial_port: str + serial_port: device(subsystem=tty) image_path: str image_format: str channel: "int(11,25)" + checkin_delay: int + retry_delay: int + failed_checkins_till_blank: int + failed_checkins_till_dissoc: int stage: experimental url: https://github.com/jhbruhn/ZBS_Flasher hassio_api: true diff --git a/epaper-station/rootfs/etc/services.d/epaper-station/run b/epaper-station/rootfs/etc/services.d/epaper-station/run index a1581a8..427552a 100644 --- a/epaper-station/rootfs/etc/services.d/epaper-station/run +++ b/epaper-station/rootfs/etc/services.d/epaper-station/run @@ -8,6 +8,11 @@ export EPS_IMAGE_WORKDIR="/tmp" export EPS_DATABASE_DIR="/data/database/" export EPS_IMAGE_DIR="$(bashio::config 'image_path')" export EPS_IMAGE_FORMAT="$(bashio::config 'image_format')" +export EPS_CHECKIN_DELAY="$(bashio::config 'checkin_delay')" +export EPS_RETRY_DELAY="$(bashio::config 'retry_delay')" +export EPS_FAILED_CHECKINS_TILL_BLANK="$(bashio::config 'failed_checkins_till_blank')" +export EPS_FAILED_CHECKINS_TILL_DISSOC="$(bashio::config 'failed_checkins_till_dissoc')" + mkdir -p $EPS_DATABASE_DIR mkdir -p $EPS_IMAGE_DIR