Python Switchbot utilities
Project description
Switchbotpy
Python Switchbot Utilities using Switchbot API.
Getting start
Install from PyPI
pip install switchbotpy
Get token and secret,
- Download the SwitchBot app on App Store or Google Play Store
- Register a SwitchBot account and log in into your account
- Generate an Open Token within the app a) Go to Profile > Preference b) Tap App Version 10 times. Developer Options will show up c) Tap Developer Options d) Copy token and secret
create settings.json
file, and fill token and secret.
{
"token": "",
"secret": ""
}
Run example script.
python3 example/get_devicelist.py
Scripts makes deviceList.txt
.You can manipulate device using diviceId.
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
Built Distribution
Close
Hashes for switchbot_utility-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e47fcaf04da5ea4a07ede622517b9ac3582dd80785759cdad2bc37673719f1 |
|
MD5 | f74b921c3cf6c293966ce1b7a555d58f |
|
BLAKE2b-256 | 6832d28cf4be653d79ea1bf4ca360d99546d59336b132db770be5e46f65bef05 |