Git Product home page Git Product logo

bwmon's Introduction

##Bandwidth Usage Monitor

A simple shell script designed to run on linux powered routers

Sample Usage by User Screenshot

Try a demo version of this application

###Software Features:

  • Designed to run on linux based routers such as: Tomato, OpenWrt, DD-WRT, etc
  • Provides per user bandwidth usage monitoring
  • Generates bandwidth usage reports per user/month/year

###Technical Features:

  • Shell script to collect bandwidth usage and to generate JSON data structure.
  • Web Based GUI to display bandwidth usage
  • Web Based GUI is using Bootstrap and AngularJS

##Installation instructions:

  • Make sure that you have a harddisk or USB flash drive attached to router and it is formated and mounted.
  • Log into your router via ssh.
  • To install application type the following command in ssh terminal:
    • cd /mnt/<mounted_name>/
    • mkdir bwmon
    • cd bwmon
    • wget https://github.com/VREMSoftwareDevelopment/bwmon/releases/download/v2.3.4/bwmon.tar.gz
    • tar -xzvf bwmon.tar.gz
    • chmod +x *.sh
    • ./bwmon-cron.sh install
  • Visit http://<your_router_ip>/user/bwmon/index.html to view bandwidth usage statistics.
  • To setup bandwidth usage monitor to start automatically after router reboots add the following to autostart script on mount: ./mnt/<mounted_ name>/bwmon/bwmon-cron.sh install

###Usage: ./bwmon-cron.sh {install|remove} - shell script to install or remove bandwidth usage monitor from cron jobs

######Note:

  • Problem using wget:
    • error getting response: Connection reset by peer - add the following option --no-check-certificate
    • Or download the file from the web-site and copy to the folder.

##Build Instructions:

  • Install NodeJS
  • Install Gulp and Bower: npm install -g gulp bower
  • Create project: git clone https://github.com/VREMSoftwareDevelopment/bwmon.git
  • Install required node modules: npm install
  • Install required bower components: bower install
  • Build application: gulp

###Gulp tasks:

  • gulp - places a fully optimized application (production ready) in /dist
  • gulp build - same as gulp
  • gulp webserver - runs a server using production ready application with sample data on http://localhost:8080
  • gulp test - runs local unit tests
  • gulp testauto - runs local unit tests in continuous integration mode
  • gulp e2e - runs local e2e tests
  • gulp coverage - creates unit test coverage report in /logs/PhantomJS...
  • gulp devwebserver - runs a server using development ready application with sample data on http://localhost:8080/app

See code coverage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.