Coders Packet


By Subhadeep Das

The program makes use of JSON data from OpenWeatherAPI and fetches the weather forecast using Python.

First of all we need to import a few modules namely tkinter, requests, JSON.

We need to create a window using tkinter where we will get to type and the city name and get the desired result.

We need to create the "Search" button and mention the fonts of the datas.

Now from official OpenWeatherAPI, we need to generate an API key and test the API key on any JSON formatter. I used Postman for this. There we give the API key and city name and we get all the weather details of the particular city in list form.

Now, we need to access those datas using requests and store those datas.

Next we need to print those datas as output.

We get the desired weather forecast!!!! 

Download Complete Code


No comments yet