Lab 4 - Gnkhakimova/CS5590-IoT GitHub Wiki

Lab 4

Video

https://www.youtube.com/watch?v=YcMJ3HKbyVE&feature=youtu.be

Sources Code

https://github.com/Gnkhakimova/CS5590-IoT/tree/master/Labs/LAB-4/Source%20Code

Wiki Sang Ly (5)

https://github.com/Sang-Ly/Lab-4/wiki/Lab-4

Wiki Gulnoza Khakimova (3)

https://github.com/Gnkhakimova/CS5590-IoT/wiki/Lab-4

Wiki MURALI KRISHNA SAI CHUKKA (2)

https://github.com/chkrish9/CS5590-IoT-Lab/wiki/Lab4

Introduction

Create an in-class project (Lab 4) in Choregraphe – which is a continuation of the previous ICP to make a virtual robot listen (in this case read text) – using speech recognition – and output the weather in a certain location. The components that are needed for the completing this lab are virtual robot in Choregraphe and open weather map API call.

Objective

The objective of this lab 4 is to communicate to our virtual robot and ask it to do something. By doing so we had to integrate speech recognition into the virtual robot – in our case read in text – so that the virtual robot understands what the input was and have the robot response accordingly to the input. And in this case, the virtual robot response will be saying the input location weather.

Approach/Method

The approach we took to complete this lab 4 were to use our previous Choregraphe setup. Where we setup our API call to open weather map and get the weather data and have the robot output the weather data in specified location. To do that, we had to sign up in open weather map to get the API key. Once we acquire the API key and able to access the weather data. We created a python code that request the weather data by making an API call. And we attached the python code of receiving the weather data to a virtual robot output speech. From there we created a switch case and a text box. The text box – is a replacement of our speech recognition because we could not access speech recognition on a virtual robot – will have the specify location of where to search for the weather. And in our switch case we define if the speech recognition – textbox – matches with any case it will output to look up the area and output the weather.

Workflow

The workflow for our lab 4 were to integrate a speech recognition to our working virtual robot from our previous ICP. The Speech recognition – text box – allow the robot to understand what was said and output a response accordingly.

Circuit Diagram

This is how we setup our text box for looking up weather in a specify location.

This is how we set up our API call to get the weather for a location.

Parameter

The parameter we had to include to complete this lab 4 project were a virtual robot from Choregraphe and open weather map using their API key. Without these key features we could not complete this task.

Conclusion

Conclusion for our lab 4. We were able to complete the following task – using speech recognition to get the robot to response accordingly. We were able to get the robot to understand our text box and locate the weather in the specify area.

Contribution

  1. Sang Minh Ly – speech recognition – text box
  2. Gulnoza Khakimova – get open weather map API key and helped with python API call
  3. Murali Krishna Sai Chukka – implemented python API call to get weather