|
|
|
@ -38,7 +38,7 @@ Create a file named /etc/supervisor/conf.d/pushcards.conf and add: |
|
|
|
|
[program:pushcards] |
|
|
|
|
user=pi |
|
|
|
|
directory=/home/pi/pslockout/doorcontrol |
|
|
|
|
command=source env/bin/activate && python pushcards.py |
|
|
|
|
command=/bin/bash -c 'source env/bin/activate && python pushcards.py' |
|
|
|
|
autostart=true |
|
|
|
|
autorestart=true |
|
|
|
|
stderr_logfile=/var/log/pushcards.log |
|
|
|
@ -57,7 +57,7 @@ $ cp settings.json.example settings.json |
|
|
|
|
$ vim settings.json |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
You can find your auth token by requsting with `curl`: |
|
|
|
|
You can find your auth token by requesting it with `curl`: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
$ curl -d username=tanner.collin -d password=supersecret http://tools-auth.protospace.ca/login/ |
|
|
|
@ -69,7 +69,7 @@ $ curl -d username=tanner.collin -d password=supersecret http://tools-auth.proto |
|
|
|
|
|
|
|
|
|
### Launch |
|
|
|
|
|
|
|
|
|
Reload supervisor and start pushcards: |
|
|
|
|
Reload supervisor to start pushcards: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
$ sudo supervisorctl reread |
|
|
|
|