Files
nilmdb/README.md

41 lines
927 B
Markdown
Raw Permalink Normal View History

2019-08-30 16:25:41 -04:00
# nilmdb: Non-Intrusive Load Monitor Database
by Jim Paris <jim@jtan.com>
2020-08-07 15:56:53 -04:00
NilmDB requires Python 3.8 or newer.
2019-08-30 16:25:41 -04:00
## Prerequisites:
# Runtime and build environments
2020-08-03 16:28:12 -04:00
sudo apt install python3 python3-dev python3-venv python3-pip
2019-08-30 16:25:41 -04:00
2020-08-03 16:28:12 -04:00
# Create a new Python virtual environment to isolate deps.
python3 -m venv ../venv
source ../venv/bin/activate # run "deactivate" to leave
2019-08-30 16:25:41 -04:00
2020-08-03 16:28:12 -04:00
# Install all Python dependencies
2019-08-30 16:25:41 -04:00
pip3 install -r requirements.txt
## Test:
python3 setup.py nosetests
## Install:
2020-08-03 16:28:12 -04:00
Install it into the virtual environment
2019-08-30 17:14:50 -04:00
2020-08-03 16:28:12 -04:00
python3 setup.py install
2019-08-30 17:14:50 -04:00
2020-08-03 16:28:12 -04:00
If you want to instead install it system-wide, you will also need to
install the requirements system-wide:
2019-08-30 17:14:50 -04:00
sudo pip3 install -r requirements.txt
2019-08-30 16:25:41 -04:00
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.