Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No MQTT data received #104

Open
elausys opened this issue Jun 12, 2024 · 8 comments
Open

No MQTT data received #104

elausys opened this issue Jun 12, 2024 · 8 comments

Comments

@elausys
Copy link

elausys commented Jun 12, 2024

Hello,

I'm using MQTT plugin version 1.0.0-beta.4 on Grafana 10.4.0.

The datasource is connected to the MQTT broker (Node-Red broker)

image

On the dashboard panel, the topic name is set :

image

But not data is showing.

Using MQTT Explorer, the same topic can be viewed without issue ;

image

None of the topics where able to show data.

What could be the problem ?

Thank you in advance for your support !

Best Regards,

@elausys
Copy link
Author

elausys commented Jun 18, 2024

Any help or advice on that topic ?
Thank you in advance !

@teefixx
Copy link

teefixx commented Jun 21, 2024

no help, but I have exactly the same problem.
MQTT works in MQTT explorer but no data with Grafana MQTT plugin.
I tried version 1.0 beta4 and 1.1

The MQTT Broker used: FlashMQ from Victron VenusOS

@starhopper-de
Copy link

Same issue here.
MQTT works with mosquitto_sub. Grafana's connection is successfull, but no data is resceived.

@elausys
Copy link
Author

elausys commented Jul 4, 2024

Hello,

It is a pity that no support answer is provided.
Seems simple scenarios and would be helpful to many people apparently.

Can someone help to fix that ?

Thanks a lot !

@jtowe1
Copy link

jtowe1 commented Aug 20, 2024

Same problem here

@ArchiZ0
Copy link

ArchiZ0 commented Aug 20, 2024

Hi,

Since they added support for more dynamic topic features (variables, wildcards, etc.), I've been using this plugin extensively with great success.

That said, currently, all my data are time-series using JSON as the message format, containing a timestamp and at least one variable I want to display. This has been working flawlessly so far.

Did you try checking the table view first to see if any data is being received?

image

This is typically how I start debugging before transforming the data to display it the way I want.

I'm able to use repeated panels, display multiple values in a single graph, and utilize many other advanced features without any issues—but I did have to tweak the JSON format to make it work properly.

Can you show me the raw data you're using in those topics? Do you have the flexibility to transform that data before sending it to those topics?

Let me know. Bye!

@elausys
Copy link
Author

elausys commented Aug 21, 2024

Hi, currently nothing is showing in the table view/ raw data view in Grafana.
The topics are created in Node-Red so we have flexibility adapt the data.

Could you share an example of your JSON formated topics ?

Thanks a lot !

@ArchiZ0
Copy link

ArchiZ0 commented Aug 25, 2024

Sorry for the delay, lots of work to do. A simple JSON for temperature should work simply:

{
  "timestamp":"2024-08-25T20:42:27.357133219Z",
  "device":"sc01",
  "temperature":72
}

In Table view:
image

As time-series:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants