Skip to content

IoT container for Raspberry Pi that handles door opening and luminosity

License

Notifications You must be signed in to change notification settings

mmontes11/iot-raspi-door

Repository files navigation

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