Commit 7351c93a authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent a6da9b24
......@@ -2,7 +2,7 @@
// cams.js
// shopcam activity monitor
// Neil Gershenfeld
// 10/1/17
// 10/5/17
// to run: node cams.js
// uses fswebcam for screen capture
// uses convert to make thumbnails
......@@ -31,14 +31,14 @@ var oldsize = 0
//
function update() {
//
// name images by month, day, hour, minute
// name image by month, day, hour, minute
//
var date = new Date()
var name = ('0'+(1+parseInt(date.getMonth()))).slice(-2)+'-'+('0'+(1+parseInt(date.getDay()))).slice(-2)+'-'+('0'+date.getHours()).slice(-2)+'-'+('0'+date.getMinutes()).slice(-2)+'.jpg'
//
// remove prior image if it exists
//
execSync('rm -f '+name)
execSync('rm -f images/'+name)
//
// take new image
//
......
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