From 132b5a47d58cf291d417b6acc77ace2a51e65e14 Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 30 Nov 2023 16:08:54 +0100 Subject: [PATCH] updated launch config and systemd service --- .vscode/launch.json | 6 +++--- slideshow.service | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 689a434..abd95d9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,9 +14,9 @@ "SLIDESHOW_PALETTE": "/tmp/.slideshow.palette", "SLIDESHOW_PALETTE_ALGORITHM": "", "SLIDESHOW_PALETTE_COLORS": "", - "SLIDESHOW_SCRIPT": "/tmp/cat-palette.sh", - "SLIDESHOW_SCRIPT_ASYNC": "true", - "SLIDESHOW_SCRIPT_STAGE": "post_image", + "SLIDESHOW_SCRIPT": "", + "SLIDESHOW_SCRIPT_ASYNC": "", + "SLIDESHOW_SCRIPT_STAGE": "", "SLIDESHOW_LOGLEVEL": "debug", }, "console": "integratedTerminal" diff --git a/slideshow.service b/slideshow.service index aebfdfc..3242540 100644 --- a/slideshow.service +++ b/slideshow.service @@ -5,16 +5,16 @@ Description=slideshow Type=simple User=velvettear Environment="DISPLAY=:0" +ENVIRONMENT="SLIDESHOW_API=localhost:3000" Environment="SLIDESHOW_INTERVAL=60" -Environment="SLIDESHOW_DIRECTORY=$HOME" -Environment="SLIDESHOW_SCANINTERVAL=60" -Environment="SLIDESHOW_RESOLUTION=1920x1080" +Environment="SLIDESHOW_RESOLUTION=" Environment="SLIDESHOW_PALETTE=/tmp/.slideshow.palette" -Environment="SLIDESHOW_PALETTE_ALGORITHM=wsm" -Environment="SLIDESHOW_PALETTE_COLORS=16" +Environment="SLIDESHOW_PALETTE_ALGORITHM=" +Environment="SLIDESHOW_PALETTE_COLORS=" Environment="SLIDESHOW_SCRIPT=" -Environment="SLIDESHOW_SCRIPT_ASYNC=true" -Environment="SLIDESHOW_LOGLEVEL=info" +Environment="SLIDESHOW_SCRIPT_ASYNC=" +Environment="SLIDESHOW_SCRIPT_STAGE=" +Environment="SLIDESHOW_LOGLEVEL=debug" ExecStart=/opt/slideshow/slideshow [Install]