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 hashes)
Built Distribution
Close
Hashes for solight_dy08-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0129edcbbcdccd92e2de8f23065f7485bf35867bde23cbafe9471b2423d79a66 |
|
MD5 | be05e95aa21aad9c7f819e0db605defd |
|
BLAKE2b-256 | 409b571ed3563d74542a901bf63ee3de989e8f82ce443549d3f200c66b228816 |