Add more config options

This commit is contained in:
Jan-Henrik 2023-02-07 01:20:47 +01:00
parent ed535f5b91
commit f4260554cd
2 changed files with 15 additions and 2 deletions

View file

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

View file

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