From python
>>> import drstorage
>>> data = bytearray.fromhex("abab00471200c5120901000000000000000a10025810000000000000140d0a")
>>> result = drstorage.models.F1_600.parse(data)
>>> print(result)
Container:
humidity = 7.1
temperature = 19.7
model = 600
or from command line
$ python -c 'import sys; sys.stdout.buffer.write(bytes(bytearray.fromhex("abab00471200c5120901000000000000000a10025810000000000000140d0a")))' | drstorage parse --model F1_600
Container: humidity = 7.1 temperature = 19.7 model = 600
generic
(default, the "base" Dr. Storage model)F1_600
F1_1200
X2M_157
In a fresh virtual environment
$ python -m pip install "git+https://github.com/kratsg/drstorage.git"
The above is actually cloning and installing directly from the Git repository. However, if you want to, you can of course also install it directly from the Git repository "locally" by first cloning the repo and then from the top level of it running
$ python -m pip install .
As this library is experimental contributions of all forms are welcome. You are of course also most welcome and encouraged to open PRs.
To develop, use a virtual environment. Once the environment is activated, clone the repo from GitHub
git clone [email protected]:kratsg/drstorage.git
and install all necessary packages for development
python -m pip install --ignore-installed --upgrade -e .[complete]
Then setup the Git pre-commit hooks by running
pre-commit install
- Mike Hance
- Noah Peake
- Will Johansson
- James Tranovich
- Anja Berens
- Paul Ingemi
- Matthew Gignac