From 60c4a794a821180eba75439bc403f701a07b5a6a Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 25 Mar 2021 14:14:27 +0100 Subject: [PATCH] feat(itho-wpu): getdatalog: show name identifier in output This shows the name identifier for each measurement. This identifier is for example used to store measurements in InfluxDB. --- itho-wpu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/itho-wpu.py b/itho-wpu.py index af2a143..7b1e510 100755 --- a/itho-wpu.py +++ b/itho-wpu.py @@ -233,6 +233,7 @@ class IthoWPU(): description = dl['title'].title() if dl['unit'] is not None: description = f"{description} ({dl['unit']})" + description = f"{description} ({dl['name'].lower()})" datalog.append(Field(index, int(dt, 0), dl['name'].lower(), description)) if dt in ['0x0', '0xc']: