From b1b52ac67133e3f70fe0696366b8d73a2da47332 Mon Sep 17 00:00:00 2001 From: Dana Woodman Date: Sun, 12 Aug 2018 14:19:50 -0700 Subject: [PATCH] Add some notes to readme --- readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/readme.md b/readme.md index ee2323e..cb3b7e3 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,16 @@ # Chimera Doorlock +## Overview + +- Cards are synced with Cobot +- Cards are stored in `cards.json` in the root of the project (should be `~/doorlock/cards.json` on the RaspberryPi) +- Logs are stored in `logs.json` in the root of the project (should be `~/doorlock/logs.json` on the RaspberryPi) + ## TODO - [ ] Update list of cards every few minutes - [ ] Push up logs/checkins to management app +- [ ] Get working with Nexedus - [ ] Handle error message ## Configuring Raspberry Pi @@ -37,6 +44,15 @@ vi .env forever start src/server.js ``` +Follow the [install from source guide for node-hid](https://github.com/node-hid/node-hid#compiling-from-source) becuase there is no pre-built binary for RaspberryPi + +``` +npm install -g node-gyp +sudo apt install build-essential git libudev-dev gcc-4.8 g++-4.8 libusb-1.0-0 libusb-1.0-0-dev +export CXX=g++-4.8 +npm install node-hid --build-from-source +``` + You should now be able to view the app at Place this at the bottom of your `~/.bashrc` file: