  **************************/
 //const char* WIFI_SSID = "";
 //const char* WIFI_PWD = "";
-const int sleeptime=60;//min
+const int sleeptime=1;//min
 const float UTC_OFFSET = 8;
-byte end_time=23;
-byte start_time=8;
+byte end_time=12;
+byte start_time=13;
  /***************************
   **************************/
 String city;

  ESP.rtcUserMemoryRead(0, (uint32_t*)&rtc_mem, sizeof(rtc_mem));
  if (rtc_mem[0]!=126)
  {
    rtc_mem[0]=126;
    rtc_mem[1]=0;
    ESP.rtcUserMemoryWrite(0, (uint32_t*)&rtc_mem, sizeof(rtc_mem));

  byte Hours=timeClient.getHours().toInt();
  if (Hours=end_time)
  {
    if((start_time-end_time)<0)  rtc_mem[1]=(24-Hours+start_time)*60/sleeptime;
    else rtc_mem[1]=(start_time-Hours)*60/sleeptime;
    ESP.rtcUserMemoryWrite(0, (uint32_t*)&rtc_mem, sizeof(rtc_mem));
    Serial.println("rtc_mem[1]");
    Serial.println(rtc_mem[1]);
    }
 
  Serial.print("heweather.rain");Serial.print(heweather.rain);Serial.print("\n");
