[GreenKeys] teletype server software
Henry Minsky
[email protected]
Mon, 25 Nov 2002 19:36:55 -0500
I recently decided to rewrite the software that drives my Model 28 teletype.
In the house I mostly use the teletype to print out upcoming appointments
from our Yahoo
calendar. Yahoo will send email at a pre-set time before the event, and I have
a script that runs when mail is received at a special address, to print out the
message on the teletype.
I decided this time to start with a small lightweight web server which is
designed for embedded systems, called boa
(http://www.boa.org), and then added in some code to drive the serial port.
When a special URL is accessed on the server (/cgi-bin/teletype.cgi), any
message
POSTed to that URL is printed on the teletype. The server also runs a
little command
line monitor for the TTY, so you can type commands to get the weather,
news, and various other things.
Each of these commands just fetches a pre-defined URL and prints the text
to the
teletype, so it's easy to add new commands and services.
So, web services, the latest buzzword technology, meets Teletype technology.
I can put the source code for this up on the web if anybody is interested.
Henry