28 May 2008

Yahoo! Weather API Flex Mashup

Integrating Yahoo Weather results with local live camera stream

Here's a neat little Flex app I created that combines a live local camera stream with Yahoo! weather results.  The need for this came about as a result of a previous weather.com Cold Fusion module not functioning anymore, and I wanted to see if it could be done in Flash to give it a bit more pizzazz.  As before, Yahoo! comes through with a Flash API that can deliver local weather results.   I used the ASTRA Actionscript 3 API which contains the Weather and Weather Results class.  In this mashup, I combined the results from the Yahoo! Weather Results class and a local live stream from a web camera.  The only drawback is that the webcam is a network IP camera which does not contain a crossdomain.xml file, so Flash gives me a security sandbox error and will not pull the image feed.  My workaround for this was to have a local server go out and fetch the current image and save it locally, then Flex just grabs the latest image on the server.  Not the most elegant solution, but it works for this project.  Ultimately, it would be nice to have the IP camera stream right into Flash Media Server, and pull the live stream into Flex.  This would give you full motion live video, and not look like the old webcam sites from 1998.  On a side note, I also incorporated Degrafa into this project to make some easy overlays on top of the live image, and used my own forecast weather icons instead Yahoo's default ones.

Live project here.
Source code here.

-Christopher C. Keeler

Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Yahoo! Weather API Flex Mashup
Hi,
your source code advertised gets to a page not found error :(

http://www.swfflex.com/blog/1/2008/flexprojects/yahooWeather/srcview/index.html
Posted by David on July 31, 2008 at 6:02 AM

Re: Yahoo! Weather API Flex Mashup
Hi,
Thanks for code, but the link is broken. I can't download the source on the link.

http://www.swfflex.com/blog/1/2008/flexprojects/yahooWeather/srcview/index.html

Regards,
miyasir.
www.funtings.com
www.vibercon.com
Posted by miyasir on August 4, 2008 at 1:48 AM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Anti-spam key

Type in the text that you see in the above image:

Your comment:

Sorry, no HTML allowed!