From b28638dd28d394700c75299b3080dc8e9ecf4a14 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 16 Sep 2023 00:56:07 -0500 Subject: [PATCH] Update flow-runner.py: use new setting names --- scripts/flow-runner.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/flow-runner.py b/scripts/flow-runner.py index c8070b813..a262e36df 100755 --- a/scripts/flow-runner.py +++ b/scripts/flow-runner.py @@ -112,9 +112,10 @@ def signalHandler(sig, frame): shared.log(0, "ERROR: Unable to read SETTINGS_FILE - Aborting", exitCode=1) shared.fullFilename = os.environ["FULL_FILENAME"] - shared.createThumbnails = os.environ["IMG_CREATE_THUMBNAILS"] - shared.thumbnailWidth = int(os.environ["THUMBNAIL_SIZE_X"]) - shared.thumbnailHeight = int(os.environ["THUMBNAIL_SIZE_Y"]) + # TODO: imagecreatethumbnails is a boolean + shared.createThumbnails = int(shared.getSetting("imagecreatethumbnails")) + shared.thumbnailWidth = int(shared.getSetting("thumbnailsizex")) + shared.thumbnailHeight = int(shared.getSetting("thumbnailsizey")) shared.websiteImageFile = os.path.join(shared.allskyTmp, shared.fullFilename) shared.TOD = shared.args.tod date = datetime.now() @@ -319,4 +320,4 @@ def signalHandler(sig, frame): shared.dbDeleteKey("flowtimer") if os.path.exists(flowTimingsFolder): - shutil.rmtree(flowTimingsFolder) \ No newline at end of file + shutil.rmtree(flowTimingsFolder)