     unsigned long sleepMillis = 1;
     if (systemSleepSeconds * 1000 > systemActive)
       sleepMillis = systemSleepSeconds * 1000 - systemActive;
-    
-    Serial.print("Sleeping ");
+
+    systemState.accumulatedSystemMillis = systemState.accumulatedSystemMillis + systemActive + sleepMillis;
+    Serial.print(systemState.accumulatedSystemMillis / (1000 * 60));
+    
+    Serial.print("m Sleeping ");
     if (shouldSleepNow && !sleepNow)
       Serial.print("in vain ");
     Serial.println(sleepMillis);

#include "Wave29Display.h"
Wave29Display display;

unsigned long systemSleepSeconds = 180; // including the awaked time
unsigned long systemAwakeSeconds = 12;

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

    DisplayStateWrapper *displayState = display.getState();
    displayState->writeToRtc(1, sizeof(DisplayStateWrapper));

    systemState.writeToRtc(0, sizeof(SystemState));
    
    ESP.deepSleep(sleepMillis * 1000);
