Fresh Coffee For All at Narrative
Two of our amazingly talented developers, Joakim and Johan, explain how to set up your own fresh coffee alert. Sweden has one of the highest coffee consumption per capital in the world and the Narrative Team is doing its part to keep it that way. Read below as Johan walks us through the process so you can set up your own system and keep your office running smoothly.
Recently a fellow developer here at Narrative and I sat down after work to improve our company bot. We’re using Hipchat to communicate across our offices and also internally at the offices. In the chat we also have our trusted Hubot that keeps track of things for us. Hubot gives us developers information about what’s going on at Github, who’s in charge of keeping the kitchen clean this week and so on. But it’s also fairly simple to make Hubot do other nice things.
Joakim happened to have a Spark Core laying around and had bought some sensors for it. Naturally, we wanted to play with it, but what could we do? The answer was simple, of course we should build a solution that would tell us when the coffee is ready! (Entirely Joakims idea, he’s a smart guy). After all, the old solution needed an upgrade.
What you’ll need:
- Spark Core or similare
- A Soil Humidity Hygrometer Moisture Detection Sensor for Arduino similare to http://www.ebay.co.uk/itm/201076036741?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
- Hipchat
- Hubot
- Heroku App
The setup:
spark code
hubot script
Heroku code
Oh, and of course we wanted to keep track of how much coffee we’re making. So everything is saved to Parse.com. We plan on making some graphs on the coffee consumption next. Stay tuned!
If you want the code clone, get it from GitHub.