-
Create a bluemix account on https://console.ng.bluemix.net/
-
Create a uniques name of your organization and space to your application in it.
-
Select "Create an App" tile amongst the options. ..Name the app. ..Select a web application.
- Then choose ** Browse Boilerplate ** to choose a Nodered boilerplate code.
- Name your application and give a unique name to your host
- Your application will start staging and will start. The app will have cloudant database by default to store node red metadata.
- Select Overview tab on the left to see the detailed view of your application. As we are going to make our own assistance. We can enable it to notify us the temperature/weather of any place on the earth. For that we need to add a service to this app, which is called "Weather Company Data". So we select Add a service or API button.
It will create in few minutes and link itself to the existing app. Now your App has to be Restaged to reflect the updation.
-
Go back to overview of your App and add another service called "Text to Speech" and restage the application.
-
Click on the link of your application. You will be taken to NODE-RED ..Here, you can enter into Node-RED Editor to start making flows. Creating flows makes life easier with just dragging and dropping the functional nodes having code or API calls. It helps in debugging at each level as well so you know where the bug is located.
Left panel gives a vast range of nodes to drag and connect. This helps to perform functions and make an application running in minutes.
Three files are added into this github repository. Create three flows.
- Import Main flow into Node -red
- Import Weather flow
- Import News flow
Copy each flow from the github file to create flows on you node-red and paste here.
A couple more steps are requrired to get the application up and running. First click on the "text to speech" node and select "US English"
The "name" field can be left blank. Finnally, click on the each link node on the main tab:
and connect to the proper recieve node:
"Outgoing weather" should connect to "Incomming weather" and "Outgoing news" should connect to "Incomming news"
- We are using another bluemix application to record our message and send it to our node-red app. Check the link below.
https://codecamp-mic.mybluemix.net/
Enter your application link in the text box shown. http://<--host name-->.mybluemix.net
And record your message like
**What is the current weather in Chicago.**
Upload your message and It makes a call to node-red application. And speaks out the result.













