@@ -15,8 +15,21 @@ def get_ptz_info(code: str):
if result['Status'] == 0:
data = result['Data']
return data
- else:
- raise AppException(1, "error")
+ #else:
+ # raise AppException(1, "error")
+
+ return {
+ "AngelH": 0.0,
+ "AngelV": 0.0,
+ "AzimuthH": 0.0,
+ "AzimuthV": 0.0,
+ "Distance": 0.0,
+ "InclinationH": 0.0,
+ "PanPos": 0.0,
+ "TiltPos": 0.0,
+ "ZoomPos": 0.0
+ }
@@ -7,7 +7,7 @@ import multiprocessing
bind = ":9988"
workers = multiprocessing.cpu_count() * 2 + 1
-workers = 2
+# workers = 2
reload = True
chdir = '/home/python3/xh_twapi01'
worker_class = 'uvicorn.workers.UvicornWorker'