UNPKG
onvif-ptz-cli
Version:
latest (2.0.0)
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
0.6.0
Node.js cli tool for controlling PTZ cameras via the ONVIF protocol.
onvif-ptz-cli
/
lib
/
onvif
/
utils.js
10 lines
(7 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
_
from
"lodash"
;
export
function
getProfileToken
(
device
) {
return
device.
getCurrentProfile
().
token
; }
export
function
getData
(
path
) {
return
(
response
) =>
(path ? _.
get
(response.
data
, path) : response.
data
); }