Python library for interfacing with opple mobile control light
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyoppleio-1.0.6.tar.gz
(9.1 kB
view details)
File details
Details for the file pyoppleio-1.0.6.tar.gz.
File metadata
- Download URL: pyoppleio-1.0.6.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abffee27eda6f52d2bf89b1ae44c9ef74612c3870acddd38bcf1cc9bcf63f248
|
|
| MD5 |
7f79d83a484f26452c2e8026266563e6
|
|
| BLAKE2b-256 |
aac5218bc675a201e810d0319f06305d1e7de96ed94e294f8991565f8afafafe
|