Commit 93923b49 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent cbb6ff67
......@@ -13,8 +13,8 @@ var compression = 50
var difference_threshold = .05
var millisecond_image_delay = 15000
var days_to_save = 150
var flip = "flip h,v"
var settings= '\
--flip h,v \
--set "Focus, Auto"=False \
--set "Focus (absolute)"=0% \
--set "White Balance Temperature, Auto"=False \
......@@ -52,7 +52,7 @@ function update() {
// take new image
//
console.log('\ncapture '+name)
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+settings+' --save oldimage.jpg')
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+flip+' --save oldimage.jpg')
//
// remove prior images
//
......@@ -116,7 +116,7 @@ function update() {
//
// take initial image
//
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+settings+' --save oldimage.jpg')
execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' '+flip+' '+settings+' --save oldimage.jpg')
//
// start update
//
......
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