How to I get weather data for specific date

  • 1
  • Question
  • Updated 5 years ago
Hi Experts,

This is the first time I am using this library.I want to get weather data as per following cases

Note : Today Date :2014-02-03

1. I want to get weather data from 2014-01-21 to 2014-01-31 so it's a history data.

2. I want to make `forecast10day` API call with specific date.

What I tried:

My second case:I tried with the following link

`http://api.wunderground.com/api/4d474... you observe the above link I want data from `2014-02-05` to next 10 days data.

Even If I specify the date, still it's returning from currentDate to next 10 days data.What I want from `2014-02-05` to `next 10 days data`.

My First case :

I didn't found any parameters for making first case.

can anyone help me.How to make API calls with specific date.

Thanks.
Photo of grandhi

grandhi

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Hi, I suggest you to give a whole reading at the available features (including usage and setup informations) documentation area, even if it is not really adequate and explanatory.
You can find it at http://www.wunderground.com/weather/a...


  1. You're able to get desired result if you code multiple sequential requests, as you were looping with a counter
    
    
    GET /history_20140121/q/India/Bangalore.json
    GET /history_20140122/q/India/Bangalore.json
    GET /history_20140123/q/India/Bangalore.json
    ...and so on

    sometimes features can be chained if intended for the same place: i tried
    
    
    GET /history_20140121/history_20140122/history_20140123/history_20140124/history_20140125/history_20140126/history_20140127/history_20140128/history_20140129/history_20140130/history_20140131/q/India/Bangalore.json

    I tried it, but this way seems is not working :(

  2. You can't have a user defined day offset for forecast10day feature.