Commit c99e45b6 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 31191562
......@@ -52,7 +52,14 @@ function update() {
// take new image
//
console.log('\ncapture '+name)
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+flip+' --save image.jpg')
while (true) {
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+flip+' --save image.jpg')
//
// check that taking image was successful
//
if (fs.existsSync('iamge.jpg'))
break
}
//
// remove prior images
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment