OK, this is pretty epic.
Two spanky new technologies have collided to provide a cornucopia of possibilities for the hack minded. One half of the collision of awesomeness is the vaunted Node-RED – which is simply the most easy to get to grips with tool for wiring up the internet of things ever invented. The other is the brand new, just G.A’d MQ Light – which allows developers to add powerful but incredibly simple messaging functionality to their apps.
Now, there are MQ Light nodes in Node-RED allowing you to wire up your apps to the Internet of Things with ease…
Matt Whitehead from the team that built MQ Light had this to say…
If you are using Node-RED in Bluemix you can now connect your flow to MQ Light using the new input and output nodes.
Using the nodes you can offload work from your application to be processed by a Node-RED flow, using function nodes, sentiment analysis, IBM Watson Q & A, or any other function Node-RED provides. Then you can have the flow return the results back to your application as an MQ Light message.
Here’s a simple flow I created using the new nodes:
I’ve configured an MQ Light input node to subscribe for messages on the topic ‘data’, and wired the node to both a sentiment analysis node and an IBM Watson Q & A node. The results from the two parts of the flow are returned to my application on the topics sentiment/response and watson/answer respectively. I’ve also used a function node to prevent answers from Watson being sent back to my application if the confidence of the answer isn’t high enough.
Check it out more here