   WiFi.config(ip, gateway, subnet);
 }
 
-void setup(void){
+void initWachdog() 
+{
+  Serial.println("Init Wachdog");
+  noInterrupts();
+  timer0_isr_init();
+  timer0_attachInterrupt(wachdogLed);
+  timer0_write(ESP.getCycleCount() + WACHDOG_INTERVAL);
+  interrupts();
+}
+
+void initRichServer()
+{
+  Serial.println("Init RichServer");
+  serverRich.setMainColorHandler = setMainColor;
+  serverRich.setBackColorHandler = setBackColor;
+  serverRich.getWeatherHandler = getWeather;
+}
+
+void setup(void)
+{
   system_update_cpu_freq(SYS_CPU_160MHZ);
   pinMode(SRD_SRC_PIN, OUTPUT);
   pinMode(SRD_POWER_PIN, OUTPUT);

byte system_status = 1;
byte error_count = 0;
byte source = 0;
bool power_on = true;
/*
 * 0 -> normal no errors

  Serial.println("Init LedSupport");
  ledSupport.init();
  ledSupport.addLedPin(LED_PIN_MAIN, 2);
  
  ledSupport.setColor(LED_PIN_MAIN, 1, {255, 140, 0});
  ledSupport.setDimmer(20, LED_PIN_MAIN, 0);
  setInfoLed();
