https://github.com/vitroid/loadmeters
A simple loadmeter implemented with processing.js
https://github.com/vitroid/loadmeters
Last synced: about 1 year ago
JSON representation
A simple loadmeter implemented with processing.js
- Host: GitHub
- URL: https://github.com/vitroid/loadmeters
- Owner: vitroid
- Created: 2017-02-02T04:21:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-29T03:21:11.000Z (about 1 year ago)
- Last Synced: 2025-05-29T04:27:19.398Z (about 1 year ago)
- Language: Python
- Size: 223 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
Awesome Lists containing this project
README
It requires [processing.js](http://processingjs.org).
#On the server side
##Preparation
Install ruptime (unix command) on each machine.
###MacOSX
Put bsd.rwhod.plist in the system (on Terminal.app).
sudo cp bsd.rwhod.plist /Library/LaunchDaemons/
Launch it by hand. (It will be launched automatically after reboot).
launchctl load /Library/LaunchDaemons/bsd.rwhod.plist
###CentOS
Install.
yum install rwho
Activate.
chkconfig rwhod on
Launch by hand (First time only.)
/etc/init.d/rwhod start
###debian
Install, activate, and launch.
apt-get install rwho rwhod
##Installation
Select a machine to use as the web server. Put processing.js in the same directory from [processing.js](http://processingjs.org).
Run the ruptime2.py micro web server on that machine. It collects the CPU load info by ruptime command and serve it as a text file. It accepts the HTTP request at 6502 port.
#On the client side
Open http://webserver:6502 in the web browser. You will see the loadmeters on the web.