fix telegraf data format

This commit is contained in:
Franzi 2024-07-31 17:39:16 +02:00
parent 4ef8e65157
commit 734f4cf4e9
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -15,8 +15,8 @@ LOG = logging.getLogger(__name__)
def out(keys, value):
print(
"{},{} value={}".format(
config["telegraf"]["measurement"],
"sdm630,identifier={},{} value={}".format(
config["telegraf"]["identifier"],
",".join([f"{k}={v}" for k, v in keys.items()]),
value,
),