Read and process the serial teleinfo data.
Dedicated to be run by a Raspberry Pi Zero connected to the electric meter.
Configure the application in settings.toml and .secrets.toml file (use the last one for sensitive data like
passwords). In production, configuration can be set in ~/.monitelec-reader.toml.
Run the command teleinfo-serial-reader to read the data flow and send useful information with MQTT.
Use teleinfo-serial-reader --help to show command usage.
Use the --use-generator option of the teleinfo-serial-reader script.
We use poetry to build package:
poetry-dynamic-versioning
poetry build
git checkout -- pyproject.toml monitelec_reader/__init__.pyPublish in majordome GitLab:
poetry publish -r gitlab-majordomeNote: use POETRY_HTTP_BASIC_GITLAB_MAJORDOME_USERNAME and POETRY_HTTP_BASIC_GITLAB_MAJORDOME_PASSWORD
to define GitLab credentials. It's normally in ~/.env.
Use:
curl http://majordome:8050/jonathan/monitelec-reader/-/raw/main/install.sh | sudo bash