For the past week I’ve been obsessed with Node-RED. If you are not familiar with it, Node-RED is an open source IBM technology for “wiring together hardware devices, APIs and online services in new and interesting ways”. Since Node-RED is built on Node.js, this makes it ideal to run at the edge of the network on low-cost hardware such as an Arduino or Raspberry Pi as well as in the cloud.
Similar in methodology to Yahoo! Pipes, Node-RED initially started as a visual tool for wiring IoT but has developed into a service that can do all sorts of crazy things. Installation is simple but to make life easier, IBM Bluemix offers a Node-RED template so you can get a web app up and running in no time.
I went through the “create your first flows” tutorials but I wanted to make something more substantial utilizing some of the super sweet IBM Watson services. Here’s what I created, and in the end, it was ridiculously simple to build. A video of the flow in action is embedded at the bottom of this article.
- For each new challenge, call the challenge API to get its details.
- The flow only processes challenges where the type is ‘Assembly Competition’ and the total prize money is greater than $1500.
- Translate the name of the challenges and its requirements into Spanish using the Watson Machine Translation service.
- Save the Spanish overview of the challenge to MongoDB.
- Tweet the challenge name (in Spanish) and a link to this application so that the Spanish requirements can be viewed.