Skip to main content

Python bindings for the Tellprox API

Project description

This is a simple project that gives easy access to the tellprox API in Python. The Tellprox project, which can be used in place of Telldus Live, can be found here: https://github.com/p3tecracknell/tellprox

There is not much code, but after using this for a good while it seemed good to clean up a bit and push upstream.

Installation

pip install pytellprox

Usage

from tellprox import TellProx
tellprox_device_id=1
tellprox_host='localhost'
tellprox_port='8080'
tellprox = TellProx(host=tellprox_host, port=tellprox_port)
# if you need HTTPS you can pass protocol='https' as well
# enable/disable devices:
tellprox.enable_device(tellprox_device_id)
tellprox.toggle_device(tellprox_device_id)
# list devices
devices = tellprox.list_devices()
for device in devices:
    print(device['name'])
# get info for a device
device_info = tellprox.get_device(tellprox_device_id)
print(device_info['name'])
# list sensors
sensors = tellprox.list_sensors()
# get data from first sensor in list
sensor_data = tellprox.get_sensor(sensors[0]['id'])

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

pytellprox-0.6.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file pytellprox-0.6.tar.gz.

File metadata

  • Download URL: pytellprox-0.6.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for pytellprox-0.6.tar.gz
Algorithm Hash digest
SHA256 a8393a168a921d8e796071b73ac9a4506f0b98306816c710a6ae6eef74911e58
MD5 01cdb98f7271c47c6213a93ce9d9a67e
BLAKE2b-256 fca0daf1bd382ffd5b14feb40f3464b7c20cd868f89c4f92e67f2d6254925339

See more details on using hashes here.

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