CandleHater / HyperTextCoffeePot

A real implementation of the HTCPCP Protocol for use on a Raspberry Pi..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HyperTextCoffeePot

A real implementation of the Hyper Text Coffee Pot Control Protocol. Get a cheap coffee pot, a programmable power strip, and a Raspberry Pi and you'll have your own HTCPCP server.

Goals

The goal of this project is to implement a complient HTCPCP server after the HTCPCP protocol.

Design

The overall design will involve a Flask server that communicates with a coffeed daemon that actually controls the coffee/tea pot. Therefore, the Flask app should return responses immediately.

Design of the Flask app (at time or writing) is nearly complete and trivially implemented. Implementation of the coffeed daemon is in the brainstorming phase. Please checkout the issues for more information.

Installation

apt-get install wiringpi
pip install -r requirements.txt

Run the server

gunicorn --worker-class gevent server:app

The server will be running on port 8000, you can use a command like this to make brew requests:

curl -X BREW http://localhost:8000/teapot

What to help?

Check out our CONTRIBUTING guidelines.

About

A real implementation of the HTCPCP Protocol for use on a Raspberry Pi..

License:MIT License


Languages

Language:Python 100.0%