X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=temp.sh;h=ccd72663aaaed904f55c994e1aa1269d8a35d5f3;hb=8706ce2f99dfd5dc9dacd869ce596e35e577777b;hp=ad5dcdec9ab05ab332224c68d77fbed51a2f4f20;hpb=73023bd714c9f7c3f3055a1c2153aee6349ed928;p=vaillant-thermostat diff --git a/temp.sh b/temp.sh index ad5dcde..ccd7266 100755 --- a/temp.sh +++ b/temp.sh @@ -1,9 +1,23 @@ #!/bin/sh -x +# install as cgi-script and invoke to get png + #ssh rpi 'cat `ls -t /dev/shm/vaillant.* | head -1` | sed "s/ .*| */ /"' > /dev/shm/temp.tsv -cat `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 -#display /tmp/m1.pgm -./pgm2fb.pl /tmp/m1.pgm | ssh root@192.168.3.100 'dd of=/dev/fb0 ; echo 2 > /proc/eink_fb/update_display' +convert /tmp/m1.png -gravity center -extent 600x800 -colorspace Gray /tmp/m1.gray.png +display /tmp/m1.pgm + +echo Location: http://192.168.3.2/m1.gray.png +echo +