This is about an IoT project that acquire weather information by integrating Arduino with Yahoo! Weather. This is all done by creating a simple Arduino sketch with the help of Temboo that acquires weather information for a specific address from the Yahoo Weather API
Internet of things is the latest trend in the field of technology. Arduino and Raspberry PI are supporting these innovations by helping many developers to create interesting IoT projects. This project is progressing with a different methodology. The approach of this internet of things project is to use data that is acquired from an external source which can be used to control and have effects on Arduino connected devices. Further, this information will be used to control an RGB led that changes its color
Temboo is used with Arduino and Arduino-compatible boards as it provides an easy access to connect to over 100 web-based resources and services. It is based on the interaction with their Application Programming Interfaces (APIs). It’s time to dig some details about Temboo platform as Temboo helps to get the most out of your sensor data. Further it trigger emails and SMS alerts, stream it to cloud data stores for logging and visualization and then gathering it from M2M device networks, and many more stuffs can be performed while using Temboo.
Details of Yahoo! Weather
Well to your information, in order to get weather information, Yahoo! Weather uses Woeid. It is assigned to all cities, areas around the world as unique identifier. With the help of this parameter, one can easily get weather information. Further, Temboo requires Woeid as it is necessary to convert the city name to woeid.
You can start with creating a simple sketch of Arduino to control the RGB led. PWM (Pulse Width Modulation) is controlled by Arduino to control RGB led. This helps to change the three basic color value of RGB that is red, blue and green. Moreover, the coding of this project is very simple.
Integrating Arduino with Temboo
This project requires usage of Yahoo! Weather Choreos. This is important while building IoT projects. Temboo provides a great platform to use Choreos effectively to expose services to Arduino and other development platforms. In this project we are trying to get Weather information, therefore using Yahoo! Weather Choreos is the best option to get Temperature. The project is using Temperature to control the RGB Led but other parameters can also be used
Now you just have to paste the woeid and click on run to get weather information. Woeid is used because it is very simple to use. After clicking on the run button, you will get the Arduino code that you have to copy and paste in your sketch. Now, Arduino is ready to get weather information
Controlling RGB Led using Temperature
After collecting all the pieces of the project all we have to mix them properly to make stuff work. The sketch that was copied previously along with the code of Temboo has to be modified. The result will be used to change the RGB red color. Once we modify the code slightly, we can get temperature value only. Since the rules are simple, you can implement your rules to convert the integer value to RGB color or you can change them as you prefer. This is how you control RGB LED using temperature by modifying codes slightly and you are done with the project.
Here we connected Arduino to Yahoo! Weather in this Internet of things project using Temboo chores. This brings Arduino to whole new level, where it is used to retrieve information to control RGB led. You can also use Arduino in different innovative projects.
Filed Under: Reviews