Advertisement
mistakirill

Untitled

Oct 5th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function takePhoto(msg) {
  2. setTimeout(function() {
  3. console.log('taking photos');
  4. exec('raspistill -o /home/pi/pi-camera-bot/photos/$(date +%Y-%m-%d:%k:%M:%S).jpg');
  5. i++;
  6. if (i < 4) {
  7. takePhoto(msg);
  8. }
  9. }, 9000)
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement