Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Patrick Sturgill
3,825 PointsHow to get Weather Feed?
Hi, I was wondering if anybody had any idea how one would aquire feeds of the weather that aren't already in a widget form. Just the feed, so that one could design their own weather page. For part of my portfolio, I'm designing a library branch website. I would like to put the weather on it. I tried to find something on google, but most of the pages I found were really old and outdated.
It will probably be similar to this: [http://patterntap.com/pattern/navigation-weather-dropdown-usa-today]
Unless I could get enough imported data to make something more complex, similiar to this: [http://www.metservice.com/towns-cities/wellington/wellington-city] - because let's face it, that's kind of bad-a$$.
Thanks for the help! Patrick
4 Answers
christopher wood
Courses Plus Student 4,438 PointsPHP RSS Parser it can convert RSS feeds to HTML for display on your website. Some are customizable to match your look and feel.
James Barnett
39,199 PointsJust use weather underground's API which returns JSON.
James Barnett
39,199 PointsI made you a little proof of concept widget that uses JQuery to fetch info in JSON format via the Weather Underground API. You can either sign up for your account (and API key) at http://www.wunderground.com/weather/api/ or use a different weather API and tweak the code.
http://codepen.io/jamesbarnett/pen/gIzJx
Patrick Sturgill
3,825 PointsJames Barnett, Awesome! That's really cool and will help me a lot trying to see how everything works. Thanks! and Thanks to you and Christopher Wood for the useful information.
