   delay(100);
 }
 
-void digitalClockDisplay()
-{
-  char buffer[7];
-  sprintf(buffer, "%02d%02d%02d", hour(), minute(), second());
-  Serial.println(buffer);
-}
-
-void printDigits(int digits)
-{
-  // utility for digital clock display: prints preceding colon and leading 0
-  Serial.print(":");
-  if (digits < 10)
-    Serial.print('0');
-  Serial.print(digits);
-}
-
-
-
-
 //------------------ Woodstation related data -------------------
 
+static int humidityDisplayBaseAddresses[2][2]=
+{
+    {0,0},
+    {7,0}
+};
+
+static int temperatureDisplayBaseAddresses[3][2]=
+{
+    {0,1},
+    {7,1},
+    {14,1}
+};
+
 static int timeDisplayBaseAddresses[6][2]=
 {
     {0,2},  //H
-    {14,2}, //H
-    {28,2}, //m
+    {7,2}, //H
+    {14,2}, //m
     {0,3},  //m
-    {14,3}, //s
-    {28,3}  //s
+    {7,3}, //s
+    {14,3}  //s
 };
 
 static int dateDisplayBaseAddresses[8][2]=
 {
-    {1,0},  //D
-    {15,0}, //D
-    {29,0}, //M
-    {1,1},  //M
-    {15,1}, //Y
-    {29,1}, //Y
+    {0,4},  //D
+    {7,4}, //D
+    {14,4}, //M
+    {0,5},  //M
+    {7,5}, //Y
+    {14,5}, //Y
     {1,2},  //Y
-    {29,1}  //Y
+    {7,6}  //Y
 };
 
 static int sevenSegmentDigits[10][7]=

  setSyncInterval(300);

  Serial.println("Setting up SPI display");
  ht1632c_init(HT1632_CMD_8PMOS);
  ht1632c_clear();
  ht1632c_pwm(15);
  ht1632c_sendframe();
}

time_t prevDisplay = 0; // when the digital clock was displayed

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

#include "HT1632.h"

#define ESP8266
#define HT1632_CS   D1
#define HT1632_CLK  D5
#define HT1632_MOSI D7


const char* ssid = "**************";
const char* password = "*************";

// NTP Servers:
static const char ntpServerName[] = "europe.pool.ntp.org";
