Logging utility for various meters & sensors
Find a file
Gerrit Beine 56245805cc
Some checks failed
build+test / build_and_test (push) Has been cancelled
check-formatting / check-formatting (push) Has been cancelled
ci / docker (push) Has been cancelled
Build & publish docker image
2024-09-03 18:17:50 +02:00
.github/workflows Build & publish docker image 2024-09-03 18:17:50 +02:00
Dashboards Updatre repository-url 2013-01-08 11:31:17 +01:00
debian Next try - set TZ from CMake 2024-06-20 21:22:50 +02:00
etc Fixed missing user name rename in logrotate configuration 2024-04-21 07:20:17 +02:00
gtest Fix gtest version 2023-01-02 20:01:10 +01:00
include comment fixes, fixup 46cd8253 2024-01-05 23:14:43 +01:00
modules Fixed passing of Debian hardening flags to gcc 2024-04-22 16:48:33 +02:00
src Fix developed by Matthias Behr 2024-06-29 18:52:58 +02:00
tests Fix developed by Matthias Behr 2024-06-29 18:52:58 +02:00
.clang-format Apply clang-format with adapted settings (#399) 2019-11-17 21:11:27 +01:00
.dockerignore switch to alpine based docker image 2023-01-28 05:19:24 +01:00
.editorconfig Apply clang-format with adapted settings (#399) 2019-11-17 21:11:27 +01:00
.gitignore switch to alpine based docker image 2023-01-28 05:19:24 +01:00
AUTHORS updated standard files 2011-09-10 00:04:44 +02:00
check-formatting.sh add clang-format to github actions 2021-03-14 07:08:32 +01:00
clean-all-cmake.txt added clean-all target 2015-08-20 09:21:40 +02:00
CMakeLists.txt Next try - set OS level TZ 2024-06-21 05:40:11 +02:00
config.hpp.in First version of mqtt support. (#357) 2018-12-31 18:03:06 +01:00
COPYING fixed invalid symlink to licence 2011-08-31 00:38:35 +02:00
Dockerfile dockerfile updated for more buildtreads 2023-02-02 04:11:02 +01:00
GITHUB_RELEASE.txt added release action doing debuild with cloudsmith upload 2023-04-23 15:16:41 +02:00
install.sh install.sh: fix enabling mqtt (cmake option syntax) 2024-02-04 17:39:51 +01:00
README.InfluxDB.md Several small changes (#582) 2023-02-28 11:44:11 +01:00
README.md Added OMS section to README.md 2024-08-02 16:23:34 +02:00
README.mysmartgrid.md Readme files update & rename to *.md (#301) 2017-02-25 08:07:32 +01:00

vzlogger

  • is a part of the volkszaehler.org smart meter
  • is a tool to read and log measurements of a wide variety of smart meters and sensors to the volkszaehler.org middleware
  • can run as a daemon or via cron
  • includes a tiny onboard http daemon to serve realtime readings
  • is written in C++ and should run on most embedded devices which conform to the POSIX standard

Feel free to implement support your own hardware ;)

Installation

To install, follow the detailed installation instructions at http://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version

If you're impatient you can quickstart using (Debian Bullseye or Ubuntu 18.04 LTS):

sudo apt-get install build-essential git-core cmake pkg-config subversion libcurl3-dev \
  libgnutls-dev libsasl2-dev uuid-dev uuid-runtime libtool dh-autoreconf libunistring-dev

If you want to use MQTT support:

sudo apt-get install libmosquitto-dev

Then run the installation:

wget https://raw.github.com/volkszaehler/vzlogger/master/install.sh
sudo bash install.sh

Docker

You can also build a docker image:

 docker build -t vzlogger .

Note, that this will use the newest vzlogger from volkszaehler github (not your local clone). You can start it:

 docker run --restart=always -v /home/pi/projects/vzlogger-docker:/cfg \
 --device=/dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D30A9U5N-if00-port0 \
 --name vzlogger -d vzlogger

where /home/pi/projects/vzlogger-docker is the path to the directory containing the vzlogger.conf file and /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D30A8U6N-if00-port0 is your device. You can pass several devices if you have them.

Debian and Raspberry Pi OS Packages

Hosted By: Cloudsmith

We now build Debian packages for amd64, armhf and arm64. Armel, which would be needed for Debian on RPi 1 hardware, is not supported.

Raspberry Pi OS packages for armhf are also part of our releases. Unfortunately Debian armhf packages do not run on Raspberry Pi 1 although the architecture has been named armhf in Raspbian. Using "Raspbian armhf" packages fixes that. For RPi 2 and above Debian packages run on Raspberry Pi OS.

Our packages are built with MQTT support. The package that is in Debian is built without OMS support while starting with 0.8.7 ours is.

The packages attached to the release are meant for Debian trixie. The full set of packages is provided through a repository graciously provided by Cloudsmith.

The setup of the repository is also explained by Cloudsmith. The easy way to do it is running

curl -1sLf \
  'https://dl.cloudsmith.io/public/volkszaehler/volkszaehler-org-project/setup.deb.sh' \
  | sudo -E bash

If you do it the easy way you should however be aware of the high amount of trust you put into cloudsmith not beeing compromised. As an alternative there is the manual way to achive the same result. That starts with adding a file to /etc/apt/sources.list.d/ containing

deb [signed-by=/usr/share/keyrings/volkszaehler-volkszaehler-org-project-archive-keyring.gpg] https://dl.cloudsmith.io/public/volkszaehler/volkszaehler-org-project/deb/debian bookworm main
deb-src [signed-by=/usr/share/keyrings/volkszaehler-volkszaehler-org-project-archive-keyring.gpg] https://dl.cloudsmith.io/public/volkszaehler/volkszaehler-org-project/deb/debian bookworm main

You need to replace bookworm with your distro and debian with raspbian in case you are using an RPi 1. You also need to retrieve our repository key as a trusted one.

curl -1sLf "https://dl.cloudsmith.io/public/volkszaehler/volkszaehler-org-project/gpg.21DBDAC56DF44DA1.key" | \
	gpg --dearmor > /usr/share/keyrings/volkszaehler-volkszaehler-org-project-archive-keyring.gpg

After that you can do the usual

apt update
apt install vzlogger

An official Debian vzlogger package is currently in unstable.

OMS Support

We have packaged libmbus and are building our package with OMS support since 0.8.7. Since we have no idea about usage and usability of our OMS support we wold appreciate a short note from anyone using it or trying to use it in our Future of OMS support issue.

Mailing List

If you have questions, contact the volkszaehler mailing lists:

More information is available in our wiki: http://wiki.volkszaehler.org/software/controller/vzlogger