Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Python module to control the Energenie add-on board for the Raspberry Pi used for remotely turning power sockets on and off.

Installation

On Raspberry Pi, install the energenie module in pip.

Python 3:

sudo apt-get install python3-pip
sudo pip-3.2 install energenie

Python 2:

sudo apt-get install python-pip
sudo pip install energenie

Usage

Example usage:

from energenie import switch_on, switch_off
from time import sleep

# turn all plug sockets on and off
switch_on()
switch_off()

# turn a plug socket on and off by number
switch_on(1)
switch_off(1)

switch_on(3)
switch_off(3)

# 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)

Contributors

Open Source

Release files for energenie 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for energenie 1.0.1
File Size Uploaded
energenie-1.0.1.tar.gz 47.7 kB Details

Release files / energenie-1.0.1.tar.gz

Download URL energenie-1.0.1.tar.gz
Size 47.7 kB
Tags Source
SHA-256 checksum
How to use checksums
175593737b274e14ed47443558b36418848bc6e2ea206e3c7ff7adece4a56dcf
BLAKE2b-256 checksum
How to use checksums
b9206ce446d5f529433f5469c4af8cfacc93bcae84fbece048def594669238e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page