summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/stats/telegraf/airsensor.nix
blob: c0c64b238dd6392e2ad2196f7e83bd7526f5afac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs, ...}:

{
  services.telegraf.extraConfig.inputs.exec = [
    {
      commands = [ "${pkgs.airsensor-py}/bin/airsensor-py"];
      timeout = "10s";
      data_format = "value";
      data_type = "integer";
      name_override = "airquality";
      interval = "10s";
      tags.unit="VOC";
    }
  ];
}