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.

README.md 927 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # nilmdb: Non-Intrusive Load Monitor Database
  2. by Jim Paris <jim@jtan.com>
  3. NilmDB requires Python 3.8 or newer.
  4. ## Prerequisites:
  5. # Runtime and build environments
  6. sudo apt install python3 python3-dev python3-venv python3-pip
  7. # Create a new Python virtual environment to isolate deps.
  8. python3 -m venv ../venv
  9. source ../venv/bin/activate # run "deactivate" to leave
  10. # Install all Python dependencies
  11. pip3 install -r requirements.txt
  12. ## Test:
  13. python3 setup.py nosetests
  14. ## Install:
  15. Install it into the virtual environment
  16. python3 setup.py install
  17. If you want to instead install it system-wide, you will also need to
  18. install the requirements system-wide:
  19. sudo pip3 install -r requirements.txt
  20. sudo python3 setup.py install
  21. ## Usage:
  22. nilmdb-server --help
  23. nilmdb-fsck --help
  24. nilmtool --help
  25. See docs/wsgi.md for info on setting up a WSGI application in Apache.