Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function takePhoto(msg) {
- setTimeout(function() {
- console.log('taking photos');
- exec('raspistill -o /home/pi/pi-camera-bot/photos/$(date +%Y-%m-%d:%k:%M:%S).jpg');
- i++;
- if (i < 4) {
- takePhoto(msg);
- }
- }, 9000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement