wmbusmeters

by funkypenguin

Helm chartv1.4.2App 1.4.1Verified publisher

Wmbusmeters receives and decodes C1,T1 or S1 telegrams (using the wireless mbus protocol) to acquire utility meter readings.

About this chart

wmbusmeters

Wmbusmeters receives and decodes C1,T1 or S1 telegrams (using the wireless mbus protocol) to acquire utility meter readings.

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

helm repo add k8s-at-home https://k8s-at-home.com/charts/
helm repo update
helm install wmbusmeters k8s-at-home/wmbusmeters

Installing the Chart

To install the chart with the release name wmbusmeters

helm install wmbusmeters k8s-at-home/wmbusmeters

Uninstalling the Chart

To uninstall the wmbusmeters deployment

helm uninstall wmbusmeters

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install wmbusmeters \
  --set env.TZ="America/New York" \
    k8s-at-home/wmbusmeters

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install wmbusmeters k8s-at-home/wmbusmeters -f values.yaml

Custom configuration

IMPORTANT NOTE: a rtlsdr device must be accessible on the node where this pod runs, in order for this chart to function properly.

Wmbusmeters can auto-discover this dongle, but first you need to give the pod extended privileges:

securityContext:
  privileged: true

Alternatively you could mount the device directly, if you know what you are doing and can manually configure wmbusmetersto use it:

host-dev:
  enabled: true
  type: hostPath
  hostPath: /dev/device1
  mountPath: /dev/device1

Second you will need to set a nodeAffinity rule, for example if you are using node-feature-discovery:

  nodeSelector:
    feature.node.kubernetes.io/custom-rtl: "true"

or by simply labeling the node which has the usb dongle:

affinity:
  nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: app
          operator: In
          values:
          - rtlsdr-dongle

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
configstring"loglevel=normal\ndevice=rtlwmbus\nlistento=t1\nlogtelegrams=false\nformat=json\nmeterfiles=/wmbusmeters_data/logs/meter_readings\nmeterfilesaction=overwrite\nlogfile=/wmbusmeters_data/logs/wmbusmeters.log\n"Set the default config for wmbusmeters, see: https://github.com/weetmuts/wmbusmeters/blob/master/README.md
envobjectSee belowenvironment variables.
env.TZstring"UTC"Set the container timezone
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"weetmuts/wmbusmeters"image repository
image.tagstring"release-1.4.1-amd64"image tag
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
securityContext.privilegedbooltrue(bool) Privileged securityContext may be required if USB controller is accessed directly through the host machine
wmbusmeterslist[{"config":"name=watermeter\ntype=multical21\nid=1234567\nkey=000000000000000000000000\n","name":"watermeter"}]Set the config for individual meters to read, see: https://github.com/weetmuts/wmbusmeters/blob/master/README.md

Changelog

Version 1.4.2

Added

N/A

Changed

  • Upgraded common chart dependency to version 4.5.2

Fixed

N/A

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v0.1.1

Deploy wmbusmeters with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wmbusmeters on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwmbusmeters is pinned at v1.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply