Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow Pi to be set to start capture on boot (e.g. 100% headless/network-free) #8
I'd like to be able to set up my rig to start taking pictures immediately after it gets power; this way I could take it anywhere, set it up, then let it go (without having to have a WiFi network or some other means to log in and run the appropriate commands.
See immauss' comment on my Pi Timelapse blog post for a nice and simple implementation. Something like that seems like it would work great.
The way I've quickly done this is to install screen
and then invoke the script from in a 'screen'
To run in crontab every 5 minutes, this would work:
To run at boot, add this to the crontab
To connect to the screen, simply execute
I did also update the script so that it does not reference the current working directory, but rather the directory the script is located in, as this was required for crontab.
@nbarry101 - Just saw the PRs, they look great (just a couple changes requested in the latest one)! Thanks for the contribution here... I'm actually going to use this tonight so my rig will start taking pictures early in the morning tomorrow for an eclipse timelapse!