You should know there is a coffee machine that can be set by a timer, that take raw beans, roasts them to a set level of darkness, grinds them and makes a pot of coffee. I was given a broken one a while back, should probably get it working and hunt down a source of raw beans.
Cuisinart also makes one that takes roasted beans and does everything else. And having dated a girl who owned one and lived in a studio apartment, I can tell you that it also serves as the world's rudest alarm clock.