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.inifile 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.
Metadata
Release files for floodlights 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| floodlights-0.2.tar.gz | 2.2 kB | Without provenance | Details for floodlights-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| floodlights-0.2-py3-none-any.whl | Python 3 | none | any | Details for floodlights-0.2-py3-none-any.whl |
Total release size: 4.3 kB
Release files / floodlights-0.2.tar.gz
| Download URL | floodlights-0.2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f711e08d7d43a028790fc5b836b4a30046a6ee50949da37b5a6b0156ac00d13b
|
|
BLAKE2b-256 checksum How to use checksums |
775704edafa50be8eba81d5499486ea25928073b68b75c1c3a7893b2928778fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / floodlights-0.2-py3-none-any.whl
| Download URL | floodlights-0.2-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2fedfcb3111d266eb980d22e8157768a23a4969c9c4b4570cd85699038f3fc8
|
|
BLAKE2b-256 checksum How to use checksums |
27137047976c82cb7fd7a6320437552d8c1b6cfee312391e69444883ae56c443
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for floodlights 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.