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.
This commit is contained in:
parent
236d5c34fc
commit
60c4a794a8
1 changed files with 1 additions and 0 deletions
|
@ -233,6 +233,7 @@ class IthoWPU():
|
||||||
description = dl['title'].title()
|
description = dl['title'].title()
|
||||||
if dl['unit'] is not None:
|
if dl['unit'] is not None:
|
||||||
description = f"{description} ({dl['unit']})"
|
description = f"{description} ({dl['unit']})"
|
||||||
|
description = f"{description} ({dl['name'].lower()})"
|
||||||
datalog.append(Field(index, int(dt, 0), dl['name'].lower(), description))
|
datalog.append(Field(index, int(dt, 0), dl['name'].lower(), description))
|
||||||
|
|
||||||
if dt in ['0x0', '0xc']:
|
if dt in ['0x0', '0xc']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue