Metadata-Version: 2.1
Name: switchbot_utility
Version: 0.0.1
Summary: Python Switchbot utilities
Project-URL: Homepage, https://github.com/iCarrot0605/Switchbotpy
Project-URL: Bug Tracker, https://github.com/iCarrot0605/Switchbotpy/issues
Author-email: MATSUMURA Hidetoshi <icarrot@mac.com>
License-File: LICENSE
Keywords: IoT,Switchbot,Switchbot API
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Requires-Dist: requests
Description-Content-Type: text/markdown

# Switchbotpy

Python Switchbot Utilities using Switchbot API.

## Getting start

Install from PyPI

```python
pip install switchbotpy
```

Get token and secret,

1. Download the SwitchBot app on App Store or Google Play Store
2. Register a SwitchBot account and log in into your account
3. 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.

```python
{
    "token": "",
    "secret": ""
}
```

Run example script.

```python
python3 example/get_devicelist.py
```

Scripts makes `deviceList.txt`.You can manipulate device using diviceId.
