Skip to content

consometers/quoalise

Repository files navigation

quoalise

Install

Using your distribution python package

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>

In a Python virtual environment

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 .

Command line usage

export QUOALISE_USER="[email protected]"
export QUOALISE_PASSWORD="************"

Get data history

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

Listen for subscribed data

quoalise listen

Will display json data as soon as received.

Library usage

Check examples for basic usage.

Contributing

Please run black and flake8 before commit. It can be done automatically with a git pre-commit hook:

pre-commit install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages