Skip to content

Commit 09931d9

Browse files
committed
revert: revert example code
1 parent 1a45f59 commit 09931d9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎examples/pull_live_events.py‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,14 @@
1111
import datetime
1212
import xml.etree.ElementTree as ET
1313
from zeep.plugins import HistoryPlugin
14-
import sys, os
15-
import json
16-
17-
# Make sure local library path is prioritized
18-
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
1914
from onvif import ONVIFClient, CacheMode
2015

21-
HOST = "cctv.faceplexus.com"
22-
PORT = 443
16+
HOST = "192.168.1.3"
17+
PORT = 80
2318
USERNAME = "admin"
2419
PASSWORD = "admin123"
2520

26-
client = ONVIFClient(HOST, PORT, USERNAME, PASSWORD, use_https=True)
21+
client = ONVIFClient(HOST, PORT, USERNAME, PASSWORD, cache=CacheMode.NONE)
2722

2823
# 1. Create PullPoint Subscription from Events service
2924
subscription = client.events().CreatePullPointSubscription()

0 commit comments

Comments
 (0)