Skip to content

ha-iot/hardware-handler

Repository files navigation

HAIoT - Hardware Handler

A NodeJS host to manipulate a board running Firmata software.

Build Status codecov David DM

HAIoT System

This is part of the HAIoT System for house automation.

Development

We use Johnny Five, so a board with Firmata software must be connected to the host. This software will scan the device ports for a board, but you can manually set the port you want at environment level.

git clone https://github.com/ha-iot/hardware-handler/
cd hardware-handler 
npm i
npm start

Without a board

Perform tests in the other systems that depends on this one without having a real board.

npm run start-mocked

Testing

The test environment uses a mocked Firmata library (doesn't need a real board).

$ npm test