|
@@ -402,8 +402,6 @@ if __name__ == "__main__" :
|
|
# Accumulate weather forecast data
|
|
# Accumulate weather forecast data
|
|
while True:
|
|
while True:
|
|
now = datetime.now()
|
|
now = datetime.now()
|
|
- if now.hour == 1 and now.minute <= 15: ## 하루에 한번 오전 1시 이후에 과거 데이터 체크 (오전 1시는 임의로 정한 시각)
|
|
|
|
- Check_Restoring_Unknown_past_data(targetDBIP, targetDBUserID, targetDBUserPW, targetDBName, nx, ny) ## 과거 실 데이터가 어제까지만 제공되기 때문에 매일 어제 데이터가 있는지 체크
|
|
|
|
if now.hour == 20 and now.minute >= 45 and now.minute <= 59:
|
|
if now.hour == 20 and now.minute >= 45 and now.minute <= 59:
|
|
AccumulationActive = True
|
|
AccumulationActive = True
|
|
else:
|
|
else:
|