/eTracker

Utility Tool for Raspberry Pi - track energy consumption of your device with Adafruit INA219 chip

Primary LanguagePythonOtherNOASSERTION

eTracker

Utility Tool for Raspberry Pi by Hiroyuki Matsuo

Track energy consumption of your device with Adafruit INA219 chip.

Installation

  1. Clone this repository.

    $ git clone https://github.com/h-matsuo/eTracker.git
  2. Update submodule.

    $ cd eTracker
    $ git submodule update --init

Usage

usage: eTracker.py track [-h] [-i <interval>] [-o <filename>]

track energy consumption of target device

optional arguments:
  -h, --help     show this help message and exit
  -i <interval>  set the tracking interval in [sec]; default = 0.02
  -o <filename>  write output to <filename>
usage: eTracker.py analyze [-h] [-b <begin_date>] [-e <end_date>] <filename>

analyze the json file created by track sub-command

positional arguments:
  <filename>            specify the file to analyze

optional arguments:
  -h, --help            show this help message and exit
  -b <begin_date>, --begin <begin_date>
                        specify the beginning of the section of time to
                        analyze; if '-' is given, analyze from the beginning
                        of the file; default = '-'
  -e <end_date>, --end <end_date>
                        specify the end of the section of time to analyze; if
                        '-' is given, analyze to the end of the file; default
                        = '-'

License

MIT License.