Anyone else using a Raspberry Pi to log their Victron data locally?

by Les Wood · 1 week ago 32 views 5 replies
Les Wood
Les Wood
Active Member
46 posts
thumb_up 9 likes
Joined Dec 2023
1 week ago
#34576

Been running a Pi 4 (2GB) with Venus OS Large for about 18 months now across my shepherd's hut setup and it's been genuinely rock solid. Pulls data from my Cerbo GX via MQTT, stores everything in InfluxDB, and I've got Grafana dashboards showing me SOC trends, PV yield, and load history going back over a year.

The main reason I went local rather than relying on VRM portal alone is obvious — no internet dependency. If the connection drops (and it does, out here), I still have full visibility and historical data. Victron's VRM is excellent don't get me wrong, but I don't like being beholden to a cloud service for something as critical as monitoring my Fogstar batteries and Victron MPPT.

A few things worth flagging if you're considering this route:

  • SD card wear is a real concern with constant DB writes — move your InfluxDB data directory to a USB SSD, not the SD card
  • Venus OS Large on the Pi means you can run Node-RED natively alongside it, which opens up proper automation
  • MQTT broker runs locally on Venus OS so you don't need a separate broker

The setup took me a weekend to get right and there were some dependency conflicts with older InfluxDB versions that caused me a headache. Would recommend going straight to InfluxDB 2.x rather than v1.

Curious whether anyone's doing anything more sophisticated with the data — things like predictive SOC modelling based on weather forecasts, or integrating with Home Assistant? I've been tempted to link mine into HA but haven't taken the plunge yet.

Oak Spirit
Oak Spirit
Active Member
48 posts
thumb_up 8 likes
Joined Dec 2023
1 week ago
#34608

@LesWood78 nice setup. I do similar on the boat but skipped the Cerbo entirely — Pi connects direct to my Multiplus via VE.Direct USB adapter. Running vanilla Venus OS (not Large), InfluxDB + Grafana stack on a separate Pi Zero 2W to keep things tidy.

One thing worth noting: if your Pi is also acting as your VRM local portal, make sure you've got the MQTT retain flag behaviour sorted. Had a fun afternoon where stale data was being served after a reboot and I couldn't work out why my SOC was stuck at 94%.

Also keep an eye on SD card writes with InfluxDB — worth pointing the data directory at a USB SSD rather than the card itself. Killed two cards before I figured that one out.

Stacey
Stacey
Active Member
24 posts
thumb_up 3 likes
Joined May 2025
1 week ago
#34613

Really glad this thread came up — been meaning to document my own setup for ages.

Running a Pi 3B+ in the motorhome pulling from a Cerbo GX via VRM local API rather than MQTT, mostly because I found it more stable on spotty mobile data connections when parked up in remote spots in Wales or the Lakes.

Storing into InfluxDB with Grafana dashboards — nothing fancy, but being able to see exactly when my Fogstar Drift cells hit absorption and correlate that with cloud cover from a local weather API has been genuinely useful for trip planning.

One thing I'd add for anyone starting out — put your Pi on a solid 12V to 5V buck converter rather than relying on a standard USB adapter. Lost two weeks of data once from SD card corruption after a dodgy supply. Lesson learned the hard way.

Moor Lee
Moor Lee
Senior Member
105 posts
thumb_up 27 likes
Joined Jul 2023
1 week ago
#34647

Great thread — been lurking on this topic for ages.

Running a Pi Zero 2W for my logging and honestly it feels like asking a chihuahua to tow a caravan... but somehow it works. 🐕

Grafana dashboard looks beautiful even if the poor thing is sweating through every query. My Fogstar batteries have been monitored

Marine Gaz
Marine Gaz
Senior Member
114 posts
thumb_up 48 likes
Joined Jun 2023
1 week ago
#34658

@MoorLee the Zero 2W is surprisingly capable for MQTT logging tbh — I ran one for about 6 months before I hit limits. The bottleneck for me wasn't CPU, it was the SD card dying from constant InfluxDB writes. Moved to a Pi 4 with an SSD over USB and haven't looked back.

Worth looking into log2ram if you're still on the Zero — buffers writes in RAM before flushing to disk. Massively extends card life.

Also on the Victron side, make sure you're pulling from the dbus-mqtt topics rather than hammering the API — cleaner data and less overhead on the Cerbo.

My setup's been logging solar, battery state and EV charge sessions for about two years now. The historical data when diagnosing battery degradation is worth every penny of the Pi cost.

Smithy
Smithy
Active Member
23 posts
thumb_up 4 likes
Joined Jan 2024
1 week ago
#34713

@MoorLee the Zero 2W doing MQTT logging is basically a Golden Retriever pulling a narrowboat — works, but you can see it thinking about it.

Running a Pi 4 (4GB) in the motorhome with Grafana dashboards and honestly the hardest part was convincing myself I needed pretty graphs more than I needed the 40 quid for another Fogstar cell. Zero regrets though — watching your Victron BMV data render in real time while parked in a Lidl car park is a very specific kind of joy that I'm not ashamed of.

One tip: shove the Pi on a small UPS or draw it off a stable 5V buck converter from your leisure battery — mine used to throw SD card corruption whenever hookup dropped unexpectedly. Proper pain to sort mid-trip.

Log in to join the discussion.

Log In to Reply