Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for solight-dy08, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size solight_dy08-1.0.0-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size solight-dy08-1.0.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page