Sunday, November 29, 2015

Autostart

One of the things I have found with the Pi is that when it starts I want it to do somethings without having to go and run them each time.

With the photobooth project I want the pi to start this running once it has booted up

The method I am using involves editing the file /etc/rc.local

I did this using

Sudo nano /etc/rc.local

I added the command to run the python code which was in my case

python /home/pi/photoblink.py which I inserted after the fi




This seems to work when I test it with a reboot

shutdown -r now

The photoblink programme is ready go from the start.












No comments:

Post a Comment