Command Lines

Using ImageMagick to do... a bunch of stuff. Starts with a 640x480 webcam pic.

convert input.jpg -resize 320x240                 \  # shrink image
   -gravity north -background red -extent 320x256 \  # insert red footer
   -font Courier-Bold -pointsize 16               \  # font face
   -fill white +gravity                           \  # font color                       
   -annotate +5+252 "KI4MCW-11 2017-07-26 23:06z" \  # add text
   output.jpg                                     \  # write output file


For using AIM 4170C under Wine on Linux, configure the serial port.

#!/bin/sh

echo 'Configuring port...'
stty -F /dev/ttyUSB0 speed 57600 cs8 -cstopb -parenb -crtscts \
     -ixon -onlcr -echoe -echok -noflsh -echoctl -echoke
sleep 1

echo 'Activating red LED to initialize comms (confirm)...'
echo -n 'K1' > /dev/ttyUSB0
sleep 3

echo 'De-activating red LED...'
echo -n 'K0' > /dev/ttyUSB0

echo 'Launching app...'
nohup wine c:/AIM/AIM_925.exe > /dev/null 2>&1 < /dev/null &
sleep 3

# end