In this tutorial, we'll show you how to use the Arduino GSM shield to search the Yahoo! Weather forecast from your Arduino using Temboo.
This sketch uses our Yahoo > Weather >GetWeatherByAddress Choreo. You'll also need the Arduino GSM Shield and a compatible Arduino board. Note that the GSM Shield library is included with versions 1.0.4 and later of the Arduino IDE.
1Make sure you have a Temboo account. If you don't already have one, you can register for free.
2Next, make sure that you've got the latest version the Arduino IDE installed.
3Go to the Yahoo > Weather > GetWeatherByAddress in our Library.
4Turn IoT Mode ON at the top of the Choreo page and select Arduino from the drop down menu to the left.
5Select the Arduino GSM shield from the "How is it connected?" drop down menu.
6You'll now see a popup window that prompts you to provide a name, the Access Point, and the Login, Password and PIN if you'd like to provide them. We're using a Movistar SIM card, so our Access Point is bluevia.movistar.es. You can find out more about Access Points in Arduino's documentation for the GSM Shield. When you press Save, Temboo will add this shield to your profiles so that you can use it later.
7Now that you've set up your shield, you're ready to try running the Choreo in the browser. Fill in the required Address input. You can put a full address, partial address or even just a zip code.
8Save the input into a profile for the next time you want to run this Choreo by clicking Save Profile at the top of the INPUT box. Give your profile a name, and press Save again. Then click the Run.
9In the OUTPUT section, you should see the information returned by Yahoo! Weather as an XML response.
10If you'd like the Choreo to be triggered by a sensor event, or if you'd like the Choreo result to trigger an actuator event, you can specify conditions above and below the Choreo inputs and we'll generate the application logic code you need.
11Scroll down past the OUTPUT section to the CODE snippets. Copy and paste the code snippet into your Arduino IDE.
12You'll also need to create the header file for your sketch, where your Temboo account credentials and shield information are stored. To incorporate it into your sketch, you'll create a New Tab in the Arduino IDE and call it
13Copy the code snippet in the HEADER FILE found directly following the CODE snippet that you just copied and paste it into the
14That's it, now your code is ready to upload! Once you upload the sketch to your board, open the serial monitor and you should see the forecast returned by Yahoo! Weather.
Now that you know how to connect your Arduino to Temboo using your GSM Shield, you're ready to create a project that uses auto-generated code from any of our 2000+ Choreos. We'd love to hear about what you make - firstname.lastname@example.org.
Once you've got your code up and running, you're ready to move on and do more. From monitoring your running applications, to moving your generated Temboo code to your preferred development environment and sharing it with colleagues, collaborators and friends - we've got you covered.
If you ever need help with the IoT Mode, now or in the future, please don't hesitate to get in touch.
Email us at email@example.com and we'll answer your questions.