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 07f138e0f4 flake8: fix style 10 months ago
docs Consistently use bytes everywhere for stream data 1 year ago
extras Fix #! at top of shell scripts for py3 and venvs 10 months ago
nilmdb flake8: fix style 10 months ago
tests tests: new fsck tests for interval overlap 10 months ago
.coveragerc Remove old files from .coveragerc exclusions 1 year ago
.gitattributes Incorporate versioneer for versioning 8 years ago
.gitignore Clean up README 1 year ago Update and build instructions 1 year ago
Makefile Add pylint config and selectively fix some pylint errors 1 year ago Bump Python version requirement 10 months ago
requirements.txt Add yappi dependency for "nilmdb-server -y", but don't require ipython 10 months ago
setup.cfg Fix flake8-reported issues with fsck 10 months ago Fix #! at top of shell scripts for py3 and venvs 10 months ago Update build system for Python 3 1 year ago

nilmdb: Non-Intrusive Load Monitor Database

by Jim Paris

NilmDB requires Python 3.8 or newer.


# 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


python3 nosetests


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


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

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