mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-16 07:55:13 +02:00
pypackage add event log entry count for 1161
This commit is contained in:
parent
34f6f9363d
commit
4e709254c7
2 changed files with 9 additions and 1 deletions
|
@ -114,6 +114,8 @@ class InfluxOutputPlugin(OutputPluginFactory):
|
|||
data_stack.append(f'{measurement},string={string_id},type=current value={string["current"]:3f} {ctime}')
|
||||
string_id = string_id + 1
|
||||
# Global
|
||||
if data['event_count'] is not None:
|
||||
data_stack.append(f'{measurement},type=total_events value={data["event_count"]} {ctime}')
|
||||
if data['powerfactor'] is not None:
|
||||
data_stack.append(f'{measurement},type=pf value={data["powerfactor"]:f} {ctime}')
|
||||
data_stack.append(f'{measurement},type=frequency value={data["frequency"]:.3f} {ctime}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue