 const unsigned long default_delayToStart = 0;      // Delay in seconds till start of timelapse
 const unsigned long default_numberOfShots = 10;    // Number of shots in timelapse mode
 const unsigned long default_delayBetweenShots = 5; // Delay between shots in timelapse mode
+const unsigned long default_triggerDuration = 0;   // Duration of trigger ON in seconds (0 = 250ms)
 const unsigned long default_autorefresh = 5;       // In timelapse mode autorefresh webGUI every 5 seconds, 0 = autorefresh off
 const int timelapseAutoStart = 0;                  // 1 = Autostart timelapse mode, 0 = No autostart
 

const int timeSlot = 250; // timeslot in ms
const int timeSlotsPerSecond = 1000 / timeSlot;

unsigned long delayToStart = default_delayToStart;
unsigned long numberOfShots = default_numberOfShots;
unsigned long delayBetweenShots = default_delayBetweenShots;
unsigned long autorefresh = default_autorefresh;
unsigned long previousTimeSlotMillis = 0;
unsigned long currentDelayToStart = 0;
unsigned long currentNShots = 0;
unsigned long NumberOfShotsSinceStart = 0; //
unsigned long currentDelayBetweenShots = 0;
unsigned long currentAutorefresh = 0;
int currentTimelapseAutoStart = timelapseAutoStart;

unsigned long secCounter = 0; // count the seconds since start of timelapse
unsigned long timeSlotCounter = 0; // count the timeslots since start of timelapse

int highlightLine = 2;
int lastDialogLine = 8;

        extractParams(sParam);
        process_mode();
      }
      sResponse = generateHTMLPage(delayToStart, numberOfShots, delayBetweenShots, triggerDuration);
      generateOKHTML(sResponse, sHeader);
    }
    else // 404 if error
