Originally published: 2014-01-03 21:09:53
Last updated: 2014-01-03 21:09:54
Author: Vasudev Ram
This recipe is the JavaScript client side of an overall recipe that shows how to do system monitoring using WebSockets, Python, Go (using websocketd), and JavaScript + HTML. The server side of the recipe (in Python, and using websocketd which is written in Go), is here:
The system monitoring example shows the system disk space info (total, used and free) using the Python psutil module.