Watermeter plugin for Juham™
Description
A web camera and AI-based water meter solution for Juham™ home automation.
This package includes two different water meter implementations:
-
A simple class that compares subsequent images to measure differences. The greater the difference between images, the more the arrows and digits on the water meter have changed, indicating water consumption. This solution also uploads the images to a specified FTP site when water consumption is detected, allowing homeowners to inspect the water meter visually. While this solution doesn’t provide exact water consumption readings, it is highly reliable for detecting leaks. Just ensure that spiders or other potentially moving objects don't obstruct the camera's view of the water meter.
-
Tesseract OCR and OpenCV solution for reading and interpreting water meter digits. This class requires further work to be truly useful. My Raspberry Pi didn't have enough disk space, so I decided to set this aside for now.
.. image:: _static/images/watermeter_diff.png :alt: Web camera based water meter leak detector based on comparison of subsequent images :width: 640px :align: center
Getting Started
To install:
.. code-block:: bash
pip install juham-watermeter
Which installs everything needed for reading water meters with the simple image comparison based solution.
If you want to play with the Tesseract OCR and OpenCV solution for reading and interpreting water meter digits, please read on.
Installing Tesseract OCR to read the digits:
.. code-block:: bash
sudo apt install tesseract-ocr
If you are on Windows, visit the Tesseract GitHub repository, or Download a precompiled Windows binary from UB Mannheim.
-
Install
.. code-block:: bash
pip install juham-watermeter
-
Configure
To adjust update interval and other attributes edit WaterMeter.json configuration file.
Note about OpenCV and contributors
The Python coverage failed with the No source for code: 'juham_watermeter\config-3.py' error, when all the other Python projects with precisely identical structures worked fine. Traced down the bug to opencv package, and added a .coveragerc file with the following content:
.. code-block:: bash
[run]
omit =
config.py
config-3.py
as a solution. This will of course blow up sooner or later, when some OpenCV developer decides to rename those files.
Metadata
Release files for juham-watermeter 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| juham_watermeter-0.1.18.tar.gz | 23.6 kB | Without provenance | Details for juham_watermeter-0.1.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| juham_watermeter-0.1.18-py3-none-any.whl | Python 3 | none | any | Details for juham_watermeter-0.1.18-py3-none-any.whl |
Total release size: 41.3 kB
Release files / juham_watermeter-0.1.18.tar.gz
| Download URL | juham_watermeter-0.1.18.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1fab97fc8ab5fb0b00de46becf97be11a53022383dcd51874ff76bba2315eed
|
|
BLAKE2b-256 checksum How to use checksums |
051bba21a3dfe7dba61c12c12593dcc8553091d062e4b2c72cff619293f25430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / juham_watermeter-0.1.18-py3-none-any.whl
| Download URL | juham_watermeter-0.1.18-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eb0c571b249dcda7eb8b579b09375009cd1e9979f43ebeab0c107bea6133d25
|
|
BLAKE2b-256 checksum How to use checksums |
182a0c2a260ece37cb3646fea417071577d2441237fdff0b0ddd6689ff3cd292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for juham-watermeter 0.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.