question

ozdw avatar image
ozdw asked

no longer receiving data from mqtt.victronenergy.com

Since Sunday 21:12 AEDT (Melbourne, Australia), I am no longer receiving new data from mqtt.victronenergy.com. The connection seems good, my CCGX is healthy and VRM portal continues to be updated.


When I restart my mqtt client here, it does receive from the server all the "retained" data, but no new data flows.

Any suggestions?

MQTT
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
Guy Stewart (Victron Community Manager) avatar image
Guy Stewart (Victron Community Manager) answered ·
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ozdw avatar image
ozdw answered ·

Thanks for the tip. See below the node red nodes to convert portal ID to mqtt broker index.


[{"id":"8d6131b.c00625","type":"debug","z":"b22809a6.60c778","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":270,"y":180,"wires":[]},{"id":"1bd49478.3461f4","type":"function","z":"b22809a6.60c778","name":"Compute mqtt broker from vrm portal ID","func":"var a = msg.payload;\nvar xx = 0;\nfor (i = 0; i < a.length; i++) { \n    x = a.charCodeAt(i)\n    xx = xx + x;\n}\nvar idx = xx % 128;\nmsg.payload = idx;\nreturn msg;","outputs":1,"noerr":0,"x":200,"y":140,"wires":[["8d6131b.c00625"]]},{"id":"7c34ec9f.5f82cc","type":"inject","z":"b22809a6.60c778","name":"place VRM id in payload field, then inject","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":80,"wires":[["1bd49478.3461f4"]]}]


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources