Add debug mode to simulate a capture

This commit is contained in:
2021-03-10 17:37:01 -07:00
parent 15023b0e24
commit ec8128d96a
3 changed files with 15 additions and 0 deletions
+2
View File
@@ -3,6 +3,8 @@ import settings
import time
def np_02B_api(ip, username, password, is_on):
if settings.DEBUG: return
if is_on:
endpoint = '/cmd.cgi?grp=0'
else: