A Netwave IP camera API
Project description
Netwave Camera
This is a small package for controlling Netwave type IP cameras. This was created by reverse engineering the web interface for an Airsight XC36A IP camera, but should work for a wide range of devices. The camera identifies itself as a Netwave device in HTTP requests, but mentions Pelco dome cameras in JavaScript, so it can be assumed that the use of the firmware is widespread. This does not intend to replace the admin dashboard, so configuring the network and user settings needs to be done from the original dashboard. All of the functionality of the main video streaming dashboard is recreated in this API.
Features
- Pan tilt functionality
- Brightness and contrast adjustment
- Resolution and refresh rate configuration
- IO enabling and disabling for X10/Alarm functionality
- Horizontal and vertical patrolling control
- Preset location setting and recalling with 15 slots
- Auto-centering
Installation
pip install netwave-camera
CLI Usage
All commands and parameters are accessible from the CLI program
# Set brightness from command line (integer from 0 to 15)
python3 netwave http://url:port/ --user=admin password set brightness 10
# Enable vertical patrolling
python3 netwave http://url:port/ --user=admin password command patrol_vertical
# View general help info
python3 netwave -h
# View all commands
python3 netwave http://url:port/ password command -h
Python Usage
from netwave import NetwaveCamera
# Create camera object
cam = NetwaveCamera('http://url:port/', 'username', 'password', timeout=5)
# Update local camera object with IP camera data
cam.update_full()
# Turn left for ~2 seconds
import time
cam.move_left()
time.sleep(2)
cam.stop_movement()
Documentation
The pydoc API documentaion is availible in the media directory along with the reverse engineering notes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netwave-camera-0.0.1.tar.gz.
File metadata
- Download URL: netwave-camera-0.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35fa09e46f1a3ec99f1a3fdd0e0687b581626f7fbbe8ac797c423e94c67ae7e1
|
|
| MD5 |
31eae4cc43a2001b2a70f775c4545211
|
|
| BLAKE2b-256 |
5047ac04ff8aedd391375c759f6532123b703611ac84cc159b4a311a2d085b24
|
File details
Details for the file netwave_camera-0.0.1-py3-none-any.whl.
File metadata
- Download URL: netwave_camera-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6acee8092578e4ae894701e7b57f55bc141568057f3d1a63faa0ad37385f0cdd
|
|
| MD5 |
f024dbf622772e779c00066e4ad0a3c7
|
|
| BLAKE2b-256 |
d828685ca8a57e75a3b909499d199c18fff6095e151480816985b5e25698dde6
|