Schmidsfeld / TelegrafFritzBox

Telegraf collector help file for the FritzBox by AVM
MIT License
51 stars 12 forks source link

fixed empty data field joining leads to invalid influx line #14

Open hansmaulwurf23 opened 9 months ago

hansmaulwurf23 commented 9 months ago

Sometimes (was not able to deterministic reproduce the error) the Fritzbox does not deliver the Modelname. This leads to a leading comma within assemblevar and then produces an invalid influx line. I fixed this (and every other occasion when an empty data field is part of data) by filtering the args to non empty ones, joining and then doing your New replacement.