X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=temp.sh;h=ccd72663aaaed904f55c994e1aa1269d8a35d5f3;hb=2db91eb214086fced01cfcf40c1563ac89101242;hp=837f3e5ee6cd72167bb192b7b4a5c4b9537181cf;hpb=8bd335b48f83f56247de3715d2355349c3fc7f62;p=vaillant-thermostat diff --git a/temp.sh b/temp.sh index 837f3e5..ccd7266 100755 --- a/temp.sh +++ b/temp.sh @@ -2,15 +2,22 @@ # install as cgi-script and invoke to get png -echo Location: http://192.168.3.2/m1.gray.png -echo - #ssh rpi 'cat `ls -t /dev/shm/vaillant.* | head -1` | sed "s/ .*| */ /"' > /dev/shm/temp.tsv -tail -8640 `ls -t /dev/shm/vaillant.* | head -1` | sed "s/ .*| */ /" > /dev/shm/temp.tsv +tail -4320 `ls -t /dev/shm/vaillant.* | head -1` | sed "s/ .*| */ /" > /dev/shm/temp.tsv cd /home/pi/vaillant-thermostat/ gnuplot temp.gnuplot +convert /dev/shm/temp.png -gravity center -extent 600x800 -colorspace Gray /tmp/m1.gray.png + +echo Location: http://192.168.3.2/m1.gray.png +echo + +exit 0 + montage /dev/shm/[1-3].png -tile 1x3 -geometry +0+0 /tmp/m1.png -#convert /tmp/m1.png -gravity center -extent 600x800 /tmp/m1.pgm +convert /tmp/m1.png -gravity center -extent 600x800 /tmp/m1.pgm convert /tmp/m1.png -gravity center -extent 600x800 -colorspace Gray /tmp/m1.gray.png -#display /tmp/m1.pgm +display /tmp/m1.pgm + +echo Location: http://192.168.3.2/m1.gray.png +echo