Skip to main content

Python library for accessing SensorLinx Device Data

Project description

pysensorlinx

pysensorlinx is a Python library for accessing Sensor Linx sensor data directly from their webservice. It supports logging into the service, retrieving sites list, and setting and getting device data used to control devices such as heat pumps, etc.

Features

  • Login to sensor linx account
  • retrieve the user profile
  • get the list of buildings
  • get the list of devices
  • get and set device parameters for a specific device

Install this repo

Clone the repository and install in editable mode:

git clone https://github.com/your_username/pysensorlinx.git
cd pysensorlinx

Create and activate a virtual environment

On Windows:

python -m venv .venv
.venv\Scripts\activate

On macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate

Once the virtual environment is activated, install the package in editable mode:

pip install -e .

Install from pypi.org

pip install pysensorlinx

Usage

from pysensorlinx import Omnisense

async def main():
    sensorlinx = Sensorlinx()
    # Login with your credentials
    await sensorlinx.login("your_username", "your_password")
    

    
    # When done, close the session
    await sensorlinx.close()

import asyncio
asyncio.run(main())

Replace "your_username" and "your_password" with your actual Sensorlinx credentials. For more details, refer to the documentation or explore the source code.

Testing

Tests are written using pytest and pytest-asyncio. You can run tests as follows:

pip install -e .[tests]

pytest

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

pysensorlinx-0.1.2.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysensorlinx-0.1.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file pysensorlinx-0.1.2.tar.gz.

File metadata

  • Download URL: pysensorlinx-0.1.2.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysensorlinx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 db72c771d37d749eda980ce7c07b293d1eaaa98dfe3f2ecec3c215d7ed52953d
MD5 35a31d488f5ff0d98678f7c5d4ded60b
BLAKE2b-256 eca11ee8d707ea8d29149a82ee7bc38c4752fb04ed43af63ae8f0b1e355975ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysensorlinx-0.1.2.tar.gz:

Publisher: publish_to_pypi.yml on sslivins/pysensorlinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysensorlinx-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pysensorlinx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysensorlinx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb2d783a9a5c90b78bcbe7044751245bc202ea823d2db592dd7c8746151214b6
MD5 4e5352eb9751e50c120cced622485092
BLAKE2b-256 99011da3508676ca21778d1cc5528bcb9fbdf3947c900d7b7edf4bb6ed3d349f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysensorlinx-0.1.2-py3-none-any.whl:

Publisher: publish_to_pypi.yml on sslivins/pysensorlinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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