Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example crontab entries to start and stop timelapses at certain times of day #21

Open
geerlingguy opened this issue Apr 22, 2019 · 3 comments

Comments

@geerlingguy
Copy link
Owner

For example:

# Start timelapse at 07:30 CST (12:30 UTC)
30 12 * * * systemctl start timelapse

# End timelapse at 22:00 CST (03:00 UTC)
00 3 * * * systemctl stop timelapse

I'm also looking into the best way to, after the timelapse completes, automatically upload the series somewhere for faster processing. Might just set up an FTP server and have an FTP command in another crontab entry.

@geerlingguy
Copy link
Owner Author

Probably use one of the following for the uploading:

Note security caveats of storing API keys for Dropbox (or passwords, ick!) on the Pi...

@geerlingguy
Copy link
Owner Author

For file copying, might be easier to just use macOS's built-in 'Remote Login' (SSH), which allows me to use rsync to do the copy, like:

rsync -avz /home/pi/pi-timelapse/series-2019-04-22_12-30-04/ myaccount@mac-ip-address:/Users/myaccount/Downloads/timelapse/series-2019-04-22_12-30-04/

Of course I would need to do something to get the name of the most recent folder first... and also add something like delete the folder after rsync is successful.

@geerlingguy
Copy link
Owner Author

What I'm using now:

rsync -qaP --include-from=rsync-includes --exclude='*' /home/pi/pi-timelapse/ geerlingguy@my-mac-here:/Volumes/LargeVolumeHere/timelapse-directory

And that rsync-includes file just contains:

series**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant