@robin_deleu/home-automation

    0.8.0 • Public • Published

    Home Automation by Robin Deleu

    NPM Version

    badge

    ESLint

    Markdown Linter

    Tests

    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

    Or you can just use the npm library like this:

    npm i @robin_deleu/home-automation

    Using the program

    First you need to edit the const in the jsontemperatuur.ts the range you want and in wich unit you work. The t will be automaticly assigned by the HttpTemperature class.

    Possible units are Celcius: C, Farenheid: F and Kelvin: K

    Example:

    let t = AUTOMATICLY ASSIGNED
    let r = 2
    let u = "C"
    let to = 50

    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. to stands for the temperature you want

    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 (automaticly assigned)
    let r = 2
    let u = "C"
    let to = 50

    output:

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

    Documentation

    Link to extra documentation

    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

    Keywords

    Install

    npm i @robin_deleu/home-automation

    DownloadsWeekly Downloads

    1

    Version

    0.8.0

    License

    MIT

    Unpacked Size

    455 kB

    Total Files

    64

    Last publish

    Collaborators

    • robin_deleu