Hello
I would like to store all the data from a Shelly 1PM in a influx database.
So i have difficulties in configure my telegraf.conf file for that purpose.
The Shelly publishing MQTT messages like this …:
Client mosqsub|1204-raspberryp received PUBLISH (d0, q0, r0, m0, ‘shellies/sh1pm/temperature’, … (5 bytes))
34.21
… but unfortunately i do not find any data in my database “shellies” !
The telegraf.conf file looks like this …
[global_tags]
[agent]
interval = "15s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
#===============================================================================
[[outputs.influxdb]]
urls = ["http://raspberrypi:8086"]
database = "shellies"
# ==============================================================================
# # Read metrics from MQTT topic(s)
[[inputs.mqtt_consumer]]
# ## MQTT broker URLs to be used. The format should be scheme://host:port,
# ## schema can be tcp, ssl, or ws.
servers = ["tcp://raspberrypi:1883"]
#
# ## Topics that will be subscribed to.
topics = ["+/+/+"]
data_format = "json"
Can anybody help me?
Thanks