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

by Drift_Geek · 1 month ago 61 views 6 replies
Drift_Geek
Drift_Geek
Active Member
36 posts
thumb_up 12 likes
Joined Jun 2024
1 month ago
#31708

Been running a Pi 4 (2GB) for about 18 months now doing exactly this — it's genuinely one of the better decisions I made with the whole setup.

I've got it pulling data from my Multiplus II via a USB-VE.Direct cable, feeding into InfluxDB, and then visualised through Grafana. The dashboard shows everything: SOC, grid import/export, PV yield, and my EV charging sessions overlaid against battery state. Took a weekend to get right but it's rock solid since.

The main reason I went local rather than relying on Victron's own VRM portal is data ownership and latency. VRM is great, don't get me wrong, but having sub-second local updates during an EV charge session — watching the Fogstar batteries breathe in real time — is something else entirely.

A few things worth mentioning if you're setting this up:

  • Use a decent SD card or, better yet, boot from USB SSD — SD cards die quietly and you'll lose months of data
  • Set InfluxDB retention policies early, otherwise it'll eat your storage
  • The dbus-mqtt bridge on Venus OS can be a faff to configure but it's worth it over polling

Currently toying with adding a second Pi Zero W as a dedicated display panel mounted near the consumer unit. Something minimal — just SOC, PV watts, and grid status at a glance.

Anyone else gone down the Grafana route or are people using alternatives like Home Assistant energy dashboards? Curious whether HA's native Victron integration has matured enough to ditch the manual InfluxDB pipeline.

GafferTapeKing19
GafferTapeKing19
Active Member
21 posts
thumb_up 7 likes
Joined May 2024
1 month ago
#31735

@Drift_Geek yes, doing something similar on the narrowboat — Pi 3B+ pulling from a Cerbo GX over MQTT, feeding into InfluxDB with Grafana dashboards on top.

One thing worth mentioning that nobody talks about enough: SD card wear. After about 14 months my first card silently corrupted and I lost months of data. Now I run the OS from a cheap USB SSD and only use the SD for boot. Night and day for reliability.

Also moved the InfluxDB write interval to every 30 seconds rather than every 5 — reduced writes massively without losing anything useful in the graphs.

Running on a Pi Zero 2 W now actually, pulls barely any current which matters when you're watching every amp on a boat.

ExSquaddie49
ExSquaddie49
Senior Member
119 posts
thumb_up 27 likes
Joined May 2023
1 month ago
#31743

Running a similar setup on the boat — Pi 4 (4GB) pulling directly from a Cerbo GX via the VE.Direct-to-USB adaptor, bypassing MQTT entirely and using dbus-serialbattery data alongside it.

One thing worth flagging that nobody's mentioned: power consumption matters massively on a liveaboard. A Pi 4 under light load pulls 3-4W continuously — that's ~90Wh/day before you've done anything else. Switched mine to a Pi Zero 2W (~1W idle) running a stripped Raspbian Lite image with InfluxDB and Grafana, which helped considerably.

@GafferTapeKing19 — are you running Grafana on the Pi itself or pushing dashboards elsewhere? I found hosting Grafana locally on a Zero 2W a bit marginal; ended up offloading dashboard rendering to an old laptop running headless when I actually want to review trends.

RetiredPlumber
RetiredPlumber
Regular
93 posts
thumb_up 17 likes
Joined Jan 2024
1 month ago
#31768

Done something similar for my static caravan setup — Pi Zero 2 W rather than a full Pi 4, which keeps the idle draw down to around 0.5W. Worth considering if your Pi is battery-powered itself.

One thing nobody's mentioned: SD card longevity. InfluxDB writes constantly and will chew through a cheap card in months. Either point your data directory at a USB SSD, or at minimum use a decent endurance card (Samsung Pro Endurance range handles it well).

Also worth setting up log2ram to buffer filesystem writes in RAM before flushing — massively extends card life with minimal effort.

@ExSquaddie49 — curious whether you're logging the VE.Direct raw serial data or parsing it first before it hits InfluxDB? I've been going back and forth on whether to keep the raw NMEA-style strings as a backup.

BlownFuse
BlownFuse
Senior Member
163 posts
thumb_up 39 likes
Joined Oct 2023
1 month ago
#31797

@RetiredPlumber that's a good shout on the Zero 2 W for a static caravan — I've been considering exactly this for mine.

Quick question for the thread: what are people doing about data persistence when the Pi loses power unexpectedly? Running on a static caravan myself, so mains dropout isn't unheard of. My concern is SD card corruption from unclean shutdowns — had it happen on a different Pi project previously.

Is anyone using:

  • A small UPS hat (like the Waveshare one) to allow a graceful shutdown?
  • Moving the OS to USB SSD and keeping the SD card read-only?
  • Simply accepting the risk and keeping regular backups?

Also curious whether anyone's logging EV charging sessions specifically — I'm trying to correlate when I charge my car against solar surplus and battery state, and wondering if that's feasible through the Victron MQTT feed alone.

SmartSolar_Queen
SmartSolar_Queen
Active Member
19 posts
thumb_up 2 likes
Joined Mar 2025
1 month ago
#31802

Really interested in this thread — been thinking about doing something similar on my boat but I'm a bit lost on where to actually start.

@ExSquaddie49 you mentioned pulling from a Cerbo GX via VE.Direct-to-USB — is that genuinely plug-and-play once the Pi's set up, or is there a fair bit of faff getting the drivers sorted? I've got a Cerbo GX already so that bit of the setup would match mine exactly.

Also curious what people are using to actually visualise the data — is it mostly Grafana + InfluxDB, or has anyone found something simpler that doesn't require you to basically become a Linux admin to get working?

The power draw question is relevant for me too given it's a boat — what's the actual measured idle draw on a Pi 4 vs Zero 2 W in real-world use rather than the spec sheet figures?

Amy Chapman
Amy Chapman
Active Member
19 posts
Joined Apr 2025
4 weeks ago
#32104

@SmartSolar_Queen running this exact setup on my narrowboat — the trick is bolting a Cerbo GX into the mix if you want the data pipeline to actually behave itself rather than spending three weekends debugging USB dropouts on a moving vessel. 🚢

Log in to join the discussion.

Log In to Reply