Skip to content
/ rstats Public
forked from emjelde/rstats

Read rstats backup file for Tomato firmware

Notifications You must be signed in to change notification settings

hurda/rstats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

RStats History

Read rstats backup bandwidth usage file created by Tomato (wireless router firmware).

Why?

Tomato provides statistics in the form of an "rstats" file. After reading the source provided in the Tomato project for creating the rstats file these scripts were created to help parse and format the bandwidth statistics.

See forum for discussion.

Usage

$ python RStatsHistory.py --help
Usage: RStatsHistory.py [options] <filename>
Options:
  -h, --help            show this help message and exit
  -u UNIT, --unit=UNIT  Units b (bytes),k (KiB),m (MiB),g (GiB) default is b
$ python RStatsHistory.py tomato_rstats.gz

Or

$ python RStatsOutput.py --help
Usage: RStatsOutput.py [options] <filename>
Options:
  -h, --help            show this help message and exit
  -i INDENT, --indent=INDENT
                        Indent JSON
  -d DAILY, --daily=DAILY
                        Daily units b (bytes),k (KiB),m (MiB),g (GiB) default
                        is b
  -m MONTHLY, --monthly=MONTHLY
                        Monthly units b (bytes),k (KiB),m (MiB),g (GiB)
                        default is b
$ python RStatsOutput.py -dm -mg -i3 tomato_rstats.gz

About

Read rstats backup file for Tomato firmware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published