Giter VIP home page Giter VIP logo

thermostat's Introduction

Thermostat Build Status Coverage Status

The simple challenge was simple, to build a Thermostat with a few basic functionalities.

User stories


As a user,
So that I can set the temperature hotter
I want to increase the thermostat's temperature.

As a user,
So that I can set the temperature cooler
I want to reduce the thermostat's temperature.

As a user,
So that I can save power,
I want to be able to switch power saving.

As a user,
So that I can restore factory settings,
I want to be able to reset the thermostat.

As a user,
So I know the energy usage of the thermostat,
I want to be able to ask the thermostat the current energy usage.

Quickstart

First, you would need to clone, change directory and install the dependencies running the following commands:

git clone [email protected]:georn/Thermostat.git
cd Thermostat
npm install
  • Then to run it locally run the following command and enter localhost:3000 on your browser:
npm start
  • If you want to run the tests
npm test

Development

The challenge is complete and here is a couple of demos of the application.

Basic Functionality of the Thermostat

Basic Functionality of the Thermostat

Weather API Functionality

It is also connected to a Weather API to get the temperature of different cities!

But there's always room for improvement and also I also would have liked it to look cool!

So, after leaving this code to gain some dust for a few months, I decided to start to refactor it for the sake of practice.

Rather than have the HTML document live by itself, I decided to go and put it on top of an Express.js server to also giving me the opportunity to take away the standalone Jasmine testing frameworks and bringing it as a package and ultimately step a notch on the application code.

The next step is to add styling to the application.

Main Tasks

  • Thermostat starts at 20 degrees
  • 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
  • Less than 18 degrees is low usage of energy
  • Less than 25 degrees is medium usage of energy

Collaboration

This amazing people collaborated to the code, but by that time I wasn't a good git collaborator, so I didn't document it. Thus, it is now when they have their credits.

Tech Stack

Here is a list of the technologies used:

Resources

An article that helped me during the development of the application.

thermostat's People

Contributors

georn avatar panteha avatar spencerbf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.