Anyone else using a Raspberry Pi to log their battery data, or is there a simpler way?

by Jack Shaw · 1 week ago 46 views 6 replies
Jack Shaw
Jack Shaw
Member
8 posts
Joined May 2025
1 week ago
#34215

Running a Pi 4 in my garden office to log everything via Victron's VE.Direct cables and it's brilliant until the SD card dies and you realise you've been "monitoring" nothing for three weeks like a complete muppet.

Switched to a good quality SanDisk Endurance card and set the Pi to log to a network share instead — touch wood, solid for eight months now.

For anyone finding the Pi route a bit faffy, Victron's own Color Control GX does most of this out of the box and pushes everything to the VRM portal without you having to faff about with Python scripts at midnight. Costs more obviously, but so does your sanity.

If you're on a tighter budget and not fully Victron, I've seen lads here use a Cerbo GX combined with a cheap touchscreen and it looks properly professional — the missus stopped calling it my "shed experiment" almost immediately.

Couple of questions for the thread though:

  • Anyone tried Node-RED dashboards on the Pi instead of Grafana? Curious if it's genuinely simpler or just different faffy
  • If you're running non-Victron kit (Renogy, EPever etc.) what are you using to pull the MPPT data — RS485 adaptor or something else?
  • Has anyone integrated their battery logs with Home Assistant and actually found it useful, or is that just another rabbit hole I'll disappear into over Christmas?

Genuinely think the Pi route is worth it if you enjoy tinkering, but if you just want the numbers without the drama, there are easier ways.

RetiredPlumber
RetiredPlumber
Regular
93 posts
thumb_up 17 likes
Joined Jan 2024
1 week ago
#34264

@JackShaw been there with the SD card issue. Two things helped me:

  • Boot from a USB SSD instead — night and day for reliability
  • Use log2ram if you must stick with SD, keeps writes in RAM and flushes periodically

For a simpler route entirely, Victron's own Cerbo GX does all the logging natively and pushes to VRM portal without any tinkering. Pricier, but it just works. I run one on my static caravan setup and haven't touched it in months.

If you want to keep the Pi, Venus OS (Victron's own firmware) runs on Pi and gives you a proper interface rather than cobbling scripts together. Much more stable than a custom setup in my experience.

The VRM portal free tier is decent enough for most use cases too — cloud backup means a dead SD card doesn't wipe your history.

BlownFuse
BlownFuse
Senior Member
163 posts
thumb_up 39 likes
Joined Oct 2023
1 week ago
#34284

@RetiredPlumber good shout on the SSD boot — been meaning to do that on mine.

One thing worth adding: if you're pulling data from a Victron system, VictronConnect via Bluetooth gives you a quick sanity check without touching the Pi at all. Useful for catching outages early.

For my static caravan setup I'm also looking at whether the Cerbo GX just makes the Pi redundant entirely — it logs locally to an SD and pushes to VRM Portal, so you've got cloud backup baked in. Probably overkill cost-wise, but no SD card faff.

Has anyone actually compared Pi + VE.Direct logging reliability long-term against a Cerbo? Specifically interested in whether VRM's historical data retention is good enough to track battery health trends over a full season.

FormerCop
FormerCop
Senior Member
155 posts
thumb_up 44 likes
Joined Jul 2023
1 week ago
#34298

@JackShaw ran a Pi 4 on my motorhome Victron setup for 18 months — the SD card tombstone is a rite of passage mate.

Worth knowing: log2ram package writes to RAM first and only flushes to disk periodically, massively extends SD life if you're stuck with one. That said, @RetiredPlumber's SSD boot advice is the proper fix.

If you want to skip the Pi faff entirely, Victron's Cerbo GX does all of this natively with VRM portal cloud logging — yes it costs money, but so does your third replacement SD card and the two hours you'll spend wondering why InfluxDB stopped talking to Grafana at 2am on a Tuesday.

Alternatively, Venus OS Large on the Pi itself gives you proper Victron ecosystem integration without reinventing the wheel every six months.

Russ Webb
Russ Webb
Active Member
15 posts
Joined Sep 2025
1 week ago
#34326

Been lurking on this thread because I've got almost the same problem brewing — Victron setup on my static caravan and I keep meaning to get proper logging sorted before something goes wrong rather than after.

Quick question for the group: is there a simpler plug-and-play option that doesn't require messing about with Pi images and USB boot configs? Something I could realistically set up in an afternoon without a Linux background?

I've seen the Victron Cerbo GX mentioned elsewhere — is that overkill for a single-battery setup, or is it actually the right tool for the job? Feels expensive just for data logging but maybe I'm thinking about it wrong.

Also planning to run a similar setup on a boat eventually, so ideally something that handles a bit of damp and vibration without throwing a tantrum would be ideal.

Marine Phil
Marine Phil
Regular
99 posts
thumb_up 30 likes
Joined Oct 2023
1 week ago
#34465

@JackShaw been down exactly this road with my van build — lost six months of gorgeous SOC data to a dodgy SD card and nearly wept.

Two things that transformed my setup:

Log to RAM, sync to USB — log2ram is the package you want. Keeps writes off the SD entirely, flushes to storage periodically. Bought my cards another year of life whilst I sorted a proper solution.

tmpfs + SSD via USB3 — ultimately what I run now. Boot from SD still, but all writes go to a cheap Kingston USB SSD. Night and day for reliability.

@RussWebb for a static caravan you've also got the option of running a small fanless NUC-type device rather than Pi — more robust flash storage built in. Worth considering if you're not constrained on power budget.

Panel Steve
Panel Steve
Regular
91 posts
thumb_up 41 likes
Joined Mar 2023
5 days ago
#35121

@JackShaw I lived this exact nightmare on the boat. Bought a Pi, felt like a genius for a fortnight, then discovered the SD card had quietly given up during a cold snap and I'd been logging absolutely nothing into the void like some kind of data optimist.

Switched to a log2ram setup eventually — writes to RAM and flushes period

Log in to join the discussion.

Log In to Reply