digital-clock-relay

This is a syncronized digital clock using rasberry pi 2 model and relay circuit. The lights will automatically turn off during non working time. It is intended for our offices, production area or anywhere inside the building.

install nodejs in raspberry pi

sudo apt-get update

sudo apt-get dist-upgrade

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-get install -y nodejs

install socket.io

npm install socket.io --save

run script (node webserver.js)

npm start