Front facing camera (#289)
* Front facing camera * Adding in configuration and update script
This commit is contained in:
parent
90de4fe24d
commit
00c4187081
10 changed files with 142 additions and 8 deletions
12
bin/lamassu-configure-frontcamera
Executable file
12
bin/lamassu-configure-frontcamera
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
'use strict'
|
||||
|
||||
const fs = require('fs')
|
||||
const options = require('../lib/options-loader')()
|
||||
|
||||
if (!options.opts.frontCameraDir) {
|
||||
options.opts.frontCameraDir = '/opt/lamassu-server/frontcamera'
|
||||
|
||||
fs.writeFileSync(options.path, JSON.stringify(options.opts, null, '\t'), 'utf8')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue