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 85f822e1c4 Decode non-JSON HTTP responses when possible 1 year ago
docs Consistently use bytes everywhere for stream data 2 years ago
extras Fix python2->3 conversion of pickle 2 years ago
nilmdb Decode non-JSON HTTP responses when possible 1 year ago
tests Improve test coverage and remove the last "#pragma: no cover" 2 years ago
.coveragerc Remove old files from .coveragerc exclusions 2 years ago
.gitattributes Incorporate versioneer for versioning 8 years ago
.gitignore Clean up README 2 years ago
MANIFEST.in Update setup.py and build instructions 2 years ago
Makefile Add pylint config and selectively fix some pylint errors 2 years ago
README.md Update README for Python 3.8 and newer 1 year ago
requirements.txt Fix flake8-reported code style issues 2 years ago
setup.cfg Add pylint config and selectively fix some pylint errors 2 years ago
setup.py Update git URL 1 year ago
versioneer.py Update build system for Python 3 2 years ago

README.md

nilmdb: Non-Intrusive Load Monitor Database

by Jim Paris jim@jtan.com

NilmDB requires Python 3.7 or newer.

Prerequisites:

# Runtime and build environments
sudo apt install python3 python3-dev python3-venv python3-pip

# 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

Test:

python3 setup.py nosetests

Install:

Install it into the virtual environment

python3 setup.py 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 setup.py install

Usage:

nilmdb-server --help
nilmdb-fsck --help
nilmtool --help

See docs/wsgi.md for info on setting up a WSGI application in Apache.