This commit is contained in:
DingZQ
2025-04-19 17:47:15 +08:00
parent 9180b9c5cf
commit 7dca6685d1

View File

@@ -3355,11 +3355,11 @@ if __name__ == "__main__":
client = InfluxDBClient(url=url, token=token)
# step1: 检查连接状态初始化influxdb的buckets
try:
# delete_buckets(org_name)
create_and_initialize_buckets(org_name)
except Exception as e:
print(f"连接失败: {e}")
# try:
# # delete_buckets(org_name)
# create_and_initialize_buckets(org_name)
# except Exception as e:
# print(f"连接失败: {e}")
# step2: 先查询pg数据库中scada_info的信息然后存储SCADA数据到SCADA_data这个bucket里