thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
2.99k stars 287 forks source link

Some values not shown in chart #684

Open mkrebie opened 1 year ago

mkrebie commented 1 year ago

Hi Thomas

Thank you for this great tool! Very, very helpful for development. I found an issue with the display of some variables in a chart.

Receiving a JSON like: { "timestamp": 1669287571901, "values": { "Demo.Dynamic.Scalar.Int16": "13963", "2258": "1669287571807", "Demo.Massfolder_Dynamic.Variable0000": "13963", "Demo.Massfolder_Dynamic.Variable0001": "13963", "Demo.Massfolder_Dynamic.Variable0002": "13963", "Demo.Massfolder_Dynamic.Variable0003": "13963", "Demo.Massfolder_Dynamic.Variable0004": "13963", "Demo.Dynamic.Scalar.Byte": "139" } }

Values for all items with "Demo.*" are not displayed in a chart. The path shown in the chart header is like: values.Demo\.Dynamic.Scalar.Int16 Probably the backslash is the issue.

Thanks and best regards Michael

GeraldKaeferle commented 1 year ago

Same here {"0-0:96.1.0":{"value":"181220000009"},"0-0:1.0.0":{"value":0,"time":1678733220},"1-0:1.8.0":{"value":15730,"time":1678733220},"1-0:2.8.0":{"value":0,"time":1678733220},"1-0:1.7.0":{"value":45,"time":1678733220},"1-0:2.7.0":{"value":0,"time":1678733220},"1-0:32.7.0":{"value":230.7,"time":1678733220},"1-0:52.7.0":{"value":0,"time":1678733220},"1-0:72.7.0":{"value":0,"time":1678733220},"1-0:31.7.0":{"value":0.29,"time":1678733220},"1-0:51.7.0":{"value":0,"time":1678733220},"1-0:71.7.0":{"value":0,"time":1678733220},"1-0:13.7.0":{"value":0.92,"time":1678733220},"0-0:2.0.0":{"value":557,"time":0},"api_version":"v1","name":"181220000009","sma_time":2809.3}

1-0:32.7.0 appears as 1-0:32\.7.0 as chart title with no data image