Control Solight DY08 sockets
Project description
Python Solight DY08 library for Raspberry Pi
This library allows you to control Solight DY08 sockets from Raspberry Pi.
How to use it
Connect cheap 433 MHz transmitter to any GPIO pin (e.g. 17)
sudo apt-get install pigpio-python
sudo pigpiod
import time
import pigpio
from dy08 import DY08
pi = pigpio.pi()
dy08 = DY08(pi, 17)
while True:
dy08.send(42, 1)
time.sleep(1)
dy08.send(42, 0)
time.sleep(1)
...
Profit! :D
License
MITNFA
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
solight-dy08-1.0.0.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solight-dy08-1.0.0.tar.gz.
File metadata
- Download URL: solight-dy08-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a96ffb1c8a3047d3b74c418f742b8bc70652154abb8544d610ea00985caa6265
|
|
| MD5 |
267839f10f6580ca63e4ab3408ae0a06
|
|
| BLAKE2b-256 |
6dd7c2679cc7099f0bfdab801c9ba1309ee221ef0488aed55b40e65741652395
|
File details
Details for the file solight_dy08-1.0.0-py3-none-any.whl.
File metadata
- Download URL: solight_dy08-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0129edcbbcdccd92e2de8f23065f7485bf35867bde23cbafe9471b2423d79a66
|
|
| MD5 |
be05e95aa21aad9c7f819e0db605defd
|
|
| BLAKE2b-256 |
409b571ed3563d74542a901bf63ee3de989e8f82ce443549d3f200c66b228816
|