Python module to control the Energenie add-on board for the Raspberry Pi used for remotely turning power sockets on and off.
Project description
# Energenie Demo
Python module to control the [Energenie](https://energenie4u.co.uk/) add-on board for the [Raspberry Pi](http://www.raspberrypi.org/) used for remotely turning power sockets on and off.
## Usage
```python
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)
```
## Contributors
- [Amy Mather](https://github.com/minigirlgeek)
- [Ben Nuttall](https://github.com/bennuttall)
- [Gordon Hollingworth](https://github.com/ghollingworth)
Python module to control the [Energenie](https://energenie4u.co.uk/) add-on board for the [Raspberry Pi](http://www.raspberrypi.org/) used for remotely turning power sockets on and off.
## Usage
```python
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)
```
## Contributors
- [Amy Mather](https://github.com/minigirlgeek)
- [Ben Nuttall](https://github.com/bennuttall)
- [Gordon Hollingworth](https://github.com/ghollingworth)
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.3.tar.gz
(1.9 kB
view details)
File details
Details for the file energenie-0.1.3.tar.gz
.
File metadata
- Download URL: energenie-0.1.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6845737d38b538ea3d684607fb2e71783b83789b8625bd64e267a677e0126f14 |
|
MD5 | 50e763fe08cab108b1fcf89c59bba7e8 |
|
BLAKE2b-256 | c72840c128cf3e00fcf92be447fa543103e1ca5648f24075c9f543941c22acd9 |