Creating Node-Red module

Starting on my Node-Red module, I first needed to test out whether the Node-Red modules would work with Unity, I knew that they would but if I could create a simple system then this would allow me to build upon this system. I started by connecting a Twitter output module  to the Debug module, this would show me that the Twitter module works and I can get tweets  about a random topic. I then connected a websocket module from the Twitter module, so that the same data flowing into the debug module will be duplicated into the websocket.

Once I had completed this I then scripted so that the Unity sketch would then connect to the websocket. This means that the data would then be available in Unity. This simple system just connects Twitter to Unity, I will be able to build upon this system to make this more advanced.

Node-red-screen
Initiating Node-Red
127-screen
A system of Node-Red modules
Unity-1
The Unity sketch showing the input of data

The reason I still connect the debug module is so that I can see what data Node-Red is retrieving, if I am seeing the data on the debug module but not in Unity, then I know the problem is within the Unity sketch whereas If I do not see any data in the debug module then the problem is within Node-Red (just does what It says on the tin, a debug module).

 

Leave a comment