Starting from:
$30

$24

Week3a - Assignment Making Rest Calls Solution

In this assignment we will make a program that will return the current temperature for a preselected set ofcities. Use your darksky account to get the temperature. The "trick" is that you will cache (store) temperatures in the database for 60 minutes to avoid overloading/overusing your darkskly api.




Create a web1.0 application that will present the user with a form letting them choose at least 5 different cities.




Upon submitting a location, the application will first look in the database to see if it has a current (less than 60 minute old) value for the current temperature.




If it does not have a current temperature the code will call the darksky site to get the temperature, store the temperature in the database




Then display the temperature in the web page.







Please display the time of the temperature. Eg: either "current" or the time the value was retrieved and stored in the cache.







(Note: get it working with just the darksky call first and no caching.)




Details:




Run this on your openstack server:




This should be accessible via http://UID.451.csi.miamioh.edu/cse451-UID-







web/Temperature/index.php (http://UID.451.csi.miamioh.edu/cse451-UID-web/Temperature/index.php)




Submit links to this application and to the code in git.






More products