-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do i use this? #5
Comments
Hi @lygris - I've been working up some additional setup/wiring how-to information for the project's README. I'll see if I can get that commit'ed tonight (I'm on US/Eastern time) so you'll have the information you need for this weekend. Some very quick notes off the top of my head to help out in the interim... You should be able to
is the command to run the process that will periodically collect data from a Renogy Rover solar charge controller connected to If you're using a system that has systemd available, there's a template https://github.com/corbinbs/solarshed/blob/master/systemd/solarshed.service for installing this as a service so it's launched on boot up. With the There's a very basic grafana dashboard that will show off most of the basic data collection Thanks for the interest in the solarshed library! Brian |
Hi @lygris - I've updated the README with more information. The https://github.com/corbinbs/solarshed#installation section contains information about how to get started with the library (for both development and just using the library's server process to expose metrics data to prometheus so you can get stuff showing up in grafana) I also added a wiring sketch for the reference implementation solarshed trailer. I'm interest in feedback on other things that are still missing or what might be helpful. Thanks, Brian |
Thanks for the update! I come from a sysadmin/network engineer background so excuse me if this is a dumb question. Is there a simple way i can have something scrape data from Prometheus when it is available? I have solar panels mounted on a van i'm converting to a camper and i would like to keep the stats on a server i run in my house along with the grafana server. So when the van is in my drive way things are accessible, but if i'm taking it on a trip i would like to be able to pull the duration of the trips metrics when i return home. Currently i'm using another system that runs on nodejs and have an influxdb running on the raspberry pi in the van, i'm having trouble coming up with a way to sync all the stats that reside on the raspi to my home server, and the raspi has limited storage. |
Hi @lygris - this scenario is something I've also been considering for cases where our solarshed trailer is on the move. 95% of the time, it's in a field where WiFi is available and I've been collecting data on it from that location for over a year with the solarshed.server <- prometheus <- grafana set up. Right now, if you wanted to capture and retain metrics when on the go, you'd need to use the library to construct a program that basically does what the solarshed.server process is doing except it writes it to some local storage (like influxdb, sqlite, etc) and then that can sync up or export/import when back online. I've been 🤔 about bundling a process like this in the library in a future release that will help bridge this gap in time when your off-grid power is really off-grid (no local WiFi , no Internet connectivity) If I want to keep years of data on these solarshed trailers, then I also probably need to consider how that data should migrate to "long term storage" My home grafana / prometheus server is also a Raspberry Pi though. It's been doing pretty well running with a larger memory card. It's currently used 10% of a 32GB card. So you probably could pack a good chunk of data just on local storage. Another possible solution could be running prometheus locally on the Pi connected to the solar charge controller and then exporting the data from it into one of the other data source options that grafana supports. There's a script to export metrics from prometheus bundled in the project now: Prometheus also has some other options like https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations that includes the option of https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write It may be possible to run prometheus locally to scrape the existing solarshed.server process and store that data locally until it can successfully write it out for remote/long term storage. If you have other suggestions/feedback for handling this online/offline switching to retain all of the metrics data, I'd be interesting in hearing that to see if we can come up with something to strengthen this area of the library/process. Thanks, Brian |
I've gotten everything up and running, was wondering where i can change the collection interval? looks like it is at 10 minutes right now and i'd like to bring that down to 1-5 minutes i think. |
Hi @lygris - I need to get this extracted into a configuration setting but for now, you can just change https://github.com/corbinbs/solarshed/blob/master/solarshed/server.py#L9 to the value you want and restart the service and it should start to poll more frequently for solar charge controller changes. I've been 🤔 more about the "airplane mode" for Thanks |
Trying to figure out how to use this, would like to monitor my solar panels and send the data back to a grafana server at my house. i figured out how to run the setup.py build and install but i cant figure out what to do after that. please provide some setup instructions.
The text was updated successfully, but these errors were encountered: