akiicat / iot-door

Using IoT with Google PubSub controls auto door.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Iot-Door

Install

Clone

git clone https://github.com/akiicat/iot-door.git
cd iot-door
npm install

GCP Key file

cp [YOUR_KEY_PATH] ./key.json

Run

npm start

Motor Install

sudo cp -f bin/motor /usr/bin/

Auto Run

sudo cp door.service /lib/systemd/system/

And modify path to absoluted path

sudo systemctl start door
sudo systemctl enable door.service
sudo reboot

About

Using IoT with Google PubSub controls auto door.


Languages

Language:JavaScript 78.4%Language:Python 21.6%