Skip to main content

A collection of tools to mine data on the efficiency of a house

Project description

NetZero Data Collection Tool

This tool is meant to make collecting data from various sources related to energy usage much easier. The tool provides a simple command line interface which orchestrates the entire process from collection to output.

Installation

First, ensure that you have both Python 3 and pip installed:

$ python --version
$ pip --version

Then, all you have to do is run this command to install netzero and its dependencies:

$ pip install netzero

If you prefer to download the repository yourself you can run the following command from within the repository to install netzero and its dependencies.

$ pip install .

These commands will install all dependencies and install netzero on your machine.

In order to actually use the tool you'll need to set up an config.ini file. A template with instructions is included in the file example_config.ini.

Usage

This tool offers a simple command line interface that can be accessed by running

$ netzero
usage: netzero [-h] <command> ...

Collects and formats data from multiple sources

optional arguments:
  -h, --help  show this help message and exit

available commands:
  <command>
    collect   Collect data
    format    Format data

Example

Say you wanted to collect Pepco, SolarEdge, and Weather data since August 2019. First you need to ensure that your configuration file is set up. You can place the configuration anywhere you want as along as you pass it in on the commandline. In this example we will call it config.ini. Also, since we don't already have a database for our data, we will tell netzero to create one called netzero.db. To collect our data we can run this command:

$ netzero collect +psw -s 2019-08-01 -c config.ini -d netzero.db

Lets break this command down:

  • netzero collect: tells netzero that we are collecting data with this command.

  • +psw: adds Pepco (p), Solar (s) and Weather (w) data to the list of sources to collect from (You can get a full list of sources from netzero collect -h).

  • -s 2019-08-01: tells netzero to only collect data after August 1st 2019. The date must follow the format YYYY-MM-DD.

  • -c config.ini: specifies the file name of our configuration file.

  • -d netzero.db: gives the filename of our database.

For more options you can check out the help information using netzero -h.

TODO

  • Timezones
  • Deal with missing GSHP data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netzero-0.1.0.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

netzero-0.1.0-py3-none-any.whl (20.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page