Poll statistics from Asus router RT-N14UH through http and plot in mrtg
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
angular
conf
src
tmp/ve_asus-rt-n14uhp-mrtg
.gitignore
.project
.pydevproject
.travis.yml
CONTRIBUTING.md
LICENSE
README.md

README.md

asus-rt-n14uhp-mrtg

Poll Asus rt n14uhp hardware statistics such as cpu, ram, network statistics and plot in mrtg.

how to setup environment

$ virtualenv -p python3.4 tmp/ve_asus-rt-n14uhp-mrtg
$ source tmp/ve_asus-rt-n14uhp-mrtg/bin/activate
$ pip install -r src/requirements.txt
$ # when you are done, deactivate the environment
$ deactivate

how to test

$ python setup.py test
$ python setup.py nosetests

for django test, locate where is manage.py located and cd into the directory.

$ python manage.py test polls

read more here

how to quickly test in development environment

$ python setup.py develop

how to quickly build a source distribution

$ python setup.py sdist

how to create a tarball

$ python setup.py bdist_egg

how to install

$ sudo python setup.py install

code style

you can read this link https://www.python.org/dev/peps/pep-0008/ or better yet if you are on debian, just install this package using apt-get.

$ sudo apt-get install python-autopep8 pep8 python-pep8 python3-pep8

and then check source file using this command

$ autopep8 -v bin/routerStats.py