Quellcode durchsuchen

Merge remote-tracking branch 'origin/master'

peng vor 2 Jahren
Ursprung
Commit
1448bedea6
1 geänderte Dateien mit 38 neuen und 0 gelöschten Zeilen
  1. 38 0
      Service/DevicePushService.py

+ 38 - 0
Service/DevicePushService.py

@@ -342,6 +342,25 @@ class DevicePushService:
         if lang == 'cn':
             if event_type == 51:
                 msg_type = '检测到画面变化'
+            elif event_type == 57:
+                msg_type = '有人出现'
+            elif event_type == 58:
+                msg_type = '有车出现'
+            elif event_type == 59:
+                msg_type = '有宠物出现'
+            elif event_type == 60:
+                msg_type = '发现人脸'
+            elif event_type == 61:
+                msg_type = '有异响'
+            elif event_type == 62:
+                msg_type = '区域闯入'
+            elif event_type == 63:
+                msg_type = '区域闯出'
+            elif event_type == 64:
+                msg_type = '有人徘徊'
+            elif event_type == 65:
+                msg_type = '长时间无人出现'
+
             elif event_type == 704:
                 msg_type = '剩余电量 ' + electricity
             elif event_type == 702:
@@ -384,6 +403,25 @@ class DevicePushService:
         else:
             if event_type == 51:
                 msg_type = 'Screen change detected'
+            elif event_type == 57:
+                msg_type = 'Person detected'
+            elif event_type == 58:
+                msg_type = 'Vehicle detected'
+            elif event_type == 59:
+                msg_type = 'Pet detected'
+            elif event_type == 60:
+                msg_type = 'Human face detected'
+            elif event_type == 61:
+                msg_type = 'Abnormal sound detected'
+            elif event_type == 62:
+                msg_type = 'Intrusion detected in the area'
+            elif event_type == 63:
+                msg_type = 'Area vacated'
+            elif event_type == 64:
+                msg_type = 'Loitering detected'
+            elif event_type == 65:
+                msg_type = 'No appearance for a long time'
+
             elif event_type == 704:
                 msg_type = 'Battery remaining ' + electricity
             elif event_type == 702: