This is a cpu monitor built together with Bernard using node.js, socket.io and a module called os-monitor. We created a 'redable stream' and then piped this down to the browser through a socket. The meter is moving up and down reporting the CPU usage.
- JavaScript
- Node.js
- CSS/HTML
- JQuery
- Socket.io
- os-monitor
- Express.js
http://cpu-meter.herokuapp.com/
Clone the repo:
$ git clone https://github.com/elenagarrone/cpu_meter.git
Change into the directory:
$ cd cpu_meter
Supposing you have installed Node.js and npm, type:
$ npm install
# this will install the packages inside of the package.json file
and then:
$ npm start
#then on the browser go to:
localhost:3000