/daikin-gomod

Daikin AC go library and metrics exporter for prometheus

Primary LanguageGoApache License 2.0Apache-2.0

Daikin AC go library

This package provides a go library to query and control Daikin AirConditioner, an application to print all current settings and an Exporter for Prometheus.

Container

Public Container Image

The command to run the public available image would be:

podman run -p 9071:9071 -v <path>/config.yaml:/config.yaml registry.opensuse.org/home/kukuk/containerfile/daikin-ac-exporter:latest

podman can be replaced with docker without any further changes.

Build locally

To build the container image with the daikin-ac-exporter binary included run:

sudo podman build --rm --no-cache --build-arg VERSION=$(cat VERSION) --build-arg BUILDTIME=$(date +%Y-%m-%dT%TZ) -t daikin-ac-exporter .

Configuration

daikin-ac-exporter can be configured via command line and configuration file.

Commandline

Available options are:

Usage:
  daikin-ac-exporter [flags]

Flags:
  -a, --address string   Daikin aircon address
  -c, --config string    configuration file (default "config.yaml")
  -h, --help             help for daikin-ac-exporter
  -q, --quiet            don't print any informative messages
  -v, --verbose          become really verbose in printing messages
      --version          version for daikin-ac-exporter

Configuration File

By default daikin-ac-exporter looks for the file config.yaml in the local directory. This can be overriden with the --config option.

# Optional: address and port to listen on, default is port 9071
listen: ":9071"
# Optional: address of Daikin AC
#address: <IPv4 address>