Question: Please type the following program in Python. Thanks! Here is the problem: Develop a Python script that will get the current weather data for a

Please type the following program in Python. Thanks!

Here is the problem:

Please type the following program in Python. Thanks! Here is the problem:

Develop a Python script that will get the current weather data for

Develop a Python script that will get the current weather data for a particular zip code and then print out some of that data in a table. The site OpenWeatherMap provides a simple REST API to get weather data. Use the zip code assigned below. For the zip code 30144, the output would be: Name: KSU Current Temperature: 64.5 degrees Fahrenheit Atmospheric Pressure: 992.52 hPa Wind Speed 10.6 mph Wind Direction 289.5 Time of Report 2017-03-10 11:13:24 To be able to carry out this assignment you will need to register for a free account with Open Weather Map. You will provide an id (username) when registering. Once you have registered, you will receive an APIID, essentially your password for using the service. 4. The current weather data API page tells you how to create a request for the current weather at a particular zip code. Information on the page tells the structure of the data returned. The How to start page tells how to include the APIID and id in a request. Unless you care to convert from Kelvin to degrees Fahrenheit and convert from kilometers per hour to miles per hour in your script, be sure to request 'imperial' units from the server. 5. The data you get back will be encoded as JSON. You will need to decode it to access the information contained in the response. 6. Use the datetime class in the datetime package from the standard library to convert the time stamp included in the data to readable form. The value included in the data is the number of seconds since the epoch (standard Unix timestamp). The displayed value above is the default display of a datetime object created from the raw timestamp. Script Structure Requirements Please pay attention to these! These particular requirements are included so that the instructor can test your script using the instructor's account. At the beginning of your script assign values to variables user_id and user_apiid. These will be strings with the values of your id and apiid. Do not include your id or your apiid values directly in your code, use the variables instead. When your program is tested, the instructor's values will be substituted. Evaluation Your script will run from the project directory that contains it. The values of the variables user_id and user_apiid will be modified before running the script. Zip code assignment The last two digits of your KSU ID should be in the first column. Please use the Zip code in the second column. The purpose of this is so that your programs won't trip alarms at the web site when being tested. ID zip code 04||30001 30002 30003 Current weather and forecasts in your city Main Daily Hourly Chart Map Weather in Kennesaw, US Weather and forecasts in Kennesaw, US --81 F 0004 30006 A 360PAFFA 84 0.45mm 30011 Broken clouds Precipitation + Temperature Export 15:45 Sep 30 Wrong data? 78F 0.3mm 47||30038 4930039 52||30048 5930050 60||30052 30054 ||30055 6630056 30057 30059 30070 7830072 7930074 8030075 82||30079 8430080 87 30083 Fresh Breeze, 9.2 m/h, Wind South East (140) Cloudiness Broken clouds 725 0.15mm 66F Omm Pressure Humidity 17:00 20:00 23:00 02:00 05:00 08:00 11:00 14:00 17:00 20:00 14||30017 15||30019 16||30020 21||30021 22||30025 30||30026 33||30027 39||30028 46|30030 Highcharts.com 1024 hpa 69% 07:32 19.22 Sunrise Sunset 827F 773 74F 7237 6997 827703 7765 792 77 F 135 , 541, Sam, 573 , 595 mm, 62 Ah 595, 575, 55mh, 999.17 100014 1001.16 100068100013100166100283100179 9997 99981 (34.02, -84.62] coords

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!