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.1.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for conrad_relaycard-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c40d74da4a95f0b856f1ad8b1314fd1ee768fd2f49f1e81516e20f096bd79b40 |
|
MD5 | 3e35290e03c62e90fa5d10029ea24eb3 |
|
BLAKE2b-256 | 9249dabf5fee6a0ef8f94d867782b96d0c0016bd293d26e6caed610642c43f9b |