0.4.4 • Published 4 years ago

home-automation-robindeleu v0.4.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Home Automation by Robin Deleu

badge ESLint Markdown Linter

This program acts as a thermostat. When you give input the program decide to cool or heat.

Getting Started

Prerequisites

You will need to instal node.js and ts-node to be able to run this program.

Instal node.js:

cinst nodejs.install

Instal ts-node

npm install -g ts-node

Using the program

First you need to edit the const in the jsontemperatuur.ts to the actual temperature and the range you want.

Example:

let t = 28
let r = 2
let u = "Celcius"

t stands for the temperature it is right now. r stands for the range you don't want that cooling or heating will work. u is the unit from the temperatures you want's to insert.

Then you need to change the temperature you want in the room. This you need to do in app.ts.

Example:

const doeltemperatuuroud = 23

The unit from the wanted temperature is always the same unit like the one you inserted in the jsontemperatuur.ts.

For running the program you will need to run this command:

ts-node .\index.ts

Examples of code output

settings:

let t = 28
let r = 2
let u = "Celcius"

output:

{"cooling":"true","heating":"false"}
je werkt in Celcius

Authors

  • Robin Deleu - Student VIVES University of Applied Sciences

License

This project is licensed under the GNU Affero General Public License v3.0 License - see the LICENSE.md file for details

0.4.4

4 years ago

0.4.2

4 years ago

1.0.0

4 years ago