I have a Take Picture Button which results in this log-lines:
16:31:05.868 [pimatic] error: A uncaught exception occured: Error: ENOENT, open '/home/pi/test.jpg’
16:31:05.868 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!
16:31:05.909 [pimatic] warn: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!
The rule I have for this button is:
execute “sudo rm test.jpg -f” and after 2 seconds execute “sudo fswebcam -i 0 -F 5 -d v4l2:/dev/video0 --jpeg 100 --save test.jpg -S 2” and push title:“Foto” message:"/home/pi/test.jpg" type:“file”
The same is when I changethe rule in
execute “sudo fswebcam -i 0 -F 5 -d v4l2:/dev/video0 --jpeg 100 --save test.jpg -S 2” and push title:“Foto” message:"/home/pi/test.jpg" type:“file”
or with
execute “fswebcam -i 0 -F 5 -d v4l2:/dev/video0 --jpeg 100 --save test.jpg -S 2” and push title:“Foto” message:"/home/pi/test.jpg" type:“file”
So. Here it is, my report of this bug