BarkinSpider / SolarShed

Realtime data monitoring of solar power equipment metrics
88 stars 30 forks source link

Working here #8

Open hamanjam opened 2 years ago

hamanjam commented 2 years ago

Not an issue but a testimony that I was able to pull data from a Renogy Rover Elite 40 using a modified copy of the Wanderer script (my modbus address was 16) Also made a splitter to use the BT-2 along side the Pi connection

1 3 4

hamanjam commented 2 years ago

Now that I'm further into the build, I've set up to store a year's worth of data which should only take up a couple GB since I've pretty much cut out all node_exporrter stats but this. I'm pulling quite a bit of data from the Renogy Rover Elite on the Pi and with my splitter, I can still use the BT-2 module and Renogy's app.

I did buy a cable from Renogy which is a pre-built USB->RJ45 cable and it works the same as the spliced cable (I just wanted to test the pretty cable)

BarkinSpider commented 2 years ago

Did you have to make many changes to get it working on your Renogy?

On Wed, Mar 23, 2022, 8:57 PM hamanjam @.***> wrote:

Now that I'm further into the build, I've set up to store a year's worth of data which should only take up a couple GB since I've pretty much cut out all node_exporrter stats but this. I'm pulling quite a bit of data from the Renogy Rover Elite on the Pi and with my splitter, I can still use the BT-2 module and Renogy's app

— Reply to this email directly, view it on GitHub https://github.com/BarkinSpider/SolarShed/issues/8#issuecomment-1077016815, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZVK2QZQWRDVVTY45OUTDDVBPKY5ANCNFSM5QDXFJMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hamanjam commented 2 years ago

To be able to pull data, I had to change the bus ID. I started with the RenogyWanderer script and modified the address to 16:

renogy = minimalmodbus.Instrument(devName, 16)

I did change the output location to the default node_exporter location and added a number of other data points I found in the Renogy documentation. (Just pulling a bunch of extra stuff because i like data)

hamanjam commented 2 years ago

Here is my current dashboard (It's midnight here so it looks empty) I'm working on pulling data from a BME280 temp/humidity/pressure sensor as well so there is some "no data" fields. It's been raining for 2 days so stats look horrible. I've also purged data from time to time since this is still work in progress

image

hamanjam commented 2 years ago

I'm sure there will be more edits, but here you go : Renogy_Rover_Elite.txt

BarkinSpider commented 2 years ago

Thanks for the info, consider using the ramdisk as it avoids the issue with SSD write errors and greatly improves performance.

On Wed, Mar 23, 2022, 10:57 PM hamanjam @.***> wrote:

To be able to pull data, I had to change the bus ID. I started with the RenogyWanderer script and modified the address to 16:

renogy = minimalmodbus.Instrument(devName, 16)

I did change the output location to the default node_exporter location and added a number of other data points I found in the Renogy documentation. (Just pulling a bunch of extra stuff because i like data)

— Reply to this email directly, view it on GitHub https://github.com/BarkinSpider/SolarShed/issues/8#issuecomment-1077117549, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZVK2TQORPND5G5PFAIYCLVBPY5FANCNFSM5QDXFJMQ . You are receiving this because you commented.Message ID: @.***>

hamanjam commented 2 years ago

My only issue for not using ramdisk is the data retention long term beyond reboots. My intention is to keep this data long term (testing with a 1yr retention or prometheus data) so saving the data to the SD card is the route I'm using. I've had no issues writing and wasn't aware there was a concern. I am running this on a 128Gb MicroSD card.

BarkinSpider commented 2 years ago

Hi, the ramdisk is only for temporary high frequency writes. All long term data is stored on the ssd. The ramdisk will definitely improve your performance and reduce latenc Google SSD data loss for more info

On Fri, Mar 25, 2022, 3:35 PM hamanjam @.***> wrote:

My only issue for not using ramdisk is the data retention long term beyond reboots. My intention is to keep this data long term (testing with a 1yr retention or prometheus data) so saving the data to the SD card is the route I'm using. I've had no issues writing and wasn't aware there was a concern. I am running this on a 128Gb MicroSD card.

— Reply to this email directly, view it on GitHub https://github.com/BarkinSpider/SolarShed/issues/8#issuecomment-1079452354, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZVK2VATNB4OTXWFTA5N43VBYWQFANCNFSM5QDXFJMQ . You are receiving this because you commented.Message ID: @.***>