From 35c3bf986cb8a1d2105a70429ae4f187e15e23a7 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 31 Jan 2025 13:31:41 +0800 Subject: [PATCH] Refine --- influxdb_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb_api.py b/influxdb_api.py index c8ea92f..5f1ffa5 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -6,7 +6,7 @@ from dateutil import parser # influxdb数据库连接信息 url = "http://localhost:8086" # 替换为你的InfluxDB实例地址 token = "xGDM5RZqRJAuzAGS-otXUdC2NFdY75qJAjRLqAB4p5WcIIAlIUpOpT8_yA16AOHmJWerwQ_08gwb84sy42jnZQ==" # 替换为你的InfluxDB Token -org_name = "TJWATEORG" # 替换为你的Organization名称 +org_name = "TJWATERORG" # 替换为你的Organization名称 client = InfluxDBClient(url=url, token=token, org=org_name) @@ -392,7 +392,7 @@ def query_curve_by_ID_property_daterange(ID: str, type: str, property: str, star if __name__ == "__main__": url = "http://localhost:8086" # 替换为你的InfluxDB实例地址 token = "xGDM5RZqRJAuzAGS-otXUdC2NFdY75qJAjRLqAB4p5WcIIAlIUpOpT8_yA16AOHmJWerwQ_08gwb84sy42jnZQ==" # 替换为你的InfluxDB Token - org_name = "TJWATEORG" # 替换为你的Organization名称 + org_name = "TJWATERORG" # 替换为你的Organization名称 client = InfluxDBClient(url=url, token=token, org=org_name) # 检查连接状态