RealtimePlotter icon indicating copy to clipboard operation
RealtimePlotter copied to clipboard

Stream data through Socket instead of serial

Open pkr97 opened this issue 2 years ago • 1 comments

Hi, thanks for the nice program.

How about using it for plotting live data streamed through a socket connection?

The socket connection is between python and processing IDE.

Would you suggest on how to modify the code so that it can used for data received through socket?

Thanks...

pkr97 avatar Jul 05 '22 05:07 pkr97

Hi, pkr97.

I wrote a little web socket client utility to connect to a web socket server and then stream whatever it receives to a serial port. You could use this with the Arduino serial monitor / plotter or sebnil's plotter with a few modifications. All you need is an ESP32 dev board to run this code. Maybe your python code could act as a web socket server for this little utility.

https://github.com/digamesystems/test_websocket_client

Cheers.

digamesystems avatar Jul 26 '22 00:07 digamesystems