Python API for Swidget smart devices
Project description
python-swidget
A library to manage Swidget smart devices
Basic Usage
Connect to the device using http/ https
dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=False)
dev.update()
dev.turn_on()
dev.close()
Connect to the device using websockets
dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=True)
dev.start()
dev.update()
dev.turn_on()
dev.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_swidget-1.2.4.tar.gz
(15.9 kB
view details)
Built Distribution
File details
Details for the file python_swidget-1.2.4.tar.gz
.
File metadata
- Download URL: python_swidget-1.2.4.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9fcfc7eba1c16bc2d4688fb680c3ac7965b9e3fdc3fd66bcd9f947913d96920 |
|
MD5 | a49d2ce2b4522a55fe636c632c166803 |
|
BLAKE2b-256 | 7b908827805e1e185e75d5d5a91a71f365bf6725f1ddb1fae9c87d6ae3e29516 |
File details
Details for the file python_swidget-1.2.4-py3-none-any.whl
.
File metadata
- Download URL: python_swidget-1.2.4-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc354c44fa55405c5d4e0b71781f25d5fb25f08813828f99017b7e3da6e2e06 |
|
MD5 | 1e2d7f5a06c76d8553a9f32931a509e7 |
|
BLAKE2b-256 | a66da6684c8923854eacb1f9b30ff7cb48e716c979b37e42a1b3053b34e31785 |