Skip to content

larseen/coffee

 
 

Repository files navigation

coffee

Build Status

An API to the Moccamaster at the Abakus office.

Setup dev environment

git clone git@github.com:webkom/coffee.git
cd coffee
make

Run the project by running make run.

Use the API

Return data of last time coffee was turned on.

Example response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "coffee": {
    "status": true,
    "last_start": "2012-12-12 12:12",
    "time_since": {
	  "hours": 0,
	  "minutes": 0
	}
  }
}

Return stats of usage of the coffee machine.

Example response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "stats": {
    "2012-12-12": 3,
    "2012-12-13": 1,
    "2012-12-14": 7
  }
}

MIT © webkom, Abakus Linjeforening

About

An API to the Moccamaster at the Abakus office

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.0%
  • JavaScript 21.5%
  • Shell 8.2%
  • CSS 4.8%
  • Makefile 3.5%