A CLI for controlling floodlight devices using the TinyTuya library.
Project description
Floodlights CLI
Floodlights CLI is a command-line interface tool for controlling floodlight devices using the TinyTuya library. It provides an easy way to turn floodlights on and off, set brightness levels, and query the status of the device.
Features
- Turn floodlights on and off with simple commands.
- Set brightness levels for the floodlights.
- Query the current status of the floodlights.
- Utilizes a configuration file for device configuration. If the
config.ini
file is missing, the script will prompt you to create one.
Installation
You can install Floodlights CLI using pip:
pip install floodlights
Configuration
Set up the required configuration in a `config.ini` file:
[Floodlight]
DEVICE_ID=your_device_id
DEVICE_IP=your_device_ip
DEVICE_KEY=your_device_key
DEVICE_VERSION=your_device_version
Usage
Turn On Floodlights
floodlights on --brightness 1000
Turn Off Floodlights
floodlights off
Get Floodlights Status
floodlights status
Dependencies
- tinytuya
- click
- logging
- configparser
- json
Contributing
If you would like to contribute to this project, please feel free to submit a pull request or open an issue.
License
Please refer to the LICENSE file for information on the license governing this project.
Contact
For any questions or support, please contact the maintainer at dddanmar@gmail.com, CEO of OnlyDans.
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
Hashes for floodlights-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fedfcb3111d266eb980d22e8157768a23a4969c9c4b4570cd85699038f3fc8 |
|
MD5 | 85339c5c4271de4aedb9650ad6b5d0e3 |
|
BLAKE2b-256 | 27137047976c82cb7fd7a6320437552d8c1b6cfee312391e69444883ae56c443 |