https://github.com/webkom/kaffe-listener
Listens to coffee power consumption messages on MQTT and notifies slack and influxDB when somebody has brewed coffee.
https://github.com/webkom/kaffe-listener
Last synced: 9 months ago
JSON representation
Listens to coffee power consumption messages on MQTT and notifies slack and influxDB when somebody has brewed coffee.
- Host: GitHub
- URL: https://github.com/webkom/kaffe-listener
- Owner: webkom
- Created: 2019-01-21T21:49:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T12:19:44.000Z (about 4 years ago)
- Last Synced: 2025-03-12T10:18:22.446Z (about 1 year ago)
- Language: Elixir
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KaffeListener
This repo connects to our MQTT server, listening 1) for power measurements from a socket connected to our moccamaster, and 2) for card scannings from a card reader placed next to the moccamaster. Whenever coffee is brewed, the script estimates the volume by checking how long the brew took, and then sends a message to slack with who brewed and how much they brewed. The information about the brew is also broadcast back to MQTT for other consumers, where it is picked up by another script that stores the historical data in influxDB.