Skip to content

Mqtt2influxdb

services.mqtt2influxdb.enable

Whether to enable BigClown MQTT to InfluxDB bridge. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.environmentFiles

File to load as environment file. Environment variables from this file will be interpolated into the config file using envsubst with this syntax: $ENVIRONMENT or ${VARIABLE}. This is useful to avoid putting secrets into the nix store.

Type: list of path

Default

[ ]

Example

["/run/keys/mqtt2influxdb.env"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.database

Name of the InfluxDB database. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.host

Host where InfluxDB server is running. Type: string

Default

"127.0.0.1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.password

Password for InfluxDB login.

It is highly suggested to use here replacement through environmentFiles as otherwise the password is put world readable to the store.

Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.port

InfluxDB server port Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

8086

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.ssl

Use SSL to connect to the InfluxDB server. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.username

Username for InfluxDB login. Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.influxdb.verify_ssl

Verify SSL certificate when connecting to the InfluxDB server. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.cafile

Certification Authority file for MQTT Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.certfile

Certificate file for MQTT Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.host

Host where MQTT server is running. Type: string

Default

"127.0.0.1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.keyfile

Key file for MQTT Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.password

MQTT password.

It is highly suggested to use here replacement through environmentFiles as otherwise the password is put world readable to the store.

Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.port

MQTT server port. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

1883

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.mqtt.username

Username used to connect to the MQTT server. Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.package

The mqtt2influxdb package to use. Type: package

Default

pkgs.python3Packages.mqtt2influxdb

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points

Points to bridge from MQTT to InfluxDB. Type: list of (submodule)

Default

[{fields = {value = "$.payload";};measurement = "temperature";tags = {channel = "$.topic[3]";id = "$.topic[1]";};topic = "node/+/thermometer/+/temperature";}{fields = {value = "$.payload";};measurement = "relative-humidity";tags = {channel = "$.topic[3]";id = "$.topic[1]";};topic = "node/+/hygrometer/+/relative-humidity";}{fields = {value = "$.payload";};measurement = "illuminance";tags = {id = "$.topic[1]";};topic = "node/+/lux-meter/0:0/illuminance";}{fields = {value = "$.payload";};measurement = "pressure";tags = {id = "$.topic[1]";};topic = "node/+/barometer/0:0/pressure";}{fields = {value = "$.payload";};measurement = "co2";tags = {id = "$.topic[1]";};topic = "node/+/co2-meter/-/concentration";}{fields = {value = "$.payload";};measurement = "voltage";tags = {id = "$.topic[1]";};topic = "node/+/battery/+/voltage";}{fields = {value = "$.payload";};measurement = "button";tags = {channel = "$.topic[3]";id = "$.topic[1]";};topic = "node/+/push-button/+/event-count";}{fields = {value = "$.payload";};measurement = "tvoc";tags = {id = "$.topic[1]";};topic = "node/+/voc-lp-sensor/0:0/tvoc";}]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.fields

Field selector. Type: submodule

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.fields.type

Type to be picked up Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.fields.value

Value to be picked up Type: string

Default

"$.payload"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.measurement

Name of the measurement Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.tags

Tags applied Type: attribute set of string

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix

services.mqtt2influxdb.points.*.topic

MQTT topic to subscribe to. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/mqtt2influxdb.nix