From de78173854958fada2cf2672d48a4651af671526 Mon Sep 17 00:00:00 2001 From: zyphlar Date: Fri, 31 Aug 2018 15:00:01 -0700 Subject: [PATCH] Add autostart instructions --- readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 7ea3729..5fcbf4f 100644 --- a/readme.md +++ b/readme.md @@ -53,15 +53,15 @@ export CXX=g++-4.8 npm install node-hid --build-from-source ``` -You should now be able to view the app at +You should now be able to view the app at http://localhost:3000 -Place this at the bottom of your `~/.bashrc` file: +# Autostart -```bash -alias node='$NVM_BIN/node' -forever start ~/doorlock/src/server.js -chromium-browser --kiosk localhost:3000 -``` +On a RasPi, copy the contents of the autostart file into: `~/.config/lxsession/LXDE-pi/autostart` + +Optionally, to help users with debugging, run `ln -s /home/pi/doorlock/start.sh ~/Desktop/start-doorlock.sh` to give them a link on the desktop. + +Or generally, find some way to run `./start.sh` in this folder ## Further reading