From: Dobrica Pavlinusic Date: Tue, 28 Mar 2017 19:29:23 +0000 (+0200) Subject: use as CGI script and get png image X-Git-Url: http://git.rot13.org/?p=vaillant-thermostat;a=commitdiff_plain;h=8bd335b48f83f56247de3715d2355349c3fc7f62 use as CGI script and get png image --- diff --git a/temp.sh b/temp.sh index dc82bd8..837f3e5 100755 --- a/temp.sh +++ b/temp.sh @@ -1,14 +1,16 @@ #!/bin/sh -x -kindle=192.168.3.100 +# 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 +cd /home/pi/vaillant-thermostat/ gnuplot temp.gnuplot 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 -if ping $kindle ; then - ./pgm2fb.pl /tmp/m1.pgm | ssh root@$kindle 'dd of=/dev/fb0 ; echo 2 > /proc/eink_fb/update_display' -fi