Add image format config option

This commit is contained in:
Jan-Henrik 2023-02-06 23:04:25 +01:00
parent 6bae21f87c
commit 3d0e11159b
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,6 @@
---
name: EPaper Station
version: 1.0.0.6
version: 1.0.0.7
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
slug: epaper-station
description: Publish Pictures to EPaper pricetags
@ -15,10 +15,12 @@ map:
options:
serial_port: ""
image_path: "/config/epaper-station/images"
image_format: "1bppR"
channel: 25
schema:
serial_port: str
image_path: str
image_format: str
channel: "int(11,25)"
stage: experimental
url: https://github.com/jhbruhn/ZBS_Flasher

View file

@ -7,6 +7,7 @@ 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')"
export EPS_IMAGE_FORMAT="$(bashio::config 'image_format')"
mkdir -p $EPS_DATABASE_DIR
mkdir -p $EPS_IMAGE_DIR