 
 void loop ()
 {
-    /* DateTime now = rtc.now(); */
-    /* Serial.print(now.year(), DEC); */
-    /* Serial.print('/'); */
-    /* Serial.print(now.month(), DEC); */
-    /* Serial.print('/'); */
-    /* Serial.print(now.day(), DEC); */
-    /* Serial.print(' '); */
-    /* Serial.print(now.hour(), DEC); */
-    /* Serial.print(':'); */
-    /* Serial.print(now.minute(), DEC); */
-    /* Serial.print(':'); */
-    /* Serial.print(now.second(), DEC); */
-    /* Serial.println(); */
-    /* Serial.print(" since midnight 1/1/1970 = "); */
-    /* Serial.print(now.unixtime()); */
-    /* Serial.print("s = "); */
-    /* Serial.print(now.unixtime() / 86400L); */
-    /* Serial.println("d"); */
-    /* // calculate a date which is 7 days and 30 seconds into the future */
-    /* DateTime future (now.unixtime() + 7 * 86400L + 30); */
-    /* Serial.print(" now + 7d + 30s: "); */
-    /* Serial.print(future.year(), DEC); */
-    /* Serial.print('/'); */
-    /* Serial.print(future.month(), DEC); */
-    /* Serial.print('/'); */
-    /* Serial.print(future.day(), DEC); */
-    /* Serial.print(' '); */
-    /* Serial.print(future.hour(), DEC); */
-    /* Serial.print(':'); */
-    /* Serial.print(future.minute(), DEC); */
-    /* Serial.print(':'); */
-    /* Serial.print(future.second(), DEC); */
-    /* Serial.println(); */
-    /* Serial.println(); */
-    /* uint32_t color = 0; */
-    /* color = strip.Color(0,0,0); */
-    /* for(int j = 0; j < NUMPIXEL; j++) */
-    /* { */
-    /*     strip.setPixelColor(j,color); */
-    /* } */
-    /* color = strip.Color(50,50,50); */
-    /* strip.setPixelColor(i++,color); */
-    /* strip.setPixelColor(6,color); */
-    /* strip.setPixelColor(7,color); */
-    /* strip.setPixelColor(8,color); */
-    /* strip.setPixelColor(9,color); */
-    /* strip.setPixelColor(10,color); */
-    /* strip.setPixelColor(11,color); */
-    /* strip.setPixelColor(31,color); */
-    /* strip.setPixelColor(32,color); */
-    /* strip.setPixelColor(33,color); */
-    /* strip.setPixelColor(34,color); */
-    /* strip.setPixelColor(77,color); */
-    /* strip.setPixelColor(78,color); */
-    /* strip.setPixelColor(79,color); */
-    /* strip.setPixelColor(97,color); */
-    /* strip.setPixelColor(98,color); */
-    /* strip.setPixelColor(99,color); */
-    /* strip.setPixelColor(100,color); */
-    /* strip.setPixelColor(101,color); */
-    /* strip.setPixelColor(102,color); */
-    /* strip.setPixelColor(103,color); */
-    /* strip.setPixelColor(132,color); */
-    /* strip.setPixelColor(133,color); */
-    /* strip.setPixelColor(138,color); */
-    /* strip.setPixelColor(139,color); */
-    /* strip.setPixelColor(140,color); */
-    /* strip.show(); */
-    /* delay(3000); */
 }
 
 void checktime()
 {
-    DateTime now = rtc.now();
-    int hour = now.hour();
-    int minute = now.minute();
+    tmElements_t tm;
+    RTC.read(tm);
+    int hour = tm.Hour;
+    int minute = tm.Minute;
     int minutemod5 = minute % 5;
-    int second = now.second();
+    int second = tm.Second;
     Color cBackground = cBlack;
     Color cForeground = cWhite;
     for(int j = 0; j < NUMPIXEL; j++)

    {
        lightUhr(cForeground);
    }
    if((hour ==  5  && minute >= 23) || 
            (hour >= 6 && hour <= 10) ||
            (hour ==  11  && minute <= 22))
    {
        lightVor2(cForeground);
        lightMittag(cForeground);
    }
    if((hour ==  12  && minute >= 23) || 
            (hour >= 13 && hour <= 18) ||
            (hour ==  19  && minute <= 22))
    {
        lightNach2(cForeground);
        lightMittag(cForeground);
    }
    if((hour ==  19  && minute >= 23) || 
            (hour >= 20 || hour <= 5) ||
            (hour ==  5  && minute <= 22))
    {
        lightNachts(cForeground);
    }
    if((hour ==  11  && minute >= 23) || 
            (hour ==  12  && minute <= 22))
    {
        lightMittag(cForeground);

    {
        lightHalb(cForeground);
    }
    if(((hour ==  1 || hour == 13) && minute <= 22) ||
            ((hour ==  0 || hour == 12) && minute >= 23))
    {
        lightEins(cForeground);
    }
    if(((hour ==  2 || hour == 14) && minute <= 22) ||
            ((hour ==  1 || hour == 13) && minute >= 23))
    {
        lightZwei(cForeground);
    }
    if(((hour ==  3 || hour == 15) && minute <= 22) ||
            ((hour ==  2 || hour == 14) && minute >= 23))
    {
        lightDrei(cForeground);
    }
    if(((hour ==  4 || hour == 16) && minute <= 22) ||
            ((hour ==  3 || hour == 15) && minute >= 23))
    {
        lightVier(cForeground);
    }
    if(((hour ==  5 || hour == 17) && minute <= 22) ||
            ((hour ==  4 || hour == 16) && minute >= 23))
    {
        lightFuenf2(cForeground);
    }
    if(((hour ==  6 || hour == 18) && minute <= 22) ||
            ((hour ==  5 || hour == 17) && minute >= 23))
    {
        lightSechs(cForeground);
    }
    if(((hour ==  7 || hour == 19) && minute <= 22) ||
            ((hour ==  6 || hour == 18) && minute >= 23))
    {
        lightSieben(cForeground);
    }
    if(((hour ==  8 || hour == 20) && minute <= 22) ||
            ((hour ==  7 || hour == 19) && minute >= 23))
    {
        lightAcht(cForeground);
    }
    if(((hour ==  9 || hour == 21) && minute <= 22) ||
            ((hour ==  8 || hour == 20) && minute >= 23))
    {
        lightNeun(cForeground);
    }
    if(((hour ==  10 || hour == 22) && minute <= 22) ||
            ((hour ==  9 || hour == 21) && minute >= 23))
    {
        lightZehn2(cForeground);
    }
    if(((hour ==  11 || hour == 23) && minute <= 22) ||
            ((hour ==  10 || hour == 22) && minute >= 23))
    {
        lightElf(cForeground);
    }
    if(((hour ==  12 || hour == 0) && minute <= 22) ||
            ((hour ==  11 || hour == 23) && minute >= 23))
    {
        lightZwoelf(cForeground);
