You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
#!/usr/bin/env node
|
|
const gphoto2 = require('./tools/tools-gphoto2')
|
|
const server = require('./server')
|
|
|
|
const args = require('args-parser')(process.argv)
|
|
|
|
const PKG = require('./package')
|
|
|
|
if (args.noinit) {
|
|
let app = server(args)
|
|
} else {
|
|
gphoto2.init(function () {
|
|
console.log('[>] Checking list done with success')
|
|
let app = server(args)
|
|
})
|
|
}
|
|
|
|
// killall gvfs-gphoto2-volume-monitor
|
|
|
|
// // Initialize the library
|
|
// BOB_var_gamepad.init()
|
|
// // List the state of all currently attached devices
|
|
// for (var i = 0, l = BOB_var_gamepad.numDevices(); i < l; i++) {
|
|
// console.log(i, BOB_var_gamepad.deviceAtIndex(i));
|
|
// }
|
|
// // Create a game loop and poll for events
|
|
// setInterval(BOB_var_gamepad.processEvents, 16);
|
|
// // Scan for new gamepads as a slower rate
|
|
// setInterval(BOB_var_gamepad.detectDevices, 500);
|
|
// // Listen for button down events on all gamepads
|
|
// BOB_var_gamepad.on("down", function (pId, pNum) {
|
|
// BOB_cfg_config.io.emit('boothClick', {
|
|
// id : pId,
|
|
// num : pNum
|
|
// });
|
|
// })
|
|
|
|
// bobinoscope admin: 63748543
|