Casper 1 lună în urmă
părinte
comite
fa65df7c8c
2 a modificat fișierele cu 7 adăugiri și 32 ștergeri
  1. 0 22
      sri-server-bg01/hub.py
  2. 7 10
      sri-server-bg02/hub.py

+ 0 - 22
sri-server-bg01/hub.py

@@ -6,28 +6,6 @@ sys.path.append('../sri-pysdk')
 methods = importlib.import_module(f"xlib")
 
 
-# camera_handle = importlib.import_module(f"libraries.base_external.camera_by_cv2")
-# numpy_method = importlib.import_module(f"libraries.base_external.data_by_numpy")
-
-
 class Global(object):
-    # --- 时序数据库 ---
-    # xdb = importlib.import_module(f"clients.db_influx").Client(host='fra-middleware-influx', port=8086,
-    #                                                            database='vms')
-
-    # --- 业务数据数据库 ---
     mdb = importlib.import_module(f"xclient.xmongo").Client(host='127.0.0.1', port=47017, database='bg',
                                                             username='admin', password='admin')
-    # mdb = importlib.import_module(f"xclient.xmongo").Client(host='10.10.10.73', port=47017, database='bg',
-    #                                                         username='admin', password='admin')
-    # mysql = importlib.import_module(f"xclient.db_maria2").Client(host='58.34.94.176', port=8806, database='hs',
-    #                                                              username='root', password='rootroot&123123')
-
-    # --- 缓存数据库 ---
-    # rdb = importlib.import_module(f"clients.db_redis").Client(db=0, host='fra-middleware-redis', port=6379)
-
-    # SSHClient = importlib.import_module(f"clients.l4_ssh_by_paramiko").Client
-
-    # local_api = importlib.import_module(f"apis.local.api").Api()
-
-    # mccbts_agent = importlib.import_module(f"xapi.mccbts.api").API()

+ 7 - 10
sri-server-bg02/hub.py

@@ -10,14 +10,18 @@ class Global(object):
     """
     """
 
+    # --- 公司内网测试服务器 ---
     save_dir = r'C:\logs'  # sri内网测试环境
-    # save_dir = r'E:\logs'  # 湛江现场环境(容量为512G)
-
-    # --- 中间件服务器 ---
     emqx_factory = importlib.import_module(f"xclient.xmqtt")
     emqx_host = '127.0.0.1'
     emqx_port = 41883
 
+    # --- 湛江现场
+    # save_dir = r'E:\logs'  # 湛江现场环境(容量为512G)
+    # emqx_factory = importlib.import_module(f"xclient.xmqtt")
+    # emqx_host = '127.0.0.1'
+    # emqx_port = 41881  # 湛江现场
+
     # --- 定时执行组件 ---
     aps = importlib.import_module(f"xpip.xapscheduler").APS(db_type='mongo',
                                                             db_host='127.0.0.1',
@@ -29,10 +33,3 @@ class Global(object):
     mdb = importlib.import_module(f"xclient.xmongo").Client(host='127.0.0.1', port=47017, database='bg',
                                                             username='admin', password='admin')
 
-    # emqx = importlib.import_module(f"xclient.xmqtt").Client(host='10.10.10.73', port=41883)
-
-    # aps = importlib.import_module(f"xpip.xapscheduler").APS(db_type='mongo',
-    #                                                         db_host='10.10.10.73',
-    #                                                         db_port=47017,
-    #                                                         username='admin', password='admin',
-    #                                                         database='bg', collection='LoopTask')