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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solight_dy08-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for solight-dy08-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a96ffb1c8a3047d3b74c418f742b8bc70652154abb8544d610ea00985caa6265
MD5 267839f10f6580ca63e4ab3408ae0a06
BLAKE2b-256 6dd7c2679cc7099f0bfdab801c9ba1309ee221ef0488aed55b40e65741652395

See more details on using hashes here.

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

Hashes for solight_dy08-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0129edcbbcdccd92e2de8f23065f7485bf35867bde23cbafe9471b2423d79a66
MD5 be05e95aa21aad9c7f819e0db605defd
BLAKE2b-256 409b571ed3563d74542a901bf63ee3de989e8f82ce443549d3f200c66b228816

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page