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) # 检查连接状态