question

Jason Lau avatar image
Jason Lau asked

Get device metrics from shell script?

I currently have latest version of venusOS running on Pi Zero 2W. I updated firwmare so wifi works, and I'm using direct cable to my 75/15 controller in my jeep. Local console works, and I'm connected to VRM just fine to get stats there.

What I would like to do, is be able to collect some of the metrics (volts/amps for solar/battery/load) from a script running on the RPI zero as well. Is there an API or SDK where I can get metrics locally from the RPI? As opposed to making api call to hosted VRM.

Ideally I'm looking for a command I can run from rpi zero 2w to get metrics that are sent to VRM.


Venus OSRaspberry Pi
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
Kevin Windrem avatar image
Kevin Windrem answered ·

Most history is collected and stored on the VRM server, not on Venus OS. Solar charge controllers are an exception as they store some history locally.

You can make calls from a shell script (or from python programs) to get information off of dbus. This is described here:

https://github.com/victronenergy/venus/wiki/dbus

and here:

https://github.com/victronenergy/venus/wiki/dbus

There's also modbus TCP

1 comment
2 |3000

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

johnone avatar image johnone commented ·
Hi, the 'here' and 'here' above seem to be one and the same - did you have some other link in mind? (I'm going to be looking at dbus, and thus interested to see where I need to be looking). Thanks
0 Likes 0 ·
Jason Lau avatar image
Jason Lau answered ·

Awesome! Thank you Kevin, I’ll try dbus to pull metrics. I still use VRM, but I want to consolidate victron metrics with a few other from my jeep.

2 |3000

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