Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.4 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.4 KB

iot-raspi-door

License: MIT

IoT container for Raspberry Pi that handles door opening and luminosity. For storing event data, it consumes IoT server REST API via IoT client.

Features

  • Detect door opening and turn on the light if it's dark.
  • Detect door closing and and turn off the light.
  • Poll luminosity and turn of the light if it's dark and the door is opened.
  • Create events in IoT server via via IoT client.

Components

Wiring

wiring

Development

$ npm start

Lint

$ npm run lint

Build Image

$ npm run build
$ docker build -t iot-raspi-door .

DockerHub

Image available on Docker Hub

Production

Configuration:

$ ./run-production.sh