Gastimeter
gastimeter is a simple tool to obtain readings from a gas meter by means of OCR (Optical Character Regonition). As OCR is not 100% accurate, the tool effectively provides a guestimate of the gas meter reading - hence the name.
Installation
Clone the repository and install gastimeter using pip - optionally in a virtually environment.
git clone https://github.com/gkunz/gastimeter.git
cd gastimeter
pip3 install .
Known issues
gastimeter uses OpenCV to capture images from a connected camera. If running gastimeter on a RaspberryPi on Debian Bullseye (or higher), note that OpenCV does not work (yet) with the new libcamera subsystem. There are two possible workarounds:
Use the legacy camera subsystem based on V4L2
Switch to the old camera subsystem using the following:
sudo raspi-config- Select
Interface Options - Select
Legacy Camera
Note that this camera subsystem is deprecated and will be removed in the future.
Use libcamera tooling
Use libcamera-jpeg to capture an image and feed this into gastimeter using the --image option.
License
Gastimator is licensed under the MIT license.
Metadata
Release files for gastimeter 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gastimeter-0.2.7.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gastimeter-0.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / gastimeter-0.2.7.tar.gz
| Download URL | gastimeter-0.2.7.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64e8f0454c9ab95190b9ef45a6fdfda7770ce0ca32c34db284ad449b6396cca9
|
|
BLAKE2b-256 checksum How to use checksums |
7d0cf11819e727e0875e1e81155ef4c64bb38b529197707afa85f173c706d2dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / gastimeter-0.2.7-py3-none-any.whl
| Download URL | gastimeter-0.2.7-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b71ba468dc86d6e7750bdcb2ca71e71a2c5b8a1205d1f2ff04d2ad4b3b911b8
|
|
BLAKE2b-256 checksum How to use checksums |
e69ebe7eed4419c611caf55f4ade5cc0314ffc04f7869def3994a3a5bd510f38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency log