Bladeren bron

调整7天历史数据参数名

heshixin 1 week geleden
bovenliggende
commit
7cacecc03f
1 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 8 8
      iotdb_util.py

+ 8 - 8
iotdb_util.py

@@ -205,9 +205,9 @@ def query_chiller_7days(dbpath="root.org_100.dev_159", start_time="2025-05-13T19
     :return:
     """
     sql = f"""
-           SELECT LAST_VALUE(loadRatio) AS 'loadRatio' , 
-                  LAST_VALUE(evapWaterTempOut) AS 'evapWaterTempOut', 
-                  LAST_VALUE(outputActivePower) / 1 AS 'chillerWaterTempOut'
+           SELECT LAST_VALUE(loadRatio) AS 'loadRate' , 
+                  LAST_VALUE(evapWaterTempOut) AS 'chillerWaterTempOut', 
+                  LAST_VALUE(outputActivePower) / 1 AS 'chillerPowerRatio'
            FROM {dbpath}
            WHERE time >= {start_time} 
            GROUP BY ([{start_time}, {end_time}), 20m)
@@ -268,15 +268,15 @@ if __name__ == '__main__':
     # 组织/租户ID
     org_id = 100
     # 冷机ID
-    chiller_ids = [159]
+    chiller_ids = [170]
     # 超标监测点ID
-    terminal_ids = [121, 120]
+    terminal_ids = [58, 59, 60]
     # 冷机额定功率
-    power_rates = [100, 100]
+    power_rates = [200]
     # 群控柜ID
-    controller_id = 159
+    controller_id = 168
 
-    trigger_time_stamp = 1748251717992
+    trigger_time_stamp = 1748517100841
     terminal_data = get_terminal_modify_data(org_id, terminal_ids, trigger_time_stamp)
     chiller_data = get_chiller_modify_data(org_id, chiller_ids, power_rates, trigger_time_stamp)
     station_data = get_station_modify_data(org_id, controller_id, trigger_time_stamp)