In this blog post I'll show you how to fetch weather information from Yahoo Weather API using Temboo services which came pre bundled for Arduino Yun.
About TEMBOO:
Temboo is an online service which enables developer build Internet enabled applications using 200+ choreos and APIs around the web without actually coding, The temboo generates the required code needed to accomplished work from an API ex Fetching geo coordinates from google services, Weather from yahoo etc. Temboo also supports a large number of boards ranging from Arduino to TEXAS INSTRUMENTS MXP430, CC3200 and now even SAMSUNG ARTIK. You can program them to talk to web using Temboo auto code generation service in IoT mode.
Here I've used Temboo to fetch Weather data of my city using Yahoo Weather API.
step 1>> Sign up for a Temboo's account on www.temboo.com.
step 2>> Select Arduino Yun as board and turn on IoT mode.
step 3>> On left hand side choose Yahoo Weather > Weather by location choreo.
step 4>> Enter your city credentials and other optional inputs like you want temperature in *c or *f.
step 4>> Copy the generated code and header file.
step 5>> Open Arduino IDE and paste the code, compile and and upload to target board.
step 6>> Open Serial Monitor to check the output.
I am attaching the code, just change the header file credentials according to your account info.
The data in serial monitor will be a raw XML response from yahoo server from which usefull data can be extracted using Parseing, In next blog post we'll parse the temperature and other data using Temboo output Filters and use them efficiently.
Top Comments