brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
97 stars 6 forks source link

Ability to "forward" group monitor logs to file #199

Closed hahasagined closed 1 year ago

hahasagined commented 1 year ago

Hello,

I would love to store my knx bus telegrams and HKKNX does have a connection to the gateway and is able to decode messages. The data is in hkknx and I see the bus monitor working perfectly, I would like to put the output of the bus monitor into a file that can then be ingested in splunk, elastic, ... for visualisation and search.

Thank you, Martin

brutella commented 1 year ago

Would you like to store all incoming bus telegrams or only specific ones, for example only for specific group addresses?

hahasagined commented 1 year ago

for my use case all incoming bus telegrams.

brutella commented 1 year ago

One possibility would be to implement that in a script. There you receive all telegrams and store them in a file or a time-series database.

In what format do you want to store your data?

brutella commented 1 year ago

In version 2.4.0 you can use GroupWriteTelegramNotify in a script to receive all group write telegrams. You can then forward the telegram to an external service (ex. InfluxDB) or store it on disk.

Hope this helps.