Just read
kernel hacker's guide,
implement a device driver (it could even be user space I think).
Please compile it as a module, so that we won't need a
kernel compile in every update.
Then write:
echo cappuccino >/dev/coffee
And you will have a hot cup of coffee in minutes!
Remember to give the right permission to /dev/coffee,
depending on whether you want only root making coffee or not.
The advantage of this method is that it supports feedback
from the coffee-machine by using the ACK of parallel port,
so that smart coffee-machines could produce an interrupt.
If you have implemented the C program (see above),
you just have to write a simple CGI script to turn ON and OFF
the coffee-machine.
You should write some nice webpages, explaining how to make coffee,
and put them on an apache web server...