Link to home
Start Free TrialLog in
Avatar of Ravi soni
Ravi soni

asked on

Fetch next two days weather data.

How to get weather information of next two days. I created the script but i gives only current day information. Here, i attach the code.
api_address = "http://api.openweathermap.org/data/2.5/weather?appid=6784429f5eff661309aaa5280a143f97&q="
city = input("city name :")
url=api_address+city
j_data=requests.get(url).json()

Open in new window

Avatar of Omar Soudani
Omar Soudani

Check this out, it might help:

https://darksky.net/dev/docs
Avatar of Ravi soni

ASKER

I used the openweathermap.org and unable to calculate the next two days information.
This is the API taken from openweathermap.org:

https://openweathermap.org/forecast5
I gives next 5 days information but i want only next 2 days information. if you could help, that would be appreciated.
These are what the website offer for free users:

https://openweathermap.org/api
Is it possible to get the data of next two days instead of next 5days/3hours.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.