Skip to main content

weighbridge-simulator

license status build version python

A command line tool continuously send data to a serial port to simulate weighbridge communicating.

Install

You can install this tool by the following methods:

  1. Install weighbridge-simulator by pip:

    pip install git+ssh://git@github.com/garrett-he/weighbridge-simulator.git
    
  2. Download compiled binary files from Repository Releases.

Quickstart

  1. Prepare a file contains weight list in format:

    000.000
    000.020
    000.160
    000.420
    000.780
    005.660
    005.800
    006.040
    006.120
    006.100
    006.080
    ...
    
  2. Run wb-simulator to start simulation:

    wb-simulator --data-file FILE
    

Then you can receive the weight values from the created port /dev/pts/N in * raw* data format.

weighbridge-simulator will convert the input data into raw weighbridge format before sending it to a serial port, like:

012.345 will be converted to 543.210=

Usage

Usage: wb-simulator [OPTIONS]

  A command line tool continuously send data to a serial port to simulate
  weighbridge communicating.

Options:
  -p, --port NAME       Name of serial port.
  -d, --data-file PATH  Path of data file.  [required]
  -l, --loops N         Loops of sending data set, zero means endless.
  -i, --interval SECS   Interval of each data.
  --version             Show the version and exit.
  --help                Show this message and exit.

License

Copyright (C) 2023 Garrett HE garrett.he@hotmail.com

The BSD 3-Clause License, see LICENSE.

Metadata

Release files for weighbridge-simulator 0.3.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 weighbridge-simulator 0.3.1
File Size Uploaded Provenance Actions
weighbridge_simulator-0.3.1.tar.gz 3.7 kB Without provenance Details for weighbridge_simulator-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weighbridge-simulator 0.3.1
File Interpreter ABI Platform Actions
weighbridge_simulator-0.3.1-py3-none-any.whl Python 3 none any Details for weighbridge_simulator-0.3.1-py3-none-any.whl

Total release size: 8.4 kB

Release files / weighbridge_simulator-0.3.1.tar.gz

Download URL weighbridge_simulator-0.3.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a318b48a9adccc122409ccea85650cf0b14882db0583ad153a568dec05de662a
BLAKE2b-256 checksum
How to use checksums
cf87bb987694e8e930f1161b7acfee75b84276109a4959dce8c9b99d5c863bf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/4.4.0-19041-Microsoft

Release files / weighbridge_simulator-0.3.1-py3-none-any.whl

Download URL weighbridge_simulator-0.3.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6558dd2e428d9cd4f74da0ed7b4886f08a400461f4d974677d5f2b303884764
BLAKE2b-256 checksum
How to use checksums
80a97c70a0dffb0ca81e41b8546c83a0e77da04c1ab2fe771685be3915a358d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/4.4.0-19041-Microsoft

Security for weighbridge-simulator 0.3.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.

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