From b21d2627fe9102b34419c2789d6a9f181cdc5bee Mon Sep 17 00:00:00 2001 From: "P.BARRY" Date: Sun, 12 Aug 2018 22:59:51 +0200 Subject: [PATCH] some fixes --- index.js | 8 ++++---- server/index.js | 5 +++++ server/views/scope.ejs | 4 ++-- tools/tools-gphoto2.js | 19 ++++++++++++++----- tools/tools-photobooth.js | 2 +- 5 files changed, 26 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index 3738c74..f250204 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,10 @@ const gphoto2 = require('./tools/tools-gphoto2') const server = require('./server') -// gphoto2.init(function (pErr) { - // console.log('DONE') +gphoto2.init(function (pErr) { + console.log('[>] Checking list done with success') let app = server() -// }) +}) // // Initialize the library // BOB_var_gamepad.init() @@ -22,4 +22,4 @@ const server = require('./server') // id : pId, // num : pNum // }); -// }) \ No newline at end of file +// }) diff --git a/server/index.js b/server/index.js index 3476e8d..edfd208 100644 --- a/server/index.js +++ b/server/index.js @@ -4,6 +4,7 @@ const app = express() const logger = require('morgan') const cookieParser = require('cookie-parser') const bodyParser = require('body-parser') +const opn = require('opn') const booth = require('./booth') @@ -52,5 +53,9 @@ module.exports = function () { app.locals.io = require('socket.io')(server) booth.setSocketIo(app.locals.io) + console.log(`[-] Starting chromium...`) + opn('http://localhost:3111/bobinoscope', { + app: ['chromium-browser', '--app=http://localhost:3111/bobinoscope', '--start-fullscreen', '--password-store=basic'] + }) return app } diff --git a/server/views/scope.ejs b/server/views/scope.ejs index 2be7097..118ea0c 100644 --- a/server/views/scope.ejs +++ b/server/views/scope.ejs @@ -32,7 +32,7 @@