h-matsuo / eTracker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Other


Languages

Language:Python 100.0%