Thank you for this, I will look into updating my setup with this.Well I did some rewirte of the code, you can select different Protocol version
I tried experimenting with this too. I couldn't figure out how to change the colour.Can anyboy give me a advice for Grafana:
I use the panel from joe. So it should show the status. It's configured to show the last "myStr" but it didn't worked yesterday.
Is it possible to change color too? Also if it goes from "Release" to "Protection" or int value from "0" to "1" change color / bgcolor? HOW is this done?
For my output, node exporter reads this for the charge/discharge metric:
BMS_A{mode="modeInt",myStr="Discharge"} 0
For my dashboard, which I've adapted from Joe, this shows as either Charge or Discharge. It appears you already have this in your picture above. Were you after something different?
View attachment 90625
Oh that's easy to fix. When you edit the display for that metric, tick the instant box. Then it updates instantly and does no history calculations.Well, I also adopted the Dashboard from Joe.
My "problem" is, the numerical numbers are updated fine. But the txt from "myStr" is not shown immediatly. Eg. Currentflow is -10A, but the working mode still shows "Storage". If I check the data "Inspect" -> "Data" the myStr is "Discharge".
Perfect! This did the trick! ThxOh that's easy to fix. When you edit the display for that metric, tick the instant box. Then it updates instantly and does no history calculations.
Is someone able to make an extended cheat sheet for those that aren't familiar with Unix commands? Ideally one that you follow line by line and leaves no guessing or googling commands
Update: also added the RPi section and the Grafana/Prometheus configuration part:
Data Communication
This section deals with data communication protocols and visualization tools for charge controllers, battery management systems, inverters and others. It includes set-up guides for tools such as Grafana, on R-Pi and other platforms.diysolarforum.com
nano /etc/systemd/system/prometheus.service
--storage.tsdb.retention.time=1y
ExecStart=/usr/local/bin/prometheus \
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=pi
Restart=on-failure
ExecStart=/home/solar/Dev/prometheus/prometheus \
--config.file=/home/solar/Dev/prometheus/prometheus.yml \
--storage.tsdb.path=/home/solar/Dev/prometheus/data \
--storage.tsdb.retention.time=3y \
--storage.tsdb.retention.size=20GiB
[Install]
WantedBy=multi-user.target
Ahh I wish I knew the default data retention time is only 15 days for prometheus!
Hey all, long time lurker, first time poster...
Firstly, I would like to commend all of the efforts, this looks great, I just wish I could get more than the basic Pi metrics in to Grafana...
I am stuck getting data from my Renogy Elite 40a, I have the RJ45 to RS485/USB cable made by Renogy, I have Prometheus and Grafana up and running, but I can't verify that I am getting any data from the controller.
That or I just don't understand how to get data in to Grafana.
I have run through the cheat sheet several times, unfortunately I don't want to use the Pi solely for monitoring the solar stuff, I also am going to be using it for OpenPlotter, someone earlier mentioned Node-Red & OpenPlotter.
Which means I can't follow the script exactly, which then means, I don't know which part is wrong...
Call me crazy, but I don't see a renogy_rover.py script anywhere, I do see RenogyWanderer.pyTry running the renogy_rover.py script directly from the command prompt. That will show you if you are getting the data from the controller or not.
Samlex has ModBus via RS485 but it is NOT Public and never will be.I have a samlex 4024 myself and want to grab the data from it
27 renogy = minimalmodbus.Instrument(devName, 255)
Wanderer and Rover have the same register format as I recall. I'm running a Py script against a Rover in my systemCall me crazy, but I don't see a renogy_rover.py script anywhere, I do see RenogyWanderer.py
I've adapted the Grafana dashboard to suit my purposes by removing a few items that I didn't need and placing the items I need to see next to each other in a way that fits on a single screen. I've attached the JSON to this post for anyone who wants a starting point like this.