Browse Source

retry on camera error

master
P.BARRY 6 years ago
parent
commit
1c52d1d205
2 changed files with 14 additions and 8 deletions
  1. 3
      index.js
  2. 19
      server/views/scope.ejs

3
index.js

@ -1,3 +1,4 @@
#!/usr/bin/env node
const gphoto2 = require('./tools/tools-gphoto2') const gphoto2 = require('./tools/tools-gphoto2')
const server = require('./server') const server = require('./server')
@ -33,3 +34,5 @@ if (args.noinit) {
// num : pNum // num : pNum
// }); // });
// }) // })
// bobinoscope admin: 63748543

19
server/views/scope.ejs

@ -188,16 +188,19 @@
function BOB_takeThe1Pictures() { function BOB_takeThe1Pictures() {
$.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) { $.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) {
if( pResponse.error ) { if( pResponse.error ) {
if( confirm(pResponse.error) ) {
BOB_var_context.boothOnGoing = false;
$('#idViewCountdown').fadeOut(500, function() {
$('#idViewTrigger').fadeIn();
});
return;
}
// if( confirm(pResponse.error) ) {
// BOB_var_context.boothOnGoing = false;
// $('#idViewCountdown').fadeOut(500, function() {
// $('#idViewTrigger').fadeIn();
// });
// return;
// }
$('#idViewCountdown').html("Oops ! Un problème de pellicule<br/>On Recommence !!!");
$('#idViewCountdown').css('fontSize', '14em')
} else {
BOB_var_context.pictureId += 1
} }
BOB_var_context.pictureId += 1;
if( BOB_var_context.pictureId < 4 ) { if( BOB_var_context.pictureId < 4 ) {
BOB_var_context.onGoingTimer = BOB_var_context.initTimer; BOB_var_context.onGoingTimer = BOB_var_context.initTimer;
BOB_countdown(); BOB_countdown();

Loading…
Cancel
Save