Skip to main content

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.

  1. Install

    .. code-block:: bash

    pip install juham-watermeter

  2. 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.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for juham-watermeter 0.1.15
File Size Uploaded
juham_watermeter-0.1.15.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for juham-watermeter 0.1.15
File Interpreter ABI Platform
juham_watermeter-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 40.8 kB

Release files / juham_watermeter-0.1.15.tar.gz

Download URL juham_watermeter-0.1.15.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
36f4c48ed8ba0d5016bf85069ff5261edea88b36c35cce34be2dce6d61381d77
BLAKE2b-256 checksum
How to use checksums
86c6dc2fc2d1e724b65f551fb29ac2f8390256cac40c048e5027202dcd8a4f10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / juham_watermeter-0.1.15-py3-none-any.whl

Download URL juham_watermeter-0.1.15-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0abae48062898c2edfa844145dc3f3f59a8bf16efe6aab091ed85b6321cec849
BLAKE2b-256 checksum
How to use checksums
6d5540922db6f5bb8ca38b2f545747c2d7bbf51507ce4310f1827e1a388f8a9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

0.1.18

2 release files

0.1.16

2 release files

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page