Write a program to prompt a user to input a date and time string, and then it should report the temperature and weather conditions on that day and time for Syracuse, NY.
To accomplish this, use the Dark Sky Time Machine API, here: https://darksky.net/dev/docs/time-machine
You're going to have to read about the API and understand how it works before you can write this program, which is the point of the exercise.
The date and time that the user inputs must be in the following format: YYYY-MM-DDThh:mm:ss
For example January 7, 2016 at 4:30pm would be: 2016-01-07T16:30:00
Be sure to use the GPS coordinates for Syracuse, NY which are (lat=43.048122,lng=-76.147424)
Example Run (Based on the exchange rates from 2017-03-06:
Syracuse, NY Historical Weather
Enter a date and time in the following format: YYYY-MM-DDThh:mm:ss => 2016-07-23T14:30:00
On 2016-07-23T14:30:00 Syracuse, NY was Partly Cloudy with a temperature of 85
In [11]:
# step 2: write code here
1/1/2017
as date input? Which error to you get? Fix the program in step 2 so that it handles this error.Answer:
Answer:
Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?
To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.
Keep your response to between 100 and 250 words.
--== Write Your Reflection Below Here ==--
In [ ]:
# RUN THIS CODE CELL TO TURN IN YOUR WORK!
from ist256.submission import Submission
Submission().submit()