Python control for Zengge Wi-Fi LED bulbs
Example usage
Connecting
import zenggewifi
bulb = zenggewifi.ZenggeWifiBulb('192.168.1.20')
bulb.connect()
Get State
state = bulb.get_status()
Returns a status object which contains of these members:
state.deviceType # Type of device
state.isOn # whether device is on
state.Mode # current mode
state.Slowness # current slowness
state.Color # current color, color object
state.LedVersionNum # version of LED
Set Color
bulb.set_on(color)
Color object has these members:
self.R # Red value [0-255]
self.G # Green value [0-255]
self.B # Blue value [0-255]
self.W # Warmwhite value [0-255]
self.IgnoreW # Whether warmwhite is ignored (then RGB is used) or not (then only warmwhite is used)
Turn off
bulb.set_off()
Metadata
Release files for zenggewifi 0.0.3
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 |
|---|---|---|---|---|
| zenggewifi-0.0.3.tar.gz | 2.7 kB | Without provenance | Details for zenggewifi-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenggewifi-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for zenggewifi-0.0.3-py3-none-any.whl |
Total release size: 17.9 kB
Release files / zenggewifi-0.0.3.tar.gz
| Download URL | zenggewifi-0.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
034543fb617e5689660a8730ff40542c4a80e35c0f3cb83f38339f6d09590a3c
|
|
BLAKE2b-256 checksum How to use checksums |
34ad94ee0d7c160c4da9a94484d0e47f66abe6cdc97fdcbd03978d224bbc66f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / zenggewifi-0.0.3-py3-none-any.whl
| Download URL | zenggewifi-0.0.3-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b731010479627302caa842460a23d421ac823c4943e2d59a7706fb5d471dd578
|
|
BLAKE2b-256 checksum How to use checksums |
d1be1c98353967ed4db00b515afb6154247c47a680a321c0c140adfec71ebd92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for zenggewifi 0.0.3
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.