From: Nathaniel Wesley Filardo Date: Wed, 29 Nov 2017 20:50:15 +0000 (-0500) Subject: Move generated images and resize them, while here X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=b4b6dd56a4213236d47b991e82497d081a482dae;p=acmetensortoys-snakecontrol Move generated images and resize them, while here --- diff --git a/bin/monitor-graph-cgi.sh b/bin/monitor-graph-cgi.sh index 46829cc..ba9bbd3 100755 --- a/bin/monitor-graph-cgi.sh +++ b/bin/monitor-graph-cgi.sh @@ -1,7 +1,7 @@ #!/bin/zsh DATA_DIR=/home/pi/sc/data -OUTDIR=/home/pi/public_html +OUTDIR=/home/pi/public_html/genimg DMX_SCALE=5 DMX_SHIFT=20 @@ -9,9 +9,10 @@ DMX_SHIFT=20 TEMP_SCALE_UPPER=32 TEMP_SCALE_LOWER=19 +# In index.html, add 97 to width and 73 to height. COMMON_ARGS=( --end now - --width=960 --height=480 + --width=512 --height=320 --lazy ) @@ -89,7 +90,7 @@ touch ${OUTDIR}/.rrdlock flock --exclusive ${OUTDIR}/.rrdlock "${CMD[@]}" >&2 cat < - - - + + + - - - + + + - - - + + +
-