Created
August 22, 2017 17:54
-
-
Save SteveEdson/794222662809a92aafc3f6b03c91c8ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Take a photo on load | |
takePhoto(); | |
setInterval(() => { | |
// Take a photo every X minutes, defined in the ENV | |
takePhoto(); | |
}, 1000 * 60 * parseInt(process.env.PHOTO_INTERVAL, 10)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment