Skip to content

Commit 6dca88e

Browse files
authored
Remove cli that does not exist (#89)
1 parent 078ff62 commit 6dca88e

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

README.rst

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -111,54 +111,6 @@ Or create an unofficial service::
111111
# Another way
112112
# await mycam.yourservice.SomeOperation()
113113

114-
ONVIF CLI
115-
---------
116-
python-onvif also provides a command line interactive interface: onvif-cli.
117-
onvif-cli is installed automatically.
118-
119-
Single command example
120-
~~~~~~~~~~~~~~~~~~~~~~
121-
122-
::
123-
124-
$ onvif-cli devicemgmt GetHostname --user 'admin' --password '12345' --host '192.168.0.112' --port 80
125-
True: {'FromDHCP': True, 'Name': hision}
126-
$ onvif-cli devicemgmt SetHostname "{'Name': 'NewerHostname'}" --user 'admin' --password '12345' --host '192.168.0.112' --port 80
127-
True: {}
128-
129-
Interactive mode
130-
~~~~~~~~~~~~~~~~
131-
132-
::
133-
134-
$ onvif-cli -u 'admin' -a '12345' --host '192.168.0.112' --port 80 --wsdl /etc/onvif/wsdl/
135-
ONVIF >>> cmd
136-
analytics devicemgmt events imaging media ptz
137-
ONVIF >>> cmd devicemgmt GetWsdlUrl
138-
True: http://www.onvif.org/
139-
ONVIF >>> cmd devicemgmt SetHostname {'Name': 'NewHostname'}
140-
ONVIF >>> cmd devicemgmt GetHostname
141-
True: {'Name': 'NewHostName'}
142-
ONVIF >>> cmd devicemgmt SomeOperation
143-
False: No Operation: SomeOperation
144-
145-
NOTE: Tab completion is supported for interactive mode.
146-
147-
Batch mode
148-
~~~~~~~~~~
149-
150-
::
151-
152-
$ vim batchcmds
153-
$ cat batchcmds
154-
cmd devicemgmt GetWsdlUrl
155-
cmd devicemgmt SetHostname {'Name': 'NewHostname', 'FromDHCP': True}
156-
cmd devicemgmt GetHostname
157-
$ onvif-cli --host 192.168.0.112 -u admin -a 12345 -w /etc/onvif/wsdl/ < batchcmds
158-
ONVIF >>> True: http://www.onvif.org/
159-
ONVIF >>> True: {}
160-
ONVIF >>> True: {'FromDHCP': False, 'Name': NewHostname}
161-
162114
References
163115
----------
164116

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,4 @@
5252
"onvif": ["*.wsdl", "*.xsd", "*xml*", "envelope", "include", "addressing"],
5353
"onvif.wsdl": ["*.wsdl", "*.xsd", "*xml*", "envelope", "include", "addressing"],
5454
},
55-
entry_points={"console_scripts": ["onvif-cli = onvif.cli:main"]},
5655
)

0 commit comments

Comments
 (0)