https://github.com/nicolargo/vnstat.js
A Node.js Web based interface for VnStat
https://github.com/nicolargo/vnstat.js
Last synced: 10 months ago
JSON representation
A Node.js Web based interface for VnStat
- Host: GitHub
- URL: https://github.com/nicolargo/vnstat.js
- Owner: nicolargo
- Created: 2011-09-24T10:13:29.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2021-12-13T15:44:47.000Z (about 4 years ago)
- Last Synced: 2025-03-01T15:51:21.806Z (10 months ago)
- Language: CSS
- Homepage:
- Size: 15.6 KB
- Stars: 22
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://flattr.com/submit/auto?user_id=nicolargo&url=https://github.com/nicolargo/vnstat.js&title=vnstat.js&language=en_GB&tags=github&category=software)
VnStat.js
=========
VnStat.js is a simple Web interface for the VnStat software.
It is a HTTP node based on the Node.js framework.
No Web server is needed, every think is included in the node.
Installation
------------
1) Install the VnStat and VnStati software.
Exemple on Debian Squeeze (using root console):
$ apt-get install vnstat vnstati
$ vnstat -u -i eth0 --nick "LAN0"
$ /etc/init.d/vnstat start
2) Install the Node.js framework following https://github.com/joyent/node/wiki/Installation
3) Download the VnStat.js node
$ cd ~
$ git clone git://github.com/nicolargo/vnstat.js.git
Run the VnStat.js node
----------------------
Run the node:
$ cd ~/vnstat.js
$ node ./vnstat.js
On the console, the URL of the VnStat.js is displayed.
Use a HTML5 compatible Web browser.

Informations
------------
By default, the node listen on the TCP port 1337, do not forget to open your firewall if necessary.
You can customized the web design by editing the css/style.css file.
VnStat.js use vnstat and vnstati softwares. You can edit the path using the lib/request.js file:
var cmd_vnstat = '/usr/bin/vnstat';
var cmd_vnstati = '/usr/bin/vnstati -c 5';
The end...