Skip to content

weeve-modules/serial-input

Folders and files

NameName
Last commit message
Last commit date
Mar 6, 2023
Sep 9, 2022
Aug 24, 2022
Mar 14, 2023
Jun 29, 2022
Aug 9, 2022
Aug 2, 2022
Sep 9, 2022
Mar 14, 2023
Mar 14, 2023
Sep 8, 2022
Sep 9, 2022
Sep 9, 2022
Aug 2, 2022

Repository files navigation

Serial Input

name Serial Input
version v1.0.1
docker image weevenetwork/serial-input
tags Python, Flask, Docker, Weeve
authors Ghassen Barbouchi

Table of Content


Description

This module reads data input from specified serial interface.

Features

  1. Open serial of a host machine
  2. Read received serial data
  3. Forward received serial data

Environment Variables

Module Specific

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.

Set by the weeve Agent on the edge-node

Environment Variables type Description
EGRESS_URL string HTTP ReST endpoint for the next module
MODULE_NAME string Name of the module

Dependencies

requests==2.27.1
pyserial==3.5

RECOMMENDED: Make sure you have virtual environment