From b4b6dd56a4213236d47b991e82497d081a482dae Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Wed, 29 Nov 2017 15:50:15 -0500 Subject: [PATCH] Move generated images and resize them, while here --- bin/monitor-graph-cgi.sh | 7 ++++--- misc/index.html | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-) 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 < - - - + + + - - - + + + - - - + + +
-