@arnovanneste/home-automation

0.6.0 • Public • Published

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

Documentation Page

Path: ./docs/index.html

Readme

Keywords

Package Sidebar

Install

npm i @arnovanneste/home-automation

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

322 kB

Total Files

38

Last publish

Collaborators

  • arnovanneste