Add Telegraf Agent Interval as configuration
Fix or Feature Request?
Feature for issue #50
What does this solve
Allows the user to change the Telegraf Agent interval in seconds.
This looks good to me, have you tested locally? if so I am happy to merge
@sabuto I started the container and I confirmed the interval was updated. But I don't have a way to test on Home Assistant itself.
looking at it again, you would need to do a sed replace as when booting with a value in yaml it will just have the value.
see https://github.com/sabuto/hassio-telegraf/blob/f120494b6213abc520c5b2e764ef47cdc80932c8/telegraf/rootfs/etc/cont-init.d/telegraf.sh#L70
Ah that's right. I forgot to add to that file. I can send a new commit in a few hours.
@sabuto file has been updated.
thanks for this, i will test locally and merge, therte are a couple of other updates i want to make too so will probably include them all in one go
@sabuto any news? Thanks.