Git Product home page Git Product logo

etsnetworkusage's Introduction

#Bandwidth usage tool This script was built to visualize your bandwidth usage in the ETS apartments.

##Usage The following script must be run like this :

python netusage.py (type) (phase) (room)

e.g. to get the percent of the bandwith used by the room 6109 in phase 3, you need to call the script as the following :

python netusage.py percent 3 6109

##API I wrote a wrapper for the Cooptel site. My wrapper returns the information in a JSON format. All you need is to import my script (api.py) and use the following function :

getData(phase,room,month)

It will return you a JSON object with the following properties :

  • room : the room specified
  • phase : the phase specified
  • month : the month specified
  • usage : total used (in GB)
  • left : total left (in GB)
  • maximum : total (in GB)
  • details : array of each day of the month

The details property is an array of JSON objects with the following properties :

  • port : port identifer for this day usage
  • date : date of the stat
  • upload : total upload for this day (in GB)
  • download : total download for this day (in GB)
  • total : total usage for this day (upload + download) (in GB)

etsnetworkusage's People

Contributors

lemieux avatar

Stargazers

Philip Doxakis avatar Simon Carpentier avatar  avatar Gregory A. Lussier avatar

Watchers

James Cloos avatar

Forkers

lussier vboiteau

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.