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 hashes)