Skip to content

maxsu/Coffeebot

Repository files navigation

Coffeebot

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. Stories in Ready


====================

The VM

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.

Install

We've got a couple prereqs to fetch

Linux
  1. Make sure you've got qemu and git. In debian/ubuntu, this is:
sudo apt-get install git qemu qemu-system
Os X
  1. Get XCode and Macports.
  2. Get Qemu and Git:
sudo port install git qemu +target_arm
General install

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

Working with the VM

For now the VM doesn't do much on its own "out of the box".

Start & Stopping

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.

Admin Work

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].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published