Library and commandline tool to control Conrad relay cards.
Project description
Control Conrad relaycard via python
https://www.conrad.com/p/conrad-components-197720-relay-card-component-12-v-dc-24-v-dc-197720
Usage
from conrad_relaycard import Relaycard
rly = Relaycard()
rly.setup()
rly.get_port(1, 1)
rly.set_port(1, 1, True)
via CLI
usage: conrad-relaycard [-h] [-v] [-q] [-i INTERFACE] [-a ADDRESS] [-p PORT] [--scan] [--get-ports] [--set-ports STATE] [--toggle-ports]
options:
-h, --help show this help message and exit
-v, --verbose Output verbosity
-q, --quiet Minimized output (allow easier parsing)
-i INTERFACE, --interface INTERFACE
Serial interface to use
-a ADDRESS, --address ADDRESS
Relaycard address (not needed for --scan)
-p PORT, --port PORT Ports to get/set (only for some commands)
--scan Scan for relay cards
--get-ports Get port states on relay card
--set-ports STATE Set port states on relay card <on/off>
--toggle-ports Toggle port states on relay card
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
conrad_relaycard-0.2.tar.gz
(9.7 kB
view details)
File details
Details for the file conrad_relaycard-0.2.tar.gz
.
File metadata
- Download URL: conrad_relaycard-0.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1661105309206e83342667aac33fc2a74598840db7d314f04a3c7613631f3b |
|
MD5 | 04969402c0b1bccab0685afeaaf11302 |
|
BLAKE2b-256 | 7344b21d39826f07b256bb6d7a70a3d2a634615c8fc4072b854d6e587e801ad2 |