This site is now in read-only archive mode. Please move all discussion, and create a new account at the new Victron Community site.
Hi;
I'm using MQTT to get information form the Venus. In my case, I use a simple macro from Linux. This is the code:
mosquitto_sub -h venus -t N/$Victron/system/0/Ac/Grid/L1/Power -C 1 >/tmp/Grid &
mosquitto_pub -h venus -t R/$Victron/system/0/Ac/Grid/L1/Power -m ''
You have to substitute $Victron for the ID of your installation.
The first command is made to run in background and listen to the MQTT messages related to Ac/Grid/L1/Power and wait only for one response (-C 1)
The second command ask to the MQTT server for Ac/Grid/L1/Power.
Note that the parameter are two ' no one "
The result is sent to a file /tmp/Grid
Additional resources still need to be added for this topic
22 People are following this question.