How do I make an hourly forecast?

  • 1
  • Question
  • Updated 4 months ago
I have no idea how to make an hourly forecast! I haven't had much experience with JSON, and I'm having a lot of issues pulling the hourly forecast from the api info.
Photo of Skyler Davis

Skyler Davis

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Can you elaborate issues you're facing with?
I suppose you're dealing with hourly API feature as documented at http://www.wunderground.com/weather/api/d/docs?d=data/hourly, so do you have any feedback about output resposonse, malformed data, delays or trobule to query for a particular city or coordinate?
Sorry for questions, but it will help approaching with best solutions.
Photo of Andrew Hodson

Andrew Hodson

  • 3 Posts
  • 0 Reply Likes
Nope. i'm a complete newbie. never done this before. just want to enter a lat/long ang get an xml output of 36 hours worth of hourly forecast data. i already have an api key.got that far. Just need a wee bit of help with sending the right request
Photo of Thomas Pagano

Thomas Pagano

  • 17 Posts
  • 6 Reply Likes
I think you want something like this: 
http://api.wunderground.com/api/[ YOUR API KEY HERE] /hourly/q/-15.51,128.15.xml

Note that you can chain together things like changing "hourly" to "hourly/yesterday" if you also want to get back yesterday's observations.