How to add a weather widget to your site

  • Go to the weather.yahoo.com
  • Choose your location (for example, Tampa FL)
  • You will be redirected to the page http://weather.yahoo.com/forecast/USFL0481.html
  • The code USFL0481 in the URL is your location code, you will use it
  • Insert this code into your page:
    <script src="http://weatherhost.appspot.com/?p=YIXX0002&c=f"></script>
    <noscript>
    <iframe src="http://weatherhost.appspot.com/noscript?p=YIXX0002&c=f" width=200 height=200 frameborder=0 scrolling=no />
    </noscript>
    
    and enjoy :)
  • You can adjust the frame height and width to desirable values, also you might turn off the picture by adding &pic=0, or show the temperature in Celsius degrees by adding &c=c
  • You can see an example of code integration here or below: