0.6.0 • Published 5 years ago

@arnovanneste/home-automation v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Home Automation

npm badge ESLint Markdown Linter

Description

This application works as a smarth thermometer. The application has a wanted temperature value. If the temperature is to high, the application will automaticly turn on the airco and cool it down. If its to cold it will turn on the heating and heat it up. You can choose to set the temperature in Celcius, Fahrenheid or in Kelvin. Now we can fetch the temperature value from an api instead of updating it manualy like in the JSONThermostat class. We can do this with the HttpThermostat en HttpTemperatureSensor classes.

Installation instructions

npm install @arnovanneste/home-automation

Multiple usage instructions and examples

constructor() {
    const json = new JSONThermostat();
    let thermostat = new Thermostat();
    thermostat = json.setting('{"temperature":25, "range":1, "unit":"celcius"}')
    thermostat.tempCheck(24)
    thermostat.tempCheck(25)
    thermostat.tempCheck(26)
}

Licence

MIT

Author information

  • Arno Vanneste
  • arno.vanneste@student.vives.be

Documentation Page

Path: ./docs/index.html