0.6.1 • Published 5 years ago
@ladzlo/home-automation v0.6.1
Home Automation
A package that returns a json output when prompted with a json settings input.
It receive a json file. It calculate it and sends it to the thermostat. And the thermostat sends a json file back who controls the automatisation.
Installation
OS X & Linux:
npm install my-crazy-module --save Windows:
edit autoexec.bat
Usage example
Use setting to send a setting to the thermostat:
const jsonThermo = {"temperature": 27.0, "range": 1.0, "unit": Unit.Celsius}
jsonThermostat.setting(JSON.stringify(jsonThermo))
Use update to send current temperature to the thermostat:
let jsonUpdate = {"temperature": 95, "unit": Unit.Fahrenheit}
let returnUpdate = jsonThermostat.update(JSON.stringify(jsonUpdate))
console.log(returnUpdate + "\n")
Development setup
npm install
Release History
0.1.0
Creating the thermostat
0.2.0
Added json support
0.3.0
Added unit support
0.4.0
Made npm package
0.4.1
Added README.md
0.4.2
Javascript CLEANUP
0.4.3
Added ESLint
0.5.0
Added http temperature sensor
0.6.0
Added documentation
0.6.1
Bug fix
Meta
Username: ladzlo
Email: ladzlo.dejonghe@student.vives.be
School: VIVES Brugge
License: MIT