In mythtv-setup under ‘Input connections’ (or something) type
/home/mythtv/.mythtv/sendkeys.sh

Then create this sendkeys.sh script in the directory mentioned above.

#!/bin/sh
for digit in $(echo $1 | sed -e 's/./& /g'); do
red_eye /dev/ttyS0 $digit 2
sleep 0.4
done



Decided this works better…

#!/bin/csh
echo "changing to $1"
/usr/local/bin/red_eye /dev/ttyS0 $1 2 &

Place the red_eye c program from
http://redremote.co.uk/serial/resdown.html
in /usr/bin or similar and you’re done.

Categories: LAMPMythTV

Jonathan Adjei

Jon's expertise in web development is legendary and he oversees all technical aspects of our projects from development to hosting (all through the command line!) Jon is excited by the latest techniques and keeps the company on track by finding ways to adopt new practices into our workflow.