Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.39 KB

README.md

File metadata and controls

51 lines (44 loc) · 1.39 KB

Thermostat (Javascript)

screenshot

A basic thermostat web app made using Javascript, jQuery and OpenWeatherMap API. Used Jasmine as a testing Framework.

Project setup

Git clone https://github.com/Thatguy560/ThermostatChallenge.git

Test Frameworks Used

Jasmine

Open 'file:///Users/student/Projects/Week5/Thermostat/SpecRunner.html'

Requirements

- Thermostat starts at 20 degrees by default
- You can increase the temperature with Increase Temperature +
- You can decrease the temperature with Decrease Temperature -
- The minimum temperature is 10 degrees
- If power saving mode is on, the maximum temperature is 25 degrees.
- If power saving mode is off, the maximum temperature is 32 degrees.
- Power saving mode is on by default
- You can reset the temperature to 20 with a reset function
- You can ask about the thermostat's current energy usage:
  < 18 is low-usage, < 25 is medium-usage, anything else is high-usage.
  Low-usage is indicated with white, medium-usage indicated with black, 
  high-usage indicated with red.)
- You can check the current temperature of other locations by 
  submitting a location, this information is taken from the 
  OpenWeatherMap API.