Starting from:

$25

CSE451 Assignment 3- Temperature Solved

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:

More products