You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jim Paris e99027db46 Freeze requirements 5 months ago
extras Finish trainola testing and porting to Python 3 5 months ago
nilmtools Fix flake8 errors throughout code 5 months ago
tests Flesh out remaining tests and Python 3 fixes 5 months ago
.coveragerc Add test framework, and initial test for nilm-copy 5 months ago
.gitattributes Large restructuring, added setup 7 years ago
.gitignore Use multiprocessing to start multiple servers in tests 5 months ago Start Python 3 conversion 5 months ago
Makefile Cleanup Makefile 5 months ago Start Python 3 conversion 5 months ago
requirements.txt Freeze requirements 5 months ago
setup.cfg Fix flake8 errors throughout code 5 months ago Fix #! at top of shell scripts for py3 and venvs 5 months ago Update versioneer 5 months ago

nilmtools: Tools and utilities for NilmDB

Tools and utilities for interacting with the NILM Database, or writing programs that interact with the NILM database.

by Jim Paris


# Runtime and build environments
sudo apt-get install python3

# Create a new Python virtual environment to isolate deps.
python3 -m venv ../venv
source ../venv/bin/activate   # run "deactivate" to leave

# Install all Python dependencies
pip3 install -r requirements.txt


Install it into the virtual environment

python3 install

If you want to instead install it system-wide, you will also need to install the requirements system-wide:

sudo pip3 install -r requirements.txt
sudo python3 install

Building new tools:

The tools in this package are meant to be installed with python3 install. If you want to make a new one, an easier way to develop would be to first install this package, and then copy a specific script like src/ to a new location, and modify it as desired.

To add a tool to the package, place it in src/ and add the appropriate configuration to