Eddie is our concierge here at Barkley. He knows who’s in the office, what clients will be in town, and most importantly, where the free food is after an important meeting.
On those frequent occasions where there are leftover muffins, cake, or any other treat, Eddie will send out a company wide e-mail to let everyone know. Unfortunately the food goes fast and if you’re not one of the first vultures to show up… you’ll be going hungry.
Introducing the Eddie-O-Matic, a machine which immediately notifies the Moonshot team of free food and its location.
Behind the Scenes
A webhook established via Context.io acts as a listener for any incoming e-mails from Eddie. When one is received, Context.io will notify a custom web application with the message details. The application checks to see if two parameters are met:
1. Does the e-mail contain words that look like food - donuts, bagels, Dean and Deluca!?!
2. Does the e-mail contain a location where we might find the food - a floor number or something similar?
If both of the conditions are met, the web app will then notify the Spark API which in-turn immediately messages the Spark core (the micro-controller we’re using for this project). The board then:
* Lights up the appropriate LED which matches the free food item.
* Rotates a servo so the arm points to the correct floor.
* Rotates another servo and “DINGs!” the bell (Eddie’s signature sound).
The Spark core is a really great controller to get ideas going fast. The hardware is easy to work with and the board provides wifi connection out of the box. The REST API is a huge convenience and is reliable and easy to use. If you’re willing to write a web app, you can make fairly complex mashups quickly.
- Joe Longstreet (@joelongstreet)