New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Create PlatformIO DeviceMonitorFilter #2
Comments
@ivankravets |
@ivankravets <project_dir>/monitor directory is similar to /platforms/espressif8266/monitor On second thought, I would like to suggest this. This suggestion is a minor modification to your idea, I guess.
This way, the users can configure the VSCode/PIO environment with the needed community filter once and don't have to configure the projects every time. What do you think? |
@yhur great idea! We added support of custom filters in PlatformIO packages. PlatformIO Core 5.2.3 is out! https://github.com/platformio/platformio-core/releases/tag/v5.2.3 |
It's done. The user can copy filter_plotter.py to either (project_dir)/monitor, or ~/.platformio/platform/espressif8266/monitor (or ~/.platformio/platform/espressif32/monitor for esp32) and run pio device monitor -f plotter after installation of the arduplot. Or they can set the environment variable and run this too. export PLATFORMIO_MONITOR_DIR=$(HOME)/.platformio/penv/lib/python3.9/site-packages/arduplot/ |
The upcoming PlatformIO Core 5.2.3 will allow users to add custom monitor filters to a project. See https://docs.platformio.org/en/latest/core/userguide/device/cmd_monitor.html#custom-filters
Installation
It would be great if this package will provide an API for
DeviceMonitorFilter
namedArduPlotDeviceMonitorFilter
. Later, you can update README on how to usearduplot
and recommend using this code:Need to create filter_arduplot.py file in
<project>/monitor
folder and copy Python-code above.Benefits
What to do?
platformio.py
file in https://github.com/yhur/arduplot/tree/main/src/arduplotclass ArduPlotDeviceMonitorFilter
according to https://docs.platformio.org/en/latest/core/userguide/device/cmd_monitor.html#custom-filters and serialplotter filter platformio/platformio-core#4058The text was updated successfully, but these errors were encountered: