From d734be7bb586355528e53a44cc1f248940b96173 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Thu, 9 Feb 2023 19:22:54 +0100 Subject: [PATCH] fix websock --- epaper-station/Dockerfile | 1 + epaper-station/config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/epaper-station/Dockerfile b/epaper-station/Dockerfile index a072190..5a20cb5 100644 --- a/epaper-station/Dockerfile +++ b/epaper-station/Dockerfile @@ -11,6 +11,7 @@ WORKDIR /app RUN ls /src && pip install -r requirements.txt RUN mkdir /public && cp /app/online_viewer.html /public/index.html && cp /app/no_img.jpg /public/ RUN sed -i 's/`ws:\/\/localhost:8000\/ws`/window.location.href.replace("http", "ws") + "\/ws\/"/g' /public/index.html +RUN sed -i "s/localhost/127.0.0.1/g" /app/websock.py ADD rootfs / diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 7f368a1..9093c1a 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: E-Paper Station -version: 1.0.0.42 +version: 1.0.0.43 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish images to E-Paper pricetags