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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file netzero-0.1.0.tar.gz.

File metadata

  • Download URL: netzero-0.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for netzero-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e77896501723daca363187475ea61952afdafefbd55b8b7f499770e6f3b83e3b
MD5 4e531e43f373bb4a8a047cd4d7f8db60
BLAKE2b-256 657a01a99171e6dc445f83434a4eb7543c8bddcf5628dd937a6a3ed95eceba40

See more details on using hashes here.

File details

Details for the file netzero-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: netzero-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for netzero-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d450fa194cb81a97c8d22a4b1a9a22a0a4974c80420f9ea07786d06deec52f
MD5 ef4cd50742ba23b03a3c93373c755773
BLAKE2b-256 0d3b722777a408dbf40cb1a3ed46aa6060ba40b191fd01bbc6aadc2e76c12e37

See more details on using hashes here.

Supported by

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