     DisplayStateWrapper *displayState = display.getState();
     displayState->writeToRtc(1, sizeof(DisplayStateWrapper));
 
-    systemState.accumulatedSystemMillis = systemState.accumulatedSystemMillis + systemActive + sleepMillis;
     systemState.writeToRtc(0, sizeof(SystemState));
     
     ESP.deepSleep(sleepMillis * 1000);


  unsigned long systemActive = millis() - systemStart;
  unsigned int secondsUntilOff = 0;
  if ((systemAwakeSeconds - 2)*1000 > systemActive) // -2 lie a little bit here; more time to connect
    secondsUntilOff = ((systemAwakeSeconds - 2)*1000 - systemActive) / 1000;

  TH externalData;
  bool dataReceived = server.receiveData(&externalData, secondsUntilOff);

#include "Wave29Display.h"
Wave29Display display;

unsigned long systemSleepSeconds = 240; // including the awaked time
unsigned long systemAwakeSeconds = 14;

#include "TH.h"
#include "WeatherServer.h"
