A coffee server built on Raspberry Pi.
The idea is to run a small webserver that allows a user to use the internet to tell their coffee machine,
Make me some Coffee, Please.
For a top level view of the project tasks check out the project's issues Kanban.
====================
To test the coffebot server features, we've got a Qemu VM that runs a Raspberry Pi operating system. VM configuration code should work for the physical device.
We've got a couple prereqs to fetch
- Make sure you've got qemu and git. In debian/ubuntu, this is:
sudo apt-get install git qemu qemu-system
sudo port install git qemu +target_arm
Note: The init step requires root priviledges. We need to mount the image and edit some of its contents.
Please review thevm-init
lines that start with sudo
if you need to make sure things are legit.
An alternative that does not need root to edit the contents of the image would be welcome here.
We simply grab the project and run the setup script
git init https://github.com/maxsu/Coffeebot && cd Coffeebot
./vm-get && ./vm-init
For now the VM doesn't do much on its own "out of the box".
To start the vm, use ./vm-up
. On the first run, ignore the raspi-config
menu.
On subsequent runs, login with the pi
user and password raspberry
.
To do a hard shutdown of the machine, you may do Ctrl-C
inside the original terminal window.
This is equivalent to pulling the plug on a physcial Pi.
For a soft shutdown, run sudo shutdown -h now
inside the machine.
If you screw up the machine, you can kill the machine, then run ./vm-init
again to get a fresh machine.
This will completely erase the old machine.
Aside from that, the machine will behave as a regular, albeit some what slow, Debian machine.
You can for example install packages with sudo apt-get update && sudo apt-get install [PACKAGE NAMES]
.