Skip to main content

command-line serial plotter

Project description

spplot

This utility is a text mode implementation of what can be done in Arduino IDE when choosing Serial Plotter option, i.e. it plots the numbers received on the serial port in real time.

spemu

There's also a helper utility included, called spemu which is a serial port emulator. It's useful for testing when no real device is nearby.

Usage

Run spemu. The program will print file descriptor and PTY device path. You can write directly to the spemu stdin or open file descriptor with some script and write to it. The things you write will be outputted by the virtual COM port.

Installation

spplot

Install from PyPI:

python3 -m pip install spplot

Install locally:

python3 -m pip install . --upgrade

spemu

To compile it, just run make.

Requirements

spplot

  • Python 3 with f-strings
  • POSIX-compliant, color-supporting terminal
  • Font with Braille characters
  • Modules from requirements.txt

spemu

  • C compiler
  • UNIX-like system

Disclaimer: Work in Progress

This is a dirty draft of what I want it to be. I'll try to optimize it in my free time and add some colors to differentiate the plots. As for now, it is what it is.

The initial menu is made in TUI style but if you provide port and baudrate as CLI args, you won't see it.

Roadmap

  • colored lines for different subplots
  • total average / current buffer average and other stats
  • better error handling
  • buffer, display and calculation optimizations
  • proper handling of negative values
  • set y axis range option
  • plot on n-th readout option
  • command line args
  • dynamic resizing
  • human menu keymapping
  • make a python package
  • make a PyPI release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spplot-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

spplot-0.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file spplot-0.0.2.tar.gz.

File metadata

  • Download URL: spplot-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for spplot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fb46fb109631cb95884a54f2db65fca32b4065e920c8be3167d6d7a968b54bdb
MD5 7e974fbf82a3dcfd5731d0a42ab3b5ca
BLAKE2b-256 dd0473d7ac62e5b1c41f9ba744ec143cc3c782dd8d6647cd65526017a5e2e6d9

See more details on using hashes here.

File details

Details for the file spplot-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: spplot-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for spplot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39e7fa8cc19a2545b971eb464ad5690fa95f81b0f8e3004938deb26a42b09d83
MD5 425cb940ea6b841f7216acd666a48402
BLAKE2b-256 300362b24e1689d816261023d79bc76c8d786ab65b8135d9293001613e971d2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page