Browse Source

修改配置文件

nifangxu 1 day ago
parent
commit
4a6b855582
2 changed files with 12 additions and 9 deletions
  1. 6 1
      conf.ini
  2. 6 8
      demos/SleepReplayAnalyzer.py

+ 6 - 1
conf.ini

@@ -3,7 +3,12 @@
 module_name = LAS
 
 ; 服务器地址
-server_ip = 43.137.10.199
+; 研发
+server_ip = 8.130.28.21
+; 测试
+; server_ip = 43.137.10.199
+; 生产
+;server_ip = 43.137.10.199
 
 ; 日志等级,从低到高(0-3, DEBUG, INFO, WARN, ERROR)
 log_lvl = 0

+ 6 - 8
demos/SleepReplayAnalyzer.py

@@ -215,14 +215,12 @@ class SleepReplayAnalyzer:
 # ---------------- 使用示例 ----------------
 if __name__ == "__main__":
     start_ts = get_utc_time_s()
-    if 1:
-        dev_id = "94A9900B0B38"
-        bed_rect = [0, 250, 200, 115]
-    else:
-        dev_id = "94A9900B0B80"
-        bed_rect = [80, 130, 120, 210]
-    file_path = f"demos/record/{dev_id}.raw.json"
-    # file_path = f"demos/record/2025-10-13_21-03-13_94A9900B0B80.raw.json"
+    # dev_id = "806599CFA6D4"
+    # bed_rect = [80, 130, 120, 210]
+    # file_path = f"demos/record/{dev_id}.raw.json"
+    dev_id = "806599CFA6D4"
+    bed_rect = [-80, 134, 200, 120]
+    file_path = f"demos/record/2025-10-22_23-44-49_806599CFA6D4.raw.json"
     analyzer = SleepReplayAnalyzer(file_path, bed_rect)
     analyzer.analyze()