Skip to content

Commit

Permalink
Update flow-runner.py: use new setting names
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 16, 2023
1 parent 022f345 commit b28638d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/flow-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -319,4 +320,4 @@ def signalHandler(sig, frame):
shared.dbDeleteKey("flowtimer")

if os.path.exists(flowTimingsFolder):
shutil.rmtree(flowTimingsFolder)
shutil.rmtree(flowTimingsFolder)

0 comments on commit b28638d

Please sign in to comment.