A Python library for communicating with SPC Web Gateway.
Project description
Python library for communicating with Vanderbilt SPC alarm systems via the REST/websocket API provided by the SPC Web Gateway software made by Lundix IT. Using this library you can:
- Retrieve information for all alarm areas and zones.
- Change the alarm mode, i.e. arming and disarming of the alarm system.
- Get real-time updates when attributes of areas and zones change, e.g. if motion detector connected to the systems triggers or when the alarm goes off.
Usage
Library
To use the library in your own application see the example file.
Stand-alone
When installing the package an interactive test shell is automatically installed. To run it:
spcwebgw-console <API url> <WS url>
Where <API url>
is the url of the SPC Web Gateway API and <WS url>
is the url of the SPC Web Gateway websocket endpoint.
Examples of available commands in the test shell:
areas
. List all available areas.zones
. List all available zones or only zones in a specific area.full_set
. Full set an area.part_set_x
. Part set x an area.unset
. Unset an area.debug
. Toggle debug output.
Project details
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
File details
Details for the file pyspcwebgw-0.4.0.tar.gz
.
File metadata
- Download URL: pyspcwebgw-0.4.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d085fb52c51495fd09f7ef3867012e319763027c7836a9cfbc72628e7772cc6 |
|
MD5 | 4ec43580b124dd4cf4c5e5d5fb6b15ac |
|
BLAKE2b-256 | d7628846e9f773bbec2191cd3c822eeceeb1a9ba771825afe7ab42c30bab1efb |
Provenance
File details
Details for the file pyspcwebgw-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pyspcwebgw-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f47857e287624091b3475cf6936a9184ab1e64494ea4e4c90b23da79e7ee1c7 |
|
MD5 | 2b7d4d81eff3a815aae8d70762201856 |
|
BLAKE2b-256 | 148cdbd14c42466001b36c03093bad32fb452ceb0095ad49e37ffa9146fe1bd6 |