  * until the computer is rebooted on windows machines.
  */
 const int TRIGGER_PIN = D3; // D3 on NodeMCU and WeMos.
-const int LED_PIN = D7; //Diod pin
 const int MOTOR_PIN = D5; //Motor pin
+const int LED_PIN_RED = D6; //Diod pin red
+const int LED_PIN_GREEN = D7; //Diod pin green
+const int LED_PIN_BLUE = D8; //Diod pin blue
+
 const String DEV_VERSION = "1.0";
 const int POWERCHECK_INTERVAL = 600000; // 10 min Check battery volage
 const int SCHEDULE_INTERVAL = 60000; // 1 min Check shedule volage

        udp.begin(UPDPORT);
        Rtc.Begin();
        Serial.println("UPD server started");
        doblink(LED_PIN, 1, 5000);
  }
}


String getCurrentTime(){
   if (Rtc.IsDateTimeValid()){
    RtcDateTime currentTime = Rtc.GetDateTime(); 
       String respond;
       StaticJsonBuffer<400> jsonBuffer;
       JsonObject& data = jsonBuffer.createObject();
          data["year"] =   currentTime.Year();
          data["month"] =  currentTime.Month();
          data["day"] =    currentTime.Day();
          data["hour"] =   currentTime.Hour();
          data["minute"] = currentTime.Minute();
          data["second"] = currentTime.Second();
       data.printTo(respond);     
           return respond;
   }else{
           return "";
   }  
}
String getNowHour(){
