websocket stuff

This commit is contained in:
Jan-Henrik 2023-02-07 01:12:19 +01:00
parent 15ed4d12f7
commit ed535f5b91
3 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
--- ---
name: EPaper Station name: EPaper Station
version: 1.0.0.36 version: 1.0.0.37
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
slug: epaper-station slug: epaper-station
description: Publish Pictures to EPaper pricetags description: Publish Pictures to EPaper pricetags

View file

@ -10,6 +10,11 @@ http {
charset utf-8; charset utf-8;
# access_log /dev/stdout; # access_log /dev/stdout;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server { server {
server_name localhost; server_name localhost;
listen 0.0.0.0:4242; listen 0.0.0.0:4242;

View file

@ -1,4 +1,4 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
IMG_DIR="$(bashio::config 'image_path')" IMG_DIR="$(bashio::config 'image_path')"
bashio::log.info "Starting image server..." bashio::log.info "Starting image server..."
python -m http.server 8080 --directory $IMG_DIR > /dev/null python -m http.server 8080 --directory $IMG_DIR 2>/dev/null