dannyvai / plotly_websocket_example

Use Ploty(js) and Websockets to animate graphs and show realtime data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plotly_websocket_example

Use Plotly(js) and Websockets to animate graphs and show realtime data

example

I used pywebsocket in order to test this

I've created a handler named send_graph which sends a moving sine-wave graph to the websocket

In order to make it work you need to install the pywebsocket Then you copy the send_graph_wsh.py file into pywebsocket/example/

Usage :

cd pywebsocket/mod_pywebsocket
python standalone.py -p 9998 -w ../example/

Then open the plot_graphs_from_websocket.html in your browser

More documenation Here in this blog post

About

Use Ploty(js) and Websockets to animate graphs and show realtime data


Languages

Language:Python 56.4%Language:HTML 43.6%