Skip to main content

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.

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

pyspcwebgw-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

pyspcwebgw-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pyspcwebgw-0.1.0.tar.gz.

File metadata

  • Download URL: pyspcwebgw-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 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

Hashes for pyspcwebgw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e3003b65f4a0f52415899fecf102dc23bbcb9a3ae3eba80b6dea75b8a0e94e1
MD5 db64253d122fd3b393f0343067b5ee39
BLAKE2b-256 b0d0f865dcbb53f26d523713c94bee4bf2604b985c325f99327472645480e37c

See more details on using hashes here.

Provenance

File details

Details for the file pyspcwebgw-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyspcwebgw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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

Hashes for pyspcwebgw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a609a2b320decf3a65c0cb956e23e15c90f515511e52d58d4b51c8eca5fbb13
MD5 96f1f31ce61d42ee022700adbef7bf71
BLAKE2b-256 c07cf402f03e739b46c2425f100a1058265fa1c29653effd8dbb549595b59b99

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page