Skip to content

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

Notifications You must be signed in to change notification settings

rubenseam/plotly_websocket_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.4%
  • HTML 43.6%