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 09a9ed9734 Fix #! at top of shell scripts for py3 and venvs 3 years ago
docs Fix WSGI docs 10 years ago
nilmrun Fix #! at top of shell scripts for py3 and venvs 3 years ago
scripts Fix #! at top of shell scripts for py3 and venvs 3 years ago
tests Fix #! at top of shell scripts for py3 and venvs 3 years ago
.coveragerc Filled out test coverage, fixed lots of bugs 10 years ago
.gitattributes Update versioneer 3 years ago
.gitignore Add missing MANIFEST.in, update .gitignore 3 years ago
MANIFEST.in Add missing MANIFEST.in, update .gitignore 3 years ago
Makefile Add flake8 tests and clean up warnings 3 years ago
README.md Start Python 3 conversion 3 years ago
data.js Start thread management stuff 10 years ago
requirements.txt Update for Python 3 and psutil >= 2. 3 years ago
setup.cfg Add flake8 tests and clean up warnings 3 years ago
setup.py Fix #! at top of shell scripts for py3 and venvs 3 years ago
versioneer.py Update versioneer 3 years ago

README.md

nilmrun: Run NilmDB filters

by Jim Paris jim@jtan.com

Prerequisites:

# 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:

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:

nilmrun-server --help

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