Skip to main content

Pynumato

Pynumato allows to control relay modules (ON or OFF states). This module is only compatible with the Numato series 1-2-4-8 Channels USB Solid State Relay Module, listed in the following link : <https://numato.com/?s=Channel+USB+Solid+State+Relay+Module>.

Requirement

The module requires the minimum configuration :

  • Windows7 64-bits
  • Linux 64-bits
  • Python3.7

How to use it

The command line to drive relays are :

python3 -m pynumato.pynumato --cmd=<string to drive relays> --relays=<Number of relays> --port=<port> --baudrate=<baudrate>

Parameters are :

  • the number of relays to drive (default is 1)

  • the port (default is /dev/ttyUSB1)

  • the baudrate (default is 921600)

  • the command to drive relays

A relay can receive two types of orders (OFF or ON). The order in the module is encoding by an ASCII character such as :

"c" : close the relay (OFF state)

"o" : open the relay (ON state)

"x" : do not change the current state of the relay

In an example, if we have :

  • 4 available relays : 0, 1, 2 and 3
  • baudrate is 921600
  • port is COM27

To turn on all relays, string command is oooo and the command line is :

python3 -m pynumato.pynumato --cmd="oooo" --relays=2 --port="COM27" --baudrate=921600

To turn off all relays, string command is cccc and the command line is :

python3 -m pynumato.pynumato --cmd="cccc" --relays=2 --port="COM27" --baudrate=921600

To turn on the relay 0, and it does not matter about other ones, string command is oxxx and the command line is :

python3 -m pynumato.pynumato --cmd="oxxx" --relays=2 --port="COM27" --baudrate=921600

To turn on the relays 1 and 3, and it does not matter about other ones, string command is xoxoand the command line is :

python3 -m pynumato.pynumato --cmd="xoxo" --relays=2 --port="COM27" --baudrate=921600

Metadata

Release files for pynumato 0.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 pynumato 0.0.1
File Size Uploaded Provenance Actions
pynumato-0.0.1.tar.gz 3.9 kB Without provenance Details for pynumato-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynumato 0.0.1
File Interpreter ABI Platform Actions
pynumato-0.0.1-py3-none-any.whl Python 3 none any Details for pynumato-0.0.1-py3-none-any.whl

Total release size: 7.4 kB

Release files / pynumato-0.0.1.tar.gz

Download URL pynumato-0.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
44ea980814d236cadbe4bf7f5a859171a8a859e1950b10e80241b6dfabd7eabc
BLAKE2b-256 checksum
How to use checksums
5513d1a800caf21739ec1b214cc5209aab2c661c096f3d18ea86c1e3b3be0519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

Release files / pynumato-0.0.1-py3-none-any.whl

Download URL pynumato-0.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2746c6fb96d512e8cf382a5d0d80efe6f1f559bf43c1429676596c8cc1ce86fa
BLAKE2b-256 checksum
How to use checksums
56c261f566b0dce62761e0fe9c567b3eb41f57e7ace8e2835e6e23a45d58d77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

Security for pynumato 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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