This is an example PlatformIO project to show how to use the arduplot, a PlatformIO plotting community filter (https://github.com/yhur/arduplot.git).
This tools is the equivalent to the Arduino IDE's serial plotter for the PlatformIO
- Install the arduplot first
pip install arduplot
- copy ~/.platformio/penv/lib/python3.9/site-packages/arduplot/filter_plotter.py to either
<Project>/monitor
for every project, or~/.platformio/platform/espressif8266/monitor (or ~/.platformio/platform/espressif32/monitor for esp32)
Or you can just set the environment variable as below and run this without copying.export PLATFORMIO_MONITOR_DIR=${HOME}/.platformio/penv/lib/python3.9/site-packages/arduplot/
- With the above steps done, run
pio device monitor -f plotter
And you will get this plot.
If you want to put the legends to the plot. There is an optional configuration file where you can set the setting for the plotting for the project.
{ "label": [ "temperature", "humidity" ], "title": "Thermometer", "width": 100 }
If you create a json file named 'plotcfg.json' under the the PIO project directory, you will get this plot.