Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehne/coffeefy
the Senseo whisperer
https://github.com/rehne/coffeefy
coffee iot node python raspberrypi
Last synced: about 15 hours ago
JSON representation
the Senseo whisperer
- Host: GitHub
- URL: https://github.com/rehne/coffeefy
- Owner: rehne
- License: gpl-3.0
- Created: 2016-05-18T13:35:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T15:06:34.000Z (over 1 year ago)
- Last Synced: 2024-04-13T08:22:17.601Z (7 months ago)
- Topics: coffee, iot, node, python, raspberrypi
- Language: JavaScript
- Homepage: http://rehne.github.io/coffeefy/
- Size: 88.2 MB
- Stars: 8
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# coffeefy
## Description
Coffeefy let you control a coffee maker via the Internet using a RESTful API provided by an express.js-server. However, this system isn't reliable yet and should run under supervision.
## System architecture
![Systemarchitektur](https://cdn.rawgit.com/rehne/coffeefy/b97ae538/docs/Architekturdiagram%20IoT%203.0.svg)
## Used hardware- Raspberry Pi 3
- Senseo 7810 Coffee Machine
- HC-SR04 Ultrasonic Sensor
- 3 Relays
- 2 Resistors(680Ohm/1kOhm)
- minor small parts (optional breadboard, wires etc.)## Installation
- clone repository
- navigate to ./node
- run `npm install` to install the dependencies
- To start the webserver, run: `nodemon app` or `node ./bin/www`
- open `http://localhost:3000` in your browserYou can run Coffeefy as a daemon service using "forever". (see below)
After Installation you can start the node.js server by running `forever start ./bin/www`.
To see what's going on, determine the logfile path by running `forever list` and run
`tail -f `(Instructions for running `ultrasonic.py` in background)
## Required Python libraries
- RPi.GPIO via `sudo apt-get install rpi.gpio`
- paho-mqtt via `pip install paho-mqtt`## Useful node.js modules and other ressources
- [mqtt.js](https://github.com/mqttjs/MQTT.js)
- [python-shell](https://github.com/extrabacon/python-shell)
- [Correct usage of GPIO.cleanup()](http://raspi.tv/2013/rpi-gpio-basics-3-how-to-exit-gpio-programs-cleanly-avoid-warnings-and-protect-your-pi)
- Running a node js server.. [forever(Github-Repo)](https://github.com/foreverjs/forever)
- [nodemon](http://nodemon.io/) monitors for any changes in source, restarts the server automatically if necessary.## Troubleshooting
- Installing paho-mqtt causes an error. Missing "Python.h"? → Install the python developer package via `apt-get install python2.7-dev`.
- `node app.js` results in a crash. → I dunno Y, just install `nodemon` via npm. → `node ./bin/www`## Authors
[Vanakh Chea](https://github.com/kanonenfutter/), [Alexander Thürling](https://github.com/revanjin), [René Honnen](https://github.com/rehne), [Christian Krenn](https://github.com/Cuhater/)## License
[GNU](LICENSE)