mirror of
https://github.com/pommi/python-itho-wpu.git
synced 2024-11-21 13:52:15 +01:00
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
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user