diff options
| author | Federico Fissore <f.fissore@arduino.cc> | 2013-06-28 11:08:56 +0200 | 
|---|---|---|
| committer | Federico Fissore <f.fissore@arduino.cc> | 2013-06-28 15:29:39 +0200 | 
| commit | 9bc2ad10cb38ca5c659abb41f03b169928c70792 (patch) | |
| tree | 70c7a0a0a9d74cf240358c554fe82491372b69e7 /libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino | |
| parent | 66b1a7ea395c04d971dc666dfe3274778adbaf1e (diff) | |
updated and added new Temboo examples
Diffstat (limited to 'libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino')
| -rw-r--r-- | libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino | 18 | 
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino b/libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino index d8fdf61..4a4e818 100644 --- a/libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino +++ b/libraries/Bridge/examples/Temboo/GetYahooWeatherReport/GetYahooWeatherReport.ino @@ -2,14 +2,17 @@    GetYahooWeatherReport    Demonstrates making a request to the Yahoo! Weather API using the Temboo Arduino Yun SDK. + +  Check out the latest Arduino & Temboo examples and support docs at http://www.temboo.com/arduino    A Temboo account and application key are necessary to run all Temboo examples.  -  If you don't already have one,  you can register for a free Temboo account at  +  If you don't already have one, you can register for a free Temboo account at     http://www.temboo.com    This example assumes basic familiarity with Arduino sketches, and that your Yun is connected -  to the Internet. For more tutorials on using the Temboo Library and Temboo Arduino Yun SDK, visit  -  http://www.temboo.com/arduino +  to the Internet. + +  Looking for another API? We've got over 100 in our Library!    This example code is in the public domain.  */ @@ -19,7 +22,8 @@  #include <FileIO.h>  #include <HttpClient.h>  #include <Process.h> -#include "TembooAccount.h" // contains Temboo account information, as described below +#include "TembooAccount.h" // contains Temboo account information +                           // as described in the footer comment below  int numRuns = 0;   // execution count, so that this doesn't run forever  int maxRuns = 10;  // max number of times the Yahoo WeatherByAddress Choreo should be run @@ -38,7 +42,7 @@ void loop()    if (numRuns < maxRuns) {      // print status -    Serial.println("Running GetWeatherByAddress - Run #" + String(numRuns++)); +    Serial.println("Running GetWeatherByAddress - Run #" + String(numRuns++) + "...");      // we need a Process object to send a Choreo request to Temboo      Process GetWeatherByAddressChoreo; @@ -80,6 +84,7 @@ void loop()    }    Serial.println("Sleeping..."); +  Serial.println("");    delay(30000); // sleep 30 seconds between GetWeatherByAddress calls  } @@ -96,7 +101,8 @@ void loop()    The same TembooAccount.h file settings can be used for all Temboo SDK sketches. -  Visit https://www.temboo.com/account to access your Temboo account credentials.  +  You can find your Temboo App Key information on the Temboo website,  +  under My Account > Application Keys    Keeping your account information in a separate file means you can save it once,     then just distribute the main .ino file without worrying that you forgot to delete your credentials.  | 
