From 3d0e11159ba34a7570ef47554865244db1e92440 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Mon, 6 Feb 2023 23:04:25 +0100 Subject: [PATCH] Add image format config option --- epaper-station/config.yaml | 4 +++- epaper-station/rootfs/etc/services.d/epaper-station/run | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 48f99cc..328710f 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -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 diff --git a/epaper-station/rootfs/etc/services.d/epaper-station/run b/epaper-station/rootfs/etc/services.d/epaper-station/run index d190401..a1581a8 100644 --- a/epaper-station/rootfs/etc/services.d/epaper-station/run +++ b/epaper-station/rootfs/etc/services.d/epaper-station/run @@ -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