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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e622a2 · Mar 17, 2023

History

77 Commits
May 3, 2019
Apr 19, 2018
Apr 11, 2018
May 3, 2019
Apr 28, 2018
May 3, 2019
Apr 28, 2018
May 5, 2018
Apr 10, 2018
May 3, 2019
May 3, 2019
Mar 17, 2023

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