Protocol Parser for Dr. Storage Dry Air Cabinets
Project description
drstorage
Using
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
Supported Models
generic
(default, the "base" Dr. Storage model)F1_600
X2M_157
Installation
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 .
Contributing
As this library is experimental contributions of all forms are welcome. You are of course also most welcome and encouraged to open PRs.
Developing
To develop, use a virtual environment. Once the environment is activated, clone the repo from GitHub
git clone git@github.com: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
Acknowledgements
- Mike Hance
- Noah Peake
- Will Johansson
- James Tranovich
- Anja Berens
- Paul Ingemi
- Matthew Gignac
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drstorage-0.2.0.tar.gz
.
File metadata
- Download URL: drstorage-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25597afec301e01c5964c0f2bd09e8e27ff714f9a038dd23d698c09b784f7d4b |
|
MD5 | c94c6e90f7ce23825a87a8090088c623 |
|
BLAKE2b-256 | 2a45891d760290b17f86ca1ffaccbdab22a3f39b78ccc06b244e15e9d2b7e1f3 |
File details
Details for the file drstorage-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: drstorage-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395f671f30e2b265de6b0d15ad9bbd0e67684610d361c011b033e4c8e9419f32 |
|
MD5 | 130e5e1ccc3b2130fa77c3e509a631a6 |
|
BLAKE2b-256 | ac3d01788c794a8b8f45f90b0341227dd377faeed5d01ec3144222896925a3d3 |