debug textfeed

This commit is contained in:
Sebastian Wagner 2015-02-23 22:48:08 +01:00
parent 51074141f9
commit 1572b865b6

View file

@ -1,6 +1,22 @@
#!/bin/sh #!/bin/sh
echo -n "Y " \ HOST="172.22.239.182"
| convert -extract 16x16+43+43 -background lightblue -fill blue -pointsize 21 text:- bmp3:- \ PORT=8888
| dd bs=1 skip=54 \ NC=$(which nc)
| nc -u 172.22.239.182 8888
DEBUG=0
MESSAGE="Z"
MESSAGE="$MESSAGE "
if [ "$DEBUG" = 0 ]; then
echo -n "$MESSAGE" \
| convert -extract 16x16+43+43 -background lightblue -fill blue -pointsize 21 text:- bmp3:- \
| dd bs=1 skip=54 \
| "$NC" -u "$HOST" "$PORT"
else
echo -n "$MESSAGE" \
| convert -extract 16x16+43+43 -background lightblue -fill blue -pointsize 21 text:- bmp3:- \
> /tmp/debug.bmp
gpicview /tmp/debug.bmp
fi