Skip to content

Latest commit

 

History

History
100 lines (56 loc) · 4.85 KB

File metadata and controls

100 lines (56 loc) · 4.85 KB

Setting up your own Personal Assistant

  1. Create a bluemix account on https://console.ng.bluemix.net/

  2. Create a uniques name of your organization and space to your application in it.

  3. Select "Create an App" tile amongst the options. ..Name the app. ..Select a web application.

layout 1

  • Then choose ** Browse Boilerplate ** to choose a Nodered boilerplate code.

layout 2

layout 3

  • Name your application and give a unique name to your host

screen shot 2016-09-30 at 3 10 13 pm

  • Your application will start staging and will start. The app will have cloudant database by default to store node red metadata.

screen shot 2016-09-30 at 3 15 24 pm

  • 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.

screen shot 2016-09-30 at 5 45 55 pm

screen shot 2016-09-30 at 5 46 53 pm

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.

screen shot 2016-09-30 at 3 22 06 pm

Left panel gives a vast range of nodes to drag and connect. This helps to perform functions and make an application running in minutes.

screen shot 2016-09-30 at 3 23 58 pm

Three files are added into this github repository. Create three flows.

  • Import Main flow into Node -red
  • Import Weather flow
  • Import News flow

screen shot 2016-09-30 at 5 31 54 pm

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"

screen shot 2016-09-30 at 6 17 16 pm

The "name" field can be left blank. Finnally, click on the each link node on the main tab:

screen shot 2016-10-01 at 8 57 21 am

and connect to the proper recieve node:

screen shot 2016-10-01 at 9 06 17 am

"Outgoing weather" should connect to "Incomming weather" and "Outgoing news" should connect to "Incomming news"

Speech to text Microphone application

  • 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.