Python module to control the Energenie add-on board for the Raspberry Pi used for remotely turning power sockets on and off.
Project description
This module provides simple control of Energenie power sockets directly from Python.
Example usage::
from energenie import switch_on, switch_off from time import sleep # turn a plug socket on and off by number switch_on(1) switch_off(1) switch_on(3) switch_off(3) # turn all plug sockets on and off switch_on(0) switch_off(0) # turn some plug sockets on, then turn them off after 10 seconds switch_on(1) switch_on(4) sleep(10) switch_off(1) switch_off(4)
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
energenie-0.1.6.tar.gz
(2.1 kB
view details)
File details
Details for the file energenie-0.1.6.tar.gz
.
File metadata
- Download URL: energenie-0.1.6.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c805d707e4e953abe5664fc631d2ea0a23c8adac6de48d6d8ce74e4ccad5400 |
|
MD5 | e80e3920854f521a72fcc0fff17f375a |
|
BLAKE2b-256 | 7f1db6c2d92c4cb0b140a14bec3d218c7ac04b17b0fb84f41d46abe621f7f53c |