mrpjevans / smartdoor

Code to accompany the smart door tutorial in MagPi #76

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smartdoor

Code to accompany the smart door tutorial in MagPi #76

Webapp

A 'fancier' version of the tools here can be found in the webapp directory. Have a look at the README inside there for setup instructions.

How To Start on Boot

A quick and easy way to start a Python script on boot is to add it to rc.local.

$ sudo nano /etc/rc.local

Now find the last line, exit(0) and add something like this above it:

/usr/bin/python3 /home/pi/smartdoor.py &

Now the smartdoor monitor will run in the background as soon as the machine has started up. As this runs as root, remember re-install any dependancies installed with 'pip' using 'sudo pip'.

About

Code to accompany the smart door tutorial in MagPi #76

License:MIT License


Languages

Language:Python 64.9%Language:HTML 22.0%Language:CSS 6.6%Language:JavaScript 6.5%