What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

MQTT Subscribe Sensor JSON Path

Votes:

0

Your Vote:

Up

Down

How can I find the JSON Path for my Device?

I have a ESP32 + Temperature Sensor which submits to a Mosquitto Instance on a Raspberry. But I'm not able to find the right JSON Path.

I tried getting a JSON response locally on the rasp with "mosquitto_sub -h 127.0.0.1 -t Sensor1/Temperatur -v -F %J" and this was the answer:

{"tst":1600896025,"topic":"Sensor1/Temperatur","qos":0,"retain":0,"payloadlen":4,"payload":23.5}

I tried "$.Sensor1/Temperatur " but this seems to be wrong...

jsonpath mosquitto mqtt prtg

Created on Sep 24, 2020 1:16:58 PM by  triggad23 (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hi there,

Did you also tried to use something like "$.Sensor1/Temperatur.payload". According to our manual, you need to specify a certain matric from which the value should be displayed in the Sensor.

Created on Sep 25, 2020 12:38:13 PM by  Moritz Heller [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.