  **************************/
 //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;

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

  
  EPD.clearshadows(); EPD.clearbuffer();EPD.fontscale=1;
  EPD.SetFont(0x0);
  EPD.DrawUTF(0,0,16,16,(unsigned char *)"WIFI未连接，请连接“Weather Widget”");
  EPD.EPD_Dis_Part(0,127,0,295,(unsigned char *)EPD.EPDbuffer,1);
  driver_delay_xms(DELAYTIME);
}
