 
 void setup()
 {
+  if (startPin > -1)
+    pinMode(startPin, INPUT_PULLUP); // Setup GPIO input for start signal
   pinMode(triggerPin, OUTPUT); // setup GPIO as camera trigger
   trigger(OFF);
   WiFi.mode(WIFI_AP); // AP mode for connections

void generateErrorHTML(String& sResp, String& sHead)
{
  sResp = "<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p></body></html>";

  sHead = "HTTP/1.1 404 Not found\r\n"
          "Content-Length: " + String(sResp.length()) + "\r\n"
          "Content-Type: text/html\r\n"

  20170720 Bugfix: Restarting timelapse after reconnect removed
  20170720 Information is displayed all the time, refresh button
  20170720 Autorefresh setting added
  20170722 Input pin as timelapse start
  --------------------------------------------------*/

#include <ESP8266WiFi.h>
