Giter VIP home page Giter VIP logo

panasonic-camera-controller's Introduction

panasonic-camera-controller

Node.js library to control Panasonic camera's like the AW-HE50S PT Camera

Data protocol

There are 2 kinds of commands: camera commands and P/T commands. Camera commands can be used to change things related camera settings (auto focus, brightness, ...) whereas P/T commands are used to pan and tilt the camera.

P/T commands

P/T commands are called using

http://[ip]/cgi-bin/aw_ptz?cmd=[PT Command]&res=[Response Type]

[PT Command] are described from page 6 to page 31 in the protocol speficications.

[Response Type] can be 0 or 1. Giving you a HTTP response or not.

Camera commands

http://[ip]/cgi-bin/aw_cam?cmd=[Camera Command]&res=[Response Type]

[Camera Command] are described from page 32 to page 37 in the protocol speficications.

[Response Type] can be 0 or 1. Giving you a HTTP response or not.

Sniffed data

Presets

Set preset 4:

/cgi-bin/aw_ptz?cmd=#M04&res=1

Move to preset 4:

/cgi-bin/aw_ptz?cmd=#R04&res=1

Panning

Pan right:

 /cgi-bin/aw_ptz?cmd=#P99&res=1

Pan left:

/cgi-bin/aw_ptz?cmd=#P01&res=1

Stop panning:

/cgi-bin/aw_ptz?cmd=#P50&res=1

Tilting

Tilt up:

/cgi-bin/aw_ptz?cmd=#T99&res=1

Tilt down:

/cgi-bin/aw_ptz?cmd=#T01&res=1

Stop tilting:

/cgi-bin/aw_ptz?cmd=#T50&res=1

Panning and tilting togheter

Pan/tilt upper left:

/cgi-bin/aw_ptz?cmd=#PTS0199&res=1

Pan/tilt upper right:

/cgi-bin/aw_ptz?cmd=#PTS9999&res=1

Pan/tilt lower left:

/cgi-bin/aw_ptz?cmd=#PTS0101&res=1

Pan/tilt lower right:

/cgi-bin/aw_ptz?cmd=#PTS9901&res=1

Stop panning and tilting:

/cgi-bin/aw_ptz?cmd=#PTS5050&res=1

Absolute panning and tilting

/cgi-bin/aw_ptz?cmd=#APC00000000&res=1

first 2 bytes: panning (horizontal, -175 to +175 degrees, specs)

last 2 bytes: tilting (vertical, -30 to 90 degrees, specs)

/cgi-bin/aw_ptz?cmd=#APCFFFF0000&res=1

/cgi-bin/aw_ptz?cmd=#APC0000FFFF&res=1

Zooming

Zoom in:

/cgi-bin/aw_ptz?cmd=#Z99&res=1

Zoom out:

/cgi-bin/aw_ptz?cmd=#Z01&res=1

Stop zooming:

/cgi-bin/aw_ptz?cmd=#Z50&res=1

Reset zoom:

/cgi-bin/aw_ptz?cmd=#AXZ555&res=1

Iris

Auto Iris off:

/cgi-bin/aw_cam?cmd=ORS:0&res=1

Auto Iris on:

/cgi-bin/aw_cam?cmd=ORS:1&res=1

Focus

Auto Focus on:

/cgi-bin/aw_ptz?cmd=#D10&res=1

Auto Focus off:

/cgi-bin/aw_ptz?cmd=#D11&res=1

Push Auto Focus:

/cgi-bin/aw_cam?cmd=OSE:69:1&res=1

Brightness

Set Manual Brightness:

/cgi-bin/aw_ptz?cmd=#D30&res=1
/cgi-bin/aw_cam?cmd=LIS:7&res=1

Set Auto Brightness:

/cgi-bin/aw_ptz?cmd=#D31&res=1

Strange things

Set callback route:

/cgi-bin/event?connect=start&my_port=35201&UID=50

Unknown:

/cgi-bin/man_session?command=get

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.