UNPKG

onvif-ptz-cli

Version:

Node.js cli tool for controlling PTZ cameras via the ONVIF protocol.

10 lines (7 loc) 223 B
import _ from "lodash"; export function getProfileToken(device) { return device.getCurrentProfile().token; } export function getData(path) { return (response) => (path ? _.get(response.data, path) : response.data); }