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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb46fb109631cb95884a54f2db65fca32b4065e920c8be3167d6d7a968b54bdb |
|
MD5 | 7e974fbf82a3dcfd5731d0a42ab3b5ca |
|
BLAKE2b-256 | dd0473d7ac62e5b1c41f9ba744ec143cc3c782dd8d6647cd65526017a5e2e6d9 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e7fa8cc19a2545b971eb464ad5690fa95f81b0f8e3004938deb26a42b09d83 |
|
MD5 | 425cb940ea6b841f7216acd666a48402 |
|
BLAKE2b-256 | 300362b24e1689d816261023d79bc76c8d786ab65b8135d9293001613e971d2e |