Skip to content

Smart Home Application consisting of Consumer Electronics using IOTA MAM Channel Service

Notifications You must be signed in to change notification settings

mohdmajidakhtar/smartHome_poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Smart Home Application consisting of Consumer Electronics using IOTA MAM Channel Service

This is a Proof of Concept and software implementation (Simulator)

Implementation of Smart Home Application using Distributed Ledger Technology (DLT) IOTA in written in pure JavaScript using IOTA core libraries.

Note: Require NodeJS and NPM Installed on machines

The methods to run this in order to try and simplify its usage are:

Installing

STEP 1: Install three packages using the following commands in the root folder:

npm install @iota/mam.js
npm install moment
npm install iota.lib.js

STEP 2: Now go to the directory [./poc/]. Then run the following command

node humanPresence.js [value]

This value can be 'true' and 'false' representing humanPresence detected by PIR sensor data and then it will create a json file channelState.json'.

STEP 3: Open three respective terminal for each devices (./poc/smartLedLight/, ./poc/thermostat/, ./poc/airConditioner/) to see the effect.

(i) write following command in Smart Led Light Terminal:

node receivePIRdata.js

(ii) write following command in Thermostat Terminal:

node receivePIRdata.js

(iii) write following command in Air Conditioner Terminal:

node receiveThermostatData.js

Example Usage

poc_SmartHome

About

Smart Home Application consisting of Consumer Electronics using IOTA MAM Channel Service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published