Install dependencies:
sudo apt install python3-slixmpp python3-tz python3-typing-extensions
The quoalise
command can be run from the Python module:
git clone https://github.com/consometers/quoalise.git
cd quoalise/src
python3 -m quoalise <arguments>
Alternatively, you can install the quoalise
command in virtual environment. Quoalise is not yet available on PyPI, install the package in "editable" mode:
git clone https://github.com/consometers/quoalise.git
cd quoalise
python3 -m venv env
source env/bin/activate
pip install -r dev-requirements.txt
pip install -e .
export QUOALISE_USER="[email protected]"
export QUOALISE_PASSWORD="************"
quoalise get-history --help
quoalise get-history [email protected]/resource urn:dev:prm:30001610071843_consumption/power/active/raw --start-time 2021-12-01T00:00+01:00 --end-time 2021-12-05T00:00+01:00
quoalise listen
Will display json data as soon as received.
Check examples for basic usage.
Please run black and flake8 before commit. It can be done automatically with a git pre-commit hook:
pre-commit install