|
|
@@ -147,8 +147,7 @@ def main():
|
|
|
time.sleep(1)
|
|
|
else:
|
|
|
time.sleep(0.5)
|
|
|
-
|
|
|
- with open("/data/weather/weather_count.txt", 'a+', encoding='utf-8') as f:
|
|
|
+ with open("/var/log/bigdata_api/today_count.log", 'a+', encoding='utf-8') as f:
|
|
|
f.write(f"当日天气接口: 开始时间:{start_ct_time} 结束时间:{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} 调用次数:{day_ct} \n")
|
|
|
|
|
|
# 把19点的数据写入历史天气数据中
|