Go Down

Topic: Temboo -Unable to connect: is the sketch using the bridge? (Read 10456 times) previous topic - next topic


I was lucky enough to buy an Arduino Yun from adafruit.com on Thursday.  I just received the board today(Tuesday), so I don't know too much about it, but I have been reading the getting started pages on Arduino's web site before I received the board.  I created a Temboo account and I have my TembooAccount.h file created in the same folder as my sketch (this is the example Temboo give for getting weather from Yahoo!).  I hope that is the correct location for the TembooAccount.h file.  Does any one know if it is?

I can upload the sketch fine via WiFi, because I tested other simple sketches like blink and they work fine.  I try the get weather from Yahoo through Temboo and Temboo does not show in the log file that my YUN is connecting to their site.  I get the following in the serial monitor:

Unable to connect: retrying (1)...
Unable to connect: retrying (2)...
Unable to connect: retrying (3)...
Unable to connect: retrying (4)...
Unable to connect: is the sketch using the bridge?

I'm assuming that I'm no connecting to the web site, because I cannot connect to the bridge.  On Temboo's web site, I sued the "try it" function and the response was the weather for my city and the Temboo logs showed the two times I tried.

Any ideas?

Here's the code too.  I replaced my location from my zip code with "$$$$$"

#include <Bridge.h>
#include <Temboo.h>
#include "TembooAccount.h" // contains Temboo account information, as described below

int numRuns = 1;   // execution count, so this doesn't run forever
int maxRuns = 10;   // maximum number of times the Choreo should be executed

void setup() {
  // For debugging, wait until a serial console is connected.
void loop()
  if (numRuns <= maxRuns) {
    Serial.println("Running GetWeatherByAddress - Run #" + String(numRuns++));
    TembooChoreo GetWeatherByAddressChoreo;

    // invoke the Temboo client
    // set Temboo account credentials
    // set choreo inputs
    GetWeatherByAddressChoreo.addInput("Address", "$$$$$");
    // identify choreo to run
    // run choreo; when results are available, print them to serial
    while(GetWeatherByAddressChoreo.available()) {
      char c = GetWeatherByAddressChoreo.read();


  delay(30000); // wait 30 seconds between GetWeatherByAddress calls


Hello all,

Sorry, I'm just not with it.  I tried the GMail example from the Blog that was posted this week and I got the YUN to read my email and give me a count.  I used the Serial port on COM to see the results not Serial through IP.

I applied that same thing to this issue.  All the Serial information (weather from Yahoo!) is coming in on the COM port.  I just pointed my YUN to my COM port and all the weather is coming in. 

It Works!

Here is an example:

Running GetWeatherByAddress - Run #1
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<title>Yahoo! Weather - Franklin, WI</title>
<description>Yahoo! Weather for Franklin, WI</description>
<lastBuildDate>Tue, 17 Sep 2013 6:51 pm CDT</lastBuildDate>
<yweather:location city="Franklin" region="WI"   country="United States"/>
<yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
<yweather:wind chill="61"   direction="160"   speed="7" />
<yweather:atmosphere humidity="72"  visibility="10"  pressure="30.18"  rising="2" />
<yweather:astronomy sunrise="6:31 am"   sunset="6:58 pm"/>
<title>Yahoo! Weather</title>
<title>Conditions for Franklin, WI at 6:51 pm CDT</title>
<pubDate>Tue, 17 Sep 2013 6:51 pm CDT</pubDate>
<yweather:condition  text="Mostly Cloudy"  code="28"  temp="61"  date="Tue, 17 Sep 2013 6:51 pm CDT" />
<img src="http://l.yimg.com/a/i/us/we/52/28.gif"/><br />
<b>Current Conditions:</b><br />
Mostly Cloudy, 61 F<BR />
<BR /><b>Forecast:</b><BR />
Tue - Showers Late. High: 66 Low: 57<br />
Wed - Scattered Thunderstorms. High: 78 Low: 65<br />
Thu - Partly Cloudy. High: 85 Low: 64<br />
Fri - Few Showers. High: 70 Low: 49<br />
Sat - Partly Cloudy. High: 65 Low: 43<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Franklin__WI/*http://weather.yahoo.com/forecast/USWI0254_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
<yweather:forecast day="Tue" date="17 Sep 2013" low="57" high="66" text="Showers Late" code="45" />
<yweather:forecast day="Wed" date="18 Sep 2013" low="65" high="78" text="Scattered Thunderstorms" code="38" />
<yweather:forecast day="Thu" date="19 Sep 2013" low="64" high="85" text="Partly Cloudy" code="30" />
<yweather:forecast day="Fri" date="20 Sep 2013" low="49" high="70" text="Few Showers" code="11" />
<yweather:forecast day="Sat" date="21 Sep 2013" low="43" high="65" text="Partly Cloudy" code="30" />
<guid isPermaLink="false">USWI0254_2013_09_21_7_00_CDT</guid>

<!-- api11.weather.bf1.yahoo.com Wed Sep 18 00:52:24 PST 2013 -->

Running GetWeatherByAddress - Run #2


Hi IBE007, happy you've got it running. As you've correctly spotted, most of the examples require the serial port (the /dev/tty or COMx entry in the Port menu)

You've got that "unable to connect message" because that sketch does not use the Console. Console is just like Serial but works over network/wifi connections, not serial ones.

If you wish to see the Console working, check out ConsoleAsciiTable example and upload it via wifi


I am testing my new purchase, an arduino yun bought in the Maker Faire event in Rome.
I am testing sht tamboo services and in particular the email example/service.
How to see if the program is running? I pened the serial monitor but the message "unable to ... bridge?"appairs.
The email does not arrive.
thanks a lot.


Hi fuscof
read my last post and double check you've selected the Serial port from the port menu (COM or /dev/tty...)


Arduino: 1.6.4 (Linux), Board: "Arduino Yún"

Bridge/Process.cpp.o: In function `Process::runShellCommand(String const&)':
/usr/share/arduino/libraries/Bridge/src/Process.cpp:125: undefined reference to `operator delete(void*, unsigned int)'
collect2: error: ld returned 1 exit status
Error compiling.

This above error get displayed when I try to upload temboo sketches on arduino yun which is connected to other PC and there is a wired connection between a PC from where I am trying to upload and PC where arduino yun is connected(I tested it using PING cmd and got reply).

Please suggest me some solution,

Go Up