name | Serial Input |
version | v1.0.1 |
docker image | weevenetwork/serial-input |
tags | Python, Flask, Docker, Weeve |
authors | Ghassen Barbouchi |
This module reads data input from specified serial interface.
- Open serial of a host machine
- Read received serial data
- Forward received serial data
The following module configurations can be provided in a data service designer section on weeve platform:
Name | Environment Variables | Type | Description | Mandathory/Option |
---|---|---|---|---|
Serial Port | PORT | string | eg: /dev/ttyUSB0 | Mandathory |
Serial Baud_Rate | BAUD_RATE | integer | The data baud rate | Mandathory |
Number of data bits | DATA_BITS | string | Port number for tbe broker | Option |
Parity | PARITY | string | Enable parity checking | Option |
Stop bits | STOP_BITS | string | Number of stop bits | Option |
Other features required for establishing the inter-container communication between modules in a data service are set by weeve agent.
Environment Variables | type | Description |
---|---|---|
EGRESS_URL | string | HTTP ReST endpoint for the next module |
MODULE_NAME | string | Name of the module |
requests==2.27.1
pyserial==3.5
RECOMMENDED: Make sure you have virtual environment