 void loop() {
 
   delay (2000);
-  turnRelayOn(2, "relay");
+  turnRelayOn(5, "test relay");
   // Wait one second before repeating :)
   delay (1000);
-  turnRelayOff(2, "relay");
+  turnRelayOff(5, "test relay");
   delay (2000);
 
 //  t = rtc.getTimeStr();
 
-  Serial.println(rtc.getTimeStr());
-
+//  Serial.println(rtc.getTimeStr());
+//
 //  checkTemp(insideThermometer);
+  serveWebpage();
 }
 
 void checkTemp(DeviceAddress deviceAddress) {

  rtc.setTime(hours, minutes, seconds);
}


#include <DallasTemperature.h>
#include <OneWire.h>
#include <DS3231.h>
#include <SPI.h>
#include <Ethernet.h>

// Define OneWire pin
#define ONE_WIRE_BUS 9

// Define Relay Digital I/O pin number and names
#define RELAY_ON LOW
#define RELAY_OFF HIGH
#define relay_1  2  // SSR
String relay_1_name = "Heater";
#define relay_2  3  // SSR
String relay_2_name = "Lighting";
#define relay_3  4  // SSR
String relay_3_name = "CO2";
#define relay_4  5  // 
String relay_4_name = "Pump1";
#define relay_5  6  // 
String relay_5_name = "Pump2";
#define relay_6  7  // 
String relay_6_name = "Pump3";
#define relay_7  8  // 
String relay_7_name = "Pump4";

// Ethernet init
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 0, 177);
EthernetServer server(80);

void ethernetSetup() {
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL);
