This library (and its accompanying cli tool) is used to interface with opple mobile-control lights.
Supported Devices
All opple light with WIFI support (mobile control)
Install
pip install pyoppleio
API Reference
class OppleLightDevice
property:
- is_onlinee [True|False] Readonly
- power_on [True|False] Read/Write
- brightness [10-255] Read/Write
- color_temperature [2700-6500] Read/Write
method:
- init(ip)
- update()
Demo:
from pyoppleio.OppleLightDevice import OppleLightDevice
light = OppleLightDevice('192.168.0.222')
if not light.is_online:
print('light is offline')
elif not light.power_on:
light.power_on = True
else:
light.brightness = 255
CLI Command
- search lights
oppleio search - get one light's status
oppleio get -a [light ip address]
- turn on of turn off one light
oppleio set -a [device ip address] -p on oppleio set -a [device ip address] -p off
- set light's brightness and color temperature
oppleio set -a [device ip address] -b 200 -c 4200
Metadata
Release files for pyoppleio 1.0.7
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 |
|---|---|---|---|---|
| pyoppleio-1.0.7.tar.gz | 9.8 kB | Without provenance | Details for pyoppleio-1.0.7.tar.gz |
Release files / pyoppleio-1.0.7.tar.gz
| Download URL | pyoppleio-1.0.7.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b5c37a4faa15fdd379245d4abd00bcf4fb346f3463a298bba08514552a357c1
|
|
BLAKE2b-256 checksum How to use checksums |
8c91ab70f1c73c7912ebd583feb5d5f8ca4f839919a416f2171e2aad2e23606c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6
|
Security for pyoppleio 1.0.7
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.