 // DS1307 RTC setup stuff
 #include <Wire.h>
 #include <RTClib.h>
+
+RTC_DS1307 rtc;
 // =====================================================
 // lcd setup things
   #include <LCD.h>

  lcd.print("Connecting...");
  lcd.setBacklight(HIGH);

  /* Initialise the module */
  Serial.println(F("\nInitialising the CC3000 ..."));
  if (!cc3000.begin())

  lcd.clear();

  // try to set current time
  Serial.println(F("Trying to set current time from website..."));
  uint8_t retry_count = 5;
  uint32_t ip = 0;
  // Try looking up the website's IP address
  while (ip == 0 && retry_count) {
    if (! cc3000.getHostByName(WEBSITE, &ip)) {
      Serial.println(F("Couldn't resolve!"));
    }
    delay(500);
    retry_count--;
  }
  if (ip) {
    DateTime cur = parseHeader(ip, 80, WEBSITE, WEBPAGE);
    rtc.adjust(cur);
  }
}

void loop() {
  // put your main code here, to run repeatedly:
  now = rtc.now();
  lcd.setCursor(0,0);
  if (cc3000.checkConnected()) {
    lcd.print("ssid: ");
