Skip to content

somcode/thermostat-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thermostat-Javascript

Specification:

  • The thermostat's default temperature is 20 degrees
  • You can increase the temperature with + button
  • You can decrease the temperature with - button
  • 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 by hitting the reset button
  • The thermostat should color the display based on energy usage - under 18 is green, under 26 is black, otherwise red
  • Add a feature to display the weather in a city selected by the user.

Installing:

clone this repository then

Open index.html in your browser

Thermostat starts at 20 degrees

screen shot 2018-04-28 at 21 02 54

You can let the user type in whatever city they want

screen shot 2018-04-28 at 21 06 34

Running tests:

Open SpecRunner.html in your browser

screen shot 2018-04-28 at 22 47 50

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages