Network Pipe Manufacturer

    node-red-contrib-ptzoptics

    1.0.1 • Public • Published

    node-red-contrib-ptzoptics

    TCP Control for PTZ Optics cameras via Node Red Tested Using the PT20X

    Required MSG Object

    msg.payload.mode*

    The mode to be sent to the camera, look below for supported modes

    msg.payload.action*

    The action to be sent to the camera under the mode

    msg.payload.value*

    If the command requires a value these will be passed here as an array of hex. Example: msg.payload.value = [0x01] will select preset 1 if passed to the memory recall function (* = required)

    List of Supported Commands

    msg.payload.mode = "zoom"

    • msg.payload.action = "stop"
    • msg.payload.action = "teleStandard"
    • msg.payload.action = "wideStandard"
    • msg.payload.action = "teleVariable"
    • msg.payload.action = "wideVariable"
    • msg.payload.action = "direct"*

    msg.payload.mode = "focus"

    • msg.payload.action = "stop"
    • msg.payload.action = "farStandard"
    • msg.payload.action = "nearStandard"
    • msg.payload.action = "farVariable"
    • msg.payload.action = "nearVariable"
    • msg.payload.action = "autoFocus"
    • msg.payload.action = "manualFocus"
    • msg.payload.action = "autoManual"
    • msg.payload.action = "direct"*

    msg.payload.mode = "panTilt"

    • msg.payload.action = "up"*
    • msg.payload.action = "down"*
    • msg.payload.action = "left"*
    • msg.payload.action = "right"*
    • msg.payload.action = "upLeft"*
    • msg.payload.action = "upRight"*
    • msg.payload.action = "downLeft"*
    • msg.payload.action = "downRight"*
    • msg.payload.action = "stop"*
    • msg.payload.action = "absolutePosition"*
    • msg.payload.action = "relativePosition"*
    • msg.payload.action = "home"

    msg.payload.mode = "memory"

    • msg.payload.action = "reset"*
    • msg.payload.action = "set"*
    • msg.payload.action = "recall"* (* = requires a msg.payload.value to be passed. Look at the offical documentation)

    Example

    This will recall memory 1

    return {
        "payload": {
            "mode": "memory",
            "action": "recall",
            "value": new Buffer([0])
        }
    }
    

    More Commands Avaliable in The Documentation->

    Install

    npm i node-red-contrib-ptzoptics

    DownloadsWeekly Downloads

    7

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    181 kB

    Total Files

    12

    Last publish

    Collaborators

    • haydendonald