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.
  • 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

pyspcwebgw-0.5.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

pyspcwebgw-0.5.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspcwebgw-0.5.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for pyspcwebgw-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a632ad69aba63c8307b2f24c281ef2e07ffccf910fc6ed723543c098a83db042
MD5 02dc151ecb6477ac65021d1b39a7ed47
BLAKE2b-256 f1c85bed2ec19256cb9be848c6bbfc00962935977d20217b81a59667f51ee0a7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspcwebgw-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for pyspcwebgw-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 619063b6c8ff1382eebf52067c4603fcc86b57ff27c4991e7fbbb3c0f49a4e5e
MD5 2f1cc8ee079efb76f83bbe8264d4b390
BLAKE2b-256 10210d6d2c4fecefb5d91d0e5d983a94eb5f3849e834627bd5c6566988d1f6f7

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