juham-watermeter 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/CHANGELOG.rst +6 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/LICENSE.rst +22 -22
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/MANIFEST.in +10 -10
- {juham_watermeter-0.0.4/juham_watermeter.egg-info → juham_watermeter-0.0.5}/PKG-INFO +27 -27
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/README.rst +79 -54
- juham_watermeter-0.0.5/docs/build/html/.buildinfo +4 -0
- juham_watermeter-0.0.5/docs/build/html/_sources/index.rst.txt +47 -0
- juham_watermeter-0.0.5/docs/build/html/_sources/juham_watermeter/index.rst.txt +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/basic.css +906 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/css/bootstrap-responsive.css +1109 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/css/bootstrap-responsive.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/css/bootstrap.css +6167 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/css/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/img/glyphicons-halflings-white.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/img/glyphicons-halflings.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/js/bootstrap.js +2287 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-2.3.2/js/bootstrap.min.js +6 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap-theme.css +587 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap-theme.css.map +1 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap-theme.min.css +6 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap-theme.min.css.map +1 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap.css +6834 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap.css.map +1 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap.min.css +6 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/css/bootstrap.min.css.map +1 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/fonts/glyphicons-halflings-regular.eot +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/fonts/glyphicons-halflings-regular.svg +288 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/fonts/glyphicons-halflings-regular.woff +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/fonts/glyphicons-halflings-regular.woff2 +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/js/bootstrap.js +2580 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/js/bootstrap.min.js +6 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-3.4.1/js/npm.js +13 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-sphinx.css +221 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootstrap-sphinx.js +175 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/amelia/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/cerulean/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/cosmo/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/cyborg/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/flatly/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/img/glyphicons-halflings-white.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/img/glyphicons-halflings.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/journal/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/readable/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/simplex/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/slate/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/spacelab/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/spruce/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/superhero/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-2.3.2/united/bootstrap.min.css +9 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/cerulean/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/cosmo/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/cyborg/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/darkly/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/flatly/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/fonts/glyphicons-halflings-regular.eot +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/fonts/glyphicons-halflings-regular.svg +288 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/fonts/glyphicons-halflings-regular.woff +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/fonts/glyphicons-halflings-regular.woff2 +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/journal/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/lumen/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/paper/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/readable/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/sandstone/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/simplex/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/slate/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/spacelab/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/superhero/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/united/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/bootswatch-3.4.1/yeti/bootstrap.min.css +11 -0
- juham_watermeter-0.0.5/docs/build/html/_static/doctools.js +149 -0
- juham_watermeter-0.0.5/docs/build/html/_static/documentation_options.js +13 -0
- juham_watermeter-0.0.5/docs/build/html/_static/file.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/graphviz.css +12 -0
- juham_watermeter-0.0.5/docs/build/html/_static/images/watermeter_diff.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/js/jquery-1.12.4.min.js +5 -0
- juham_watermeter-0.0.5/docs/build/html/_static/js/jquery-fix.js +2 -0
- juham_watermeter-0.0.5/docs/build/html/_static/juham.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/language_data.js +192 -0
- juham_watermeter-0.0.5/docs/build/html/_static/masterpiece.css +64 -0
- juham_watermeter-0.0.5/docs/build/html/_static/minus.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/plus.png +0 -0
- juham_watermeter-0.0.5/docs/build/html/_static/pygments.css +75 -0
- juham_watermeter-0.0.5/docs/build/html/_static/searchtools.js +635 -0
- juham_watermeter-0.0.5/docs/build/html/_static/sphinx_highlight.js +154 -0
- juham_watermeter-0.0.5/docs/build/html/genindex.html +140 -0
- juham_watermeter-0.0.5/docs/build/html/index.html +314 -0
- juham_watermeter-0.0.5/docs/build/html/juham_watermeter/index.html +162 -0
- juham_watermeter-0.0.5/docs/build/html/objects.inv +0 -0
- juham_watermeter-0.0.5/docs/build/html/search.html +155 -0
- juham_watermeter-0.0.5/docs/build/html/searchindex.js +1 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/leakdetector.py +170 -170
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/watermeter_imgdiff.py +327 -328
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/watermeter_ocr.py +273 -273
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/watermeter_ts.py +100 -100
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/webcamera.py +172 -174
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5/juham_watermeter.egg-info}/PKG-INFO +27 -27
- juham_watermeter-0.0.5/juham_watermeter.egg-info/SOURCES.txt +108 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/pyproject.toml +62 -62
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/setup.cfg +4 -4
- juham_watermeter-0.0.5/tests/__init__.py +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/tests/test_watermeter.py +16 -16
- juham_watermeter-0.0.4/juham_watermeter.egg-info/SOURCES.txt +0 -22
- juham_watermeter-0.0.4/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- juham_watermeter-0.0.4/tests/__pycache__/test_watermeter.cpython-312.pyc +0 -0
- /juham_watermeter-0.0.4/tests/__init__.py → /juham_watermeter-0.0.5/docs/build/html/.nojekyll +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/__init__.py +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter/py.typed +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter.egg-info/dependency_links.txt +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter.egg-info/entry_points.txt +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter.egg-info/requires.txt +0 -0
- {juham_watermeter-0.0.4 → juham_watermeter-0.0.5}/juham_watermeter.egg-info/top_level.txt +0 -0
@@ -1,22 +1,22 @@
|
|
1
|
-
MIT License
|
2
|
-
===========
|
3
|
-
|
4
|
-
Copyright (c) 2024, Juha Meskanen
|
5
|
-
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
8
|
-
in the Software without restriction, including without limitation the rights
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
11
|
-
furnished to do so, subject to the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
14
|
-
copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
-
|
1
|
+
MIT License
|
2
|
+
===========
|
3
|
+
|
4
|
+
Copyright (c) 2024, Juha Meskanen
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
|
@@ -1,10 +1,10 @@
|
|
1
|
-
include README.rst
|
2
|
-
include CHANGELOG.rst
|
3
|
-
include LICENSE.rst
|
4
|
-
|
5
|
-
recursive-include tests *
|
6
|
-
recursive-include docs/build/html *
|
7
|
-
|
8
|
-
# files to be excluded
|
9
|
-
global-exclude *~ \#*
|
10
|
-
|
1
|
+
include README.rst
|
2
|
+
include CHANGELOG.rst
|
3
|
+
include LICENSE.rst
|
4
|
+
|
5
|
+
recursive-include tests *
|
6
|
+
recursive-include docs/build/html *
|
7
|
+
|
8
|
+
# files to be excluded
|
9
|
+
global-exclude *~ \#*
|
10
|
+
|
@@ -1,27 +1,27 @@
|
|
1
|
-
Metadata-Version: 2.2
|
2
|
-
Name: juham-watermeter
|
3
|
-
Version: 0.0.
|
4
|
-
Summary: Built-in Test plugin
|
5
|
-
Author-email: J Meskanen <juham.api@gmail.com>
|
6
|
-
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
|
-
Project-URL: Homepage, https://meskanen.com
|
8
|
-
Project-URL: Bug Reports, https://meskanen.com
|
9
|
-
Project-URL: Funding, https://meskanen.com
|
10
|
-
Project-URL: Say Thanks!, http://meskanen.com
|
11
|
-
Project-URL: Source, https://meskanen.com
|
12
|
-
Keywords: object-oriented,plugin,framework,watermeter,home automation
|
13
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
14
|
-
Classifier: Intended Audience :: Developers
|
15
|
-
Classifier: Topic :: Software Development
|
16
|
-
Classifier: License :: OSI Approved :: MIT License
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
18
|
-
Requires-Python: >=3.8
|
19
|
-
Description-Content-Type: text/markdown
|
20
|
-
License-File: LICENSE.rst
|
21
|
-
Requires-Dist: juham-automation>=0.0.2
|
22
|
-
Requires-Dist: opencv-python-headless>=4.10.0
|
23
|
-
Requires-Dist: numpy
|
24
|
-
Requires-Dist: pytesseract>=0.3.13
|
25
|
-
Requires-Dist: Pillow>=10.4.0
|
26
|
-
Provides-Extra: dev
|
27
|
-
Requires-Dist: check-manifest; extra == "dev"
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: juham-watermeter
|
3
|
+
Version: 0.0.5
|
4
|
+
Summary: Built-in Test plugin
|
5
|
+
Author-email: J Meskanen <juham.api@gmail.com>
|
6
|
+
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
|
+
Project-URL: Homepage, https://meskanen.com
|
8
|
+
Project-URL: Bug Reports, https://meskanen.com
|
9
|
+
Project-URL: Funding, https://meskanen.com
|
10
|
+
Project-URL: Say Thanks!, http://meskanen.com
|
11
|
+
Project-URL: Source, https://meskanen.com
|
12
|
+
Keywords: object-oriented,plugin,framework,watermeter,home automation
|
13
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
14
|
+
Classifier: Intended Audience :: Developers
|
15
|
+
Classifier: Topic :: Software Development
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
18
|
+
Requires-Python: >=3.8
|
19
|
+
Description-Content-Type: text/markdown
|
20
|
+
License-File: LICENSE.rst
|
21
|
+
Requires-Dist: juham-automation>=0.0.2
|
22
|
+
Requires-Dist: opencv-python-headless>=4.10.0
|
23
|
+
Requires-Dist: numpy
|
24
|
+
Requires-Dist: pytesseract>=0.3.13
|
25
|
+
Requires-Dist: Pillow>=10.4.0
|
26
|
+
Provides-Extra: dev
|
27
|
+
Requires-Dist: check-manifest; extra == "dev"
|
@@ -1,54 +1,79 @@
|
|
1
|
-
Watermeter plugin for Juham™
|
2
|
-
=============================
|
3
|
-
|
4
|
-
Description
|
5
|
-
-----------
|
6
|
-
|
7
|
-
A web camera and AI-based water meter solution for Juham™ home automation.
|
8
|
-
|
9
|
-
This package includes two different water meter implementations:
|
10
|
-
|
11
|
-
* Tesseract OCR and OpenCV solution for reading and interpreting water meter digits.
|
12
|
-
This class requires further work to be truly useful. My Raspberry Pi didn't have enough disk
|
13
|
-
space, so I decided to set this aside for now.
|
14
|
-
|
15
|
-
* A simple class that compares subsequent images to measure differences. The greater the difference between images,
|
16
|
-
the more the arrows and digits on the water meter have changed, indicating water consumption.
|
17
|
-
This solution also uploads the images to a specified FTP site when water consumption is detected,
|
18
|
-
allowing homeowners to inspect the water meter visually. While this solution doesn’t provide exact water
|
19
|
-
consumption readings, it is highly reliable for detecting leaks. Just ensure that spiders or other potentially moving
|
20
|
-
objects don't obstruct the camera's view of the water meter.
|
21
|
-
|
22
|
-
|
23
|
-
.. image:: _static/images/watermeter_diff.png
|
24
|
-
:alt: Web camera based water meter leak detector based on comparison of subsequent images
|
25
|
-
:width: 640px
|
26
|
-
:align: center
|
27
|
-
|
28
|
-
|
29
|
-
Getting Started
|
30
|
-
---------------
|
31
|
-
|
32
|
-
###
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
.. code-block:: bash
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
1
|
+
Watermeter plugin for Juham™
|
2
|
+
=============================
|
3
|
+
|
4
|
+
Description
|
5
|
+
-----------
|
6
|
+
|
7
|
+
A web camera and AI-based water meter solution for Juham™ home automation.
|
8
|
+
|
9
|
+
This package includes two different water meter implementations:
|
10
|
+
|
11
|
+
* Tesseract OCR and OpenCV solution for reading and interpreting water meter digits.
|
12
|
+
This class requires further work to be truly useful. My Raspberry Pi didn't have enough disk
|
13
|
+
space, so I decided to set this aside for now.
|
14
|
+
|
15
|
+
* A simple class that compares subsequent images to measure differences. The greater the difference between images,
|
16
|
+
the more the arrows and digits on the water meter have changed, indicating water consumption.
|
17
|
+
This solution also uploads the images to a specified FTP site when water consumption is detected,
|
18
|
+
allowing homeowners to inspect the water meter visually. While this solution doesn’t provide exact water
|
19
|
+
consumption readings, it is highly reliable for detecting leaks. Just ensure that spiders or other potentially moving
|
20
|
+
objects don't obstruct the camera's view of the water meter.
|
21
|
+
|
22
|
+
|
23
|
+
.. image:: _static/images/watermeter_diff.png
|
24
|
+
:alt: Web camera based water meter leak detector based on comparison of subsequent images
|
25
|
+
:width: 640px
|
26
|
+
:align: center
|
27
|
+
|
28
|
+
|
29
|
+
Getting Started
|
30
|
+
---------------
|
31
|
+
|
32
|
+
### Note about Python - a Professional Ecosystem
|
33
|
+
|
34
|
+
I'm affraid I have wasted more time solving all sorts of build, documentation, testing, and god-knows-what
|
35
|
+
issues with Python ecosystem than I’ve spent actually writing Python code. Most recently,
|
36
|
+
I wasted an entire day trying to figure out why coverage failed with the following error:
|
37
|
+
|
38
|
+
.. code-block:: bash
|
39
|
+
|
40
|
+
'No source for code: 'juham_watermeter\config-3.py'.
|
41
|
+
|
42
|
+
error, when all the other Python projects with precisely identical structures worked fine.
|
43
|
+
The solution was to add a .coveragerc file with the following content:
|
44
|
+
|
45
|
+
.. code-block:: bash
|
46
|
+
|
47
|
+
[run]
|
48
|
+
omit =
|
49
|
+
config.py
|
50
|
+
config-3.py
|
51
|
+
|
52
|
+
This will of course blow up sooner or later, when some Python developer decides to rename those files.
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
### Installation
|
58
|
+
|
59
|
+
1. Prerequisities
|
60
|
+
|
61
|
+
In order to use the first solution you need Tesseract OCR to read the digits. To install Tesseract:
|
62
|
+
|
63
|
+
.. code-block:: bash
|
64
|
+
|
65
|
+
sudo apt install tesseract-ocr
|
66
|
+
|
67
|
+
If you are on Windows, visit the Tesseract GitHub repository, or Download a precompiled Windows binary from UB Mannheim.
|
68
|
+
|
69
|
+
2. Install
|
70
|
+
|
71
|
+
.. code-block:: bash
|
72
|
+
|
73
|
+
pip install juham_watermeter
|
74
|
+
|
75
|
+
|
76
|
+
2. Configure
|
77
|
+
|
78
|
+
To adjust update interval and other attributes edit `WaterMeter.json` configuration file.
|
79
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
Watermeter plugin for Juham
|
2
|
+
===========================
|
3
|
+
|
4
|
+
.. image:: _static/juham.png
|
5
|
+
:alt: Juham - Juha's Ultimate Home Automation Masterpiece
|
6
|
+
:width: 400px
|
7
|
+
:height: 300px
|
8
|
+
|
9
|
+
.. toctree::
|
10
|
+
:maxdepth: 2
|
11
|
+
:caption: Contents:
|
12
|
+
|
13
|
+
juham_watermeter/index
|
14
|
+
|
15
|
+
.. include:: ../../README.rst
|
16
|
+
|
17
|
+
.. include:: ../../LICENSE.rst
|
18
|
+
|
19
|
+
.. include:: ../../CHANGELOG.rst
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
Classes
|
24
|
+
-------
|
25
|
+
|
26
|
+
.. inheritance-diagram::
|
27
|
+
juham_watermeter.WaterMeterImgDiff
|
28
|
+
juham_watermeter.WaterMeterOCR
|
29
|
+
juham_watermeter.WebCamera
|
30
|
+
juham_watermeter.LeakDetector
|
31
|
+
juham_core.Juham
|
32
|
+
masterpiece.composite.Composite
|
33
|
+
masterpiece.application.Application
|
34
|
+
masterpiece.plugin.Plugin
|
35
|
+
masterpiece.plugmaster.PlugMaster
|
36
|
+
masterpiece.argmaestro.ArgMaestro
|
37
|
+
masterpiece.log.Log
|
38
|
+
:parts: 1
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
Index
|
43
|
+
=====
|
44
|
+
|
45
|
+
* :ref:`genindex`
|
46
|
+
* :ref:`modindex`
|
47
|
+
* :ref:`search`
|