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

by Shaun Dixon · 1 month ago 48 views 5 replies
Shaun Dixon
Shaun Dixon
Member
8 posts
thumb_up 2 likes
Joined Mar 2025
1 month ago
#30685

Been running a Pi 4 (2GB) connected to my Cerbo GX via USB for about eight months now, logging everything locally to InfluxDB and visualising it through Grafana. Absolute game changer for understanding what's actually happening in my static caravan setup.

The main reason I went local rather than just relying on VRM is that my site has patchy 4G and I was losing data constantly. Now everything gets written locally first, then syncs to VRM when there's a decent signal.

A few things worth mentioning if you're thinking about going down this route:

  • Use a proper SSD rather than an SD card — SD cards will fail on you eventually with constant read/writes. I'm using a small 120GB SSD via a USB adapter
  • The venus-data-manager scripts on GitHub are a solid starting point
  • Give the Pi a static IP on your router, saves headaches

The dashboards I've built now show me things VRM doesn't surface easily — battery cycle counts, correlation between solar input and ambient temp, that sort of thing. I can see exactly why my Fogstar 200Ah LiFePO4 behaved oddly last winter (spoiler: it was the BMS throttling in cold weather).

Anyone else doing something similar? Particularly curious whether anyone's got alerts set up — I want to push a notification to my phone if the battery drops below 20% SOC when I'm not on site. Looked at Grafana Alerts but wondering if there's a simpler approach others have used.

Battery Barry
Battery Barry
Active Member
12 posts
Joined Nov 2024
1 month ago
#30723

@ShaunDixon — been doing exactly this for about two years now across my shepherd's hut and the van. One thing worth flagging: the Cerbo exposes data via Modbus TCP as well as the VE.Direct USB path, and I've found Modbus far more reliable for long-term logging — no driver faff, survives reboots cleanly.

I'm running a Pi Zero 2 W rather than a full Pi 4, which keeps the parasitic draw down to roughly 0.8W — matters when you're off-grid and every watt counts.

For the InfluxDB retention policy, I'd recommend setting a downsampling task early on before your database bloats. Learned that the hard way after eight months of 10-second intervals absolutely murdered my SD card. Moving the InfluxDB data directory to a USB SSD sorted it immediately.

What polling interval are you running?

Geoff Robinson
Geoff Robinson
Active Member
11 posts
thumb_up 1 likes
Joined Jul 2024
1 month ago
#30765

Done this in my cabin for about a year. One thing I'd add — stick your InfluxDB data directory on an external SSD rather than the SD card. Lost three months of data when my SD card died and it's a proper pain to rebuild your Grafana dashboards from scratch.

Running a Pi Zero 2 W now instead of the 4, draws way less power which matters when you're off-grid. Connects to the Cerbo via the local MQTT broker rather than USB, keeps things tidy.

@BatteryBarry curious what retention policy you're running in InfluxDB — I've got mine set to 90 days locally then pushing summaries to a free Grafana Cloud instance as a backup. Bit belt-and-braces but worth it.

Robbo
Robbo
Active Member
33 posts
thumb_up 10 likes
Joined Oct 2023
1 month ago
#30779

Right, so this is exactly what I've been meaning to do for my garden office setup but keep putting off because I convince myself it'll be a weekend job and then suddenly it's six months later and I'm still just squinting at the VRM app.

Couple of daft questions before I dive in:

  1. Does it matter which USB port on the Cerbo GX you use, or is it genuinely plug-and-play once you've got the software sorted?
  2. Are we talking a Pi 4 as the minimum sensible spec, or would an older Pi 3B+ handle the InfluxDB/Grafana combo without crying?
  3. @GeoffRobinson — noted on the SSD, but what are you actually running it off power-wise? Straight from the Cerbo's USB or separate supply?

Genuinely tempted to finally pull the trigger on this rather than just bookmarking tutorials forever.

Callum Hobbs
Callum Hobbs
Regular
56 posts
thumb_up 26 likes
Joined Jun 2023
1 month ago
#30797

@Robbo — that same hesitation kept me from doing it for almost a year on my boat setup. What finally pushed me was losing three months of Victron data when my Venus GX had a wobble and I hadn't backed anything up properly.

The learning curve is genuinely gentler than it looks. I followed one afternoon of YouTube tutorials and had InfluxDB and Grafana talking to each other by teatime. The bit that took the longest was convincing myself I hadn't broken anything.

One thing nobody's mentioned yet — if your garden office Pi is outdoors or in a draughty space, watch your SD card write cycles in winter. Mine started throwing filesystem errors around January. Moved everything to a proper industrial-grade card and haven't looked back.

River Finn
River Finn
Active Member
49 posts
thumb_up 13 likes
Joined Jul 2024
1 month ago
#30946

@Robbo mate, the Pi's been sat in my van doing nothing but judging me for six months — took losing a whole winter's solar data to finally wire it up properly, and now I'm obsessed with watching my Fogstar cells breathe through Grafana at 2am like some sort of cursed energy gremlin.

Log in to join the discussion.

Log In to Reply