Hello @channel I am trying to push MQTT data from ...
# umh-support
s
Hello @channel I am trying to push MQTT data from an external edge device to Nodered in a remote server, any insight on how this can be implemented? I want to use a custom MQTT topic to be referenced in nodered, what other configurations do I need to do? Can I use ia/raw/custom_topic to use the internal MQTT broker?
j
I think what you described sounds like the best approach
Use the third part to connect to the MQTT broker and send information into
ia/raw/custom_topic
, then subscribe with node-red and process it there
you could also create an HTTP endpoint in Node-RED directly, but I'd go for the MQTT approach
s
Thank you, I was able to resolve it
Lastly, how do I push this data to Grafana? I am able to send my data using processvalue topic, but unable to select any option in the Grafana gui to extract this data again from the database for Visualization
k
Do you use this Topic structure? "ia////processValue" Alternatively, you can also look in "console" to see if this Topic exists in Kafka 🙂
s
Yes, any mention with regards to what values can be given in place of "customerID", we are using a custom topic as ia/custom_topic/processValue, will this work? I am trying to push json msg.payload through nodered, to this custom topic, but when i do so the "Value to query" tab in Grafana dashboard does not appear. Is factoryinsight api mandatory? the topic takes too much time to reflect as a path in "Work cell to query", what could be the reason for this?
j
For the data to show up in the dashboard, you need to follow the data model
s
Hi @Jermuk, Thank you for your response, they tab for Value to Query for tags->custom is not appearing in the Grafana dashboard. Any fix for this?
Initially tried with custom topics but after re-setting the default example topic to ia/factoryinsight/Aachen/testing/processValue, still no update from the dashboard configuration, the same error persists
j
you first need to select the work cell, then it will appear
in your case it will be factoryinsight/Aachen/testing
6 Views