How to Temboo with your Arduino

Temboo makes it easy for Arduino boards to connect to any web-based resource. To get you started, we'll show how to query the Yahoo Weather API from your Arduino.

The key things you'll learn are:

  • How to get set up to use Temboo with your Arduino
  • How to use Temboo's auto-generated code
  • How to move on and connect your Arduino to any web-based resource

Now, Let's Jump In!

Get Set Up

1First, make sure you have a Temboo account. If you don't have one yet, you can create one for free now.

2The Temboo library for Arduino comes bundled with the Arduino IDE, so make sure that you've got the latest version of the Arduino IDE installed.

Find What You Need

3 Go to our Library and find the Yahoo > Weather > GetWeatherByAddress Choreo.

Yahoo! Weather Inputs

The Yahoo GetWeatherByAddress Choreo in our Library

4Turn on IoT Mode and set up your internet shield.

Arduino IoT Mode

Adding an internet shield in IoT Mode

5Enter any complete address in the Address input field e.g., 104 Franklin Street, NYC.

6Now click Run. After a moment you'll see the data that Yahoo Weather sends back shown in the Output section.

Yahoo! Weather Outputs

The output from the Yahoo Weather API (which is in XML format)

7If 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. Use the virtual board to set up a sensor or actuator and the conditions option will appear. You can learn more about conditions here.

Input Condition

Make Your Arduino Sketch

When you're in IoT Mode and you run a Choreo, Temboo automatically generates code that can be used to make the same API call from an Arduino sketch.

8Scroll down to the Code section of the Library page.

9Copy the code, and paste it into a new sketch in the Arduino editor.

Remember to Create Your Header File

In order to run this sketch on your Arduino, it needs to be configured with an appropriate TembooAccount.h header file that contains your Temboo account information and internet shield setup information.

To create the header file:

10Make a new tab in the Arduino editor, and name it TembooAccount.h

11Beneath the sketch code you previously copied from the Library, you’ll find a header file containing #define statements and details about your internet shield. Copy the contents of the header into your TembooAccount.h file.

Header File

The TembooAccount.h header file

Run the Sketch and rejoice

Save and upload your sketch to the Arduino, and open the serial monitor. After running the sketch, you'll see the response from the Yahoo Weather service printed to the monitor.

Congratulations! This same approach will work with your Arduino for all of our 2000+ Choreos in our Library. Because these ready-to-run tasks take care of so many steps, we named them after choreographies. Now that you know how to make your Arduino run any Choreo, you're just a few steps away from making something extraordinary. With Temboo handling all the small stuff, you're free to think big!

What's Next?

Now that you've got something simple up and running, why not move on try making your board do something more advanced?

Need help?

We're always happy to help. Just email us at, and we'll answer your questions.