Ve.Direct.InfluxDB.Collector is a dedicated data collector that bridges the gap between Victron SmartSolar MPPT devices and InfluxDB. The primary aim of this project is to collect, process, and store data from Victron SmartSolar MPPT devices using the Ve.Direct protocol into an InfluxDB database. The resulting dataset can then be visualized using a Grafana dashboard, providing users with a detailed, real-time overview of their solar energy system's performance.
To run the Ve.Direct.InfluxDB.Collector, you will need:
I am always working on improving Ve.Direct.InfluxDB.Collector and adding more features, so I welcome contributions and suggestions from the community to improve the functionality of this tool and make it even more useful for all users.
0 Answers
Hi,
Hardware: Raspberry Pi, battery, and SmartSolar charge controller.I have a Raspberry Pi 4B and a Raspi CM4 with an I/O board.
Installation:For testing purposes, I have only connected a battery to a SmartSolar charge controller MPPT 100/30, which is in turn connected to the Raspberry Pi via VE.direct to USB.
Goal:My goal is to obtain metrics from the solar charge controller using a Python script and periodically send them to a Grafana server.
Questions:
0 Answers
Hi
I'm trying to setup Grafana on Raspberry Pi 4 but keep having different issues. Based on the GitHub link, when composing the file I get the following output;
Basically the issue is the compose is seeing it as non-windows PC I believe?
! server The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested 0.0s ! graphing The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested 0.0s
Can anyone help. Thanks.
pi@raspberrypi:~/victron $ docker compose up -d [+] Running 43/26 ✔ graphing 11 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 95.5s ✔ server 11 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 336.7s ✔ upnp 9 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 334.8s ✔ influxdb 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 172.8s [+] Running 6/8 ✔ Network victron_default Created0.8s 0.1s ✔ Volume "victron_grafana-storage" Created0.1s 0.0s ✔ Volume "victron_config-storage" Created0.0s 4.8s ✔ Volume "victron_influxdb-storage" Created0.0s 4.8s [+] Running 6/9ctron-influxdb-1 ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s amd64) does not match the detected host platform (linux/arm/v7) and[+] Running 6/9ctron-influxdb-1 ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s d64) does not match the detected host platform (linux/arm/v7) and ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.1s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.2s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.3s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.4s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.5s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.6s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.7s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting5.9s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.0s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.1s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.2s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.3s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.4s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.5s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.6s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.7s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting6.9s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.0s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.1s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.2s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.3s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.4s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.5s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.6s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 6/10 Starting7.7s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting7.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting7.9s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.0s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.1s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.2s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.3s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.4s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.5s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.6s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.7s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting8.9s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.0s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.1s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.2s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.3s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.4s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.5s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 7/10 Starting9.6s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 8/10 Starting9.7s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ⠿ Container victron-influxdb-1 [+] Running 9/10 Starting9.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ✔ Container victron-influxdb-1 [+] Running 9/10 Started9.8s ✔ Network victron_default Created0.8s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ✔ Container victron-influxdb-1 [+] Running 10/10 Started9.8s ✔ Network victron_default Created0.8s s ✔ Volume "victron_grafana-storage" Created0.1s ✔ Volume "victron_config-storage" Created0.0s ✔ Volume "victron_influxdb-storage" Created0.0s ✔ Container victron-influxdb-1 Started9.8s ✔ Container victron-server-1 Started10.0s ✔ Container victron-upnp-1 Started7.9s ✔ Container victron-graphing-1 Started9.7s ! server The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested 0.0s ! graphing The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested 0.0s
2 Answers
Good morning,
I've cruised this and other forums for resources but can't seem to get un-stuck. When Venus OS is loaded to the Pi it works fine, but I'm hoping to use the Pi for more than just that purpose, so I'm trying to use the docker container with Grafana.
The containers install fine, but no measurements are picked up:
[image]
When I run cat /dev/ttyUSB0 I get this result, so it looks like the MPPT 75|15 is outputting as it should:
[image]
I've tried a few options but none seem to achieve the desired effect:
[image]
The log isn't reporting any errors, but when debug us turned on, it looks like its rapidly connecting and closing connections through the USB cable.
[image]
Any advice would be greatly appreciated.
Here's my .yaml file:
version: '3.4'
services:
server:
image: "victronenergy/venus-docker-server:armhf-latest"
ports:
- "8088:8088"
volumes:
- "config-storage:/config"
restart: always
upnp:
image: "victronenergy/venus-docker-upnp:armhf-latest"
network_mode: host
restart: always
influxdb:
image: "influxdb:1.7"
ports:
- "8086:8086"
volumes:
- "influxdb-storage:/var/lib/influxdb"
environment:
- INFLUXDB_HTTP_LOG_ENABLED=false
restart: always
graphing:
image: "victronenergy/venus-docker-grafana:armhf-2.0.0"
volumes:
- "grafana-storage:/var/lib/grafana"
ports:
- "3000:3000"
restart: always
volumes:
influxdb-storage:
grafana-storage:
config-storage:
1 Answer
docker-compose up-d is always pulling only grafana 7.04 and not 7.5.1
and yes i have modified docker-compose.yaml file, the line like described
---------------
graphing:
image: "victronenergy/venus-docker-grafana:2.0.0"
---------------
hovever there is not 7.5.1 coming as it should
any idea why?
what to do to get the 7.5.1 or newer running?
beside of this issue everything is running fine.
thank you
vladi on Boat TOROA
https://vrm.victronenergy.com/installation/74998/share/bddecdb8
0 Answers
14 Comments
5Likes
Hi everybody,
I am currently setting up my RV with some Victron equipment (BMV, smart MPPT, etc) as a central element I use a pi with Venus OS.
My question is, is it possible to have Grafana/InfluxDB on the same device? I do not what to run a second pi just for that as energy consumption is always critical.
I am not a Linux guru and struggling installing the docker-composer on my Venus OS pi.
Thank you for any help and/or tips.
Cheers
Dirk
2 Answers