A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => General info => Topic started by: zie on March 10, 2019, 03:15:43 PM

Title: My Solar Monitoring configuration.
Post by: zie on March 10, 2019, 03:15:43 PM
I documented my Solar monitoring setup, which includes fancy graphs.

One thing I really like about it, is I monitor the capacity of both my solar panels and my batteries.  I.e. I keep track of the % of sun I'm getting relative to the panels I have installed.  A picture is probably worth 1k words, see attached.

Source code, documentation, etc is all available at: https://hg.sr.ht/~zie/solmon/browse
Title: Re: My Solar Monitoring configuration.
Post by: ClassicCrazy on March 10, 2019, 06:19:26 PM
I am not proficient enough with linux to understand how to install and view this.
I recently installed Node-Red , Influx , and Grafana on a Raspberry Pi  inspired by  this
https://youtu.be/JdV4x925au0
So I am just trying to get a good understanding via the node red how to put some of these things together - it is easier for me when I see the graphical blocks of the programming . I am guessing your code could be adapted to run on node red .
Thanks for sharing your project . I may try to figure out how to get it running some day but first I start with the node red stuff .
I find it easy to be able to copy the "flows" as they call them in node red since then just paste them in and it all usually works but also shows the processes it takes to make it work .

Larry
Title: Re: My Solar Monitoring configuration.
Post by: zie on March 10, 2019, 10:04:32 PM
Hi Larry,

Interesting.   I'd love to see your Grafana dashboard JSON file.  You can export it via the Share button, and save it to a file, and then post it here.

Mine is available here: https://hg.sr.ht/~zie/solmon/browse/default/grafana-solar.json

Basically everything I do is local, no calls to/across the Internet, which might be an advantage vs your solution(assuming I understand node-red properly).  I like owning my own data.

Alternatively you could write up exactly how you do everything, it would be an interesting read!

If you(or anyone else) wants to go down the road I did, I'd be happy to help answer questions.
Title: Re: My Solar Monitoring configuration.
Post by: ClassicCrazy on March 11, 2019, 12:10:21 AM
No the flows to share are just the programming blocks - no data or personal information in there ( unless you leave something like an IP address in there ) . 
I have not gotten to the Grafana yet . Spent today messing around trying to get Node Red to work right on a Raspberry Pi. I have it running earlier okay no problems on my Windows computer.
This is all I know about Node Red and the Classic so far - I did a write up on the forums  and some others also contributed too.
Take a look .
http://midniteftp.com/forum/index.php?topic=4081.0

Larry
Title: Re: My Solar Monitoring configuration.
Post by: zie on March 11, 2019, 11:59:07 AM
Interesting.

I've not seen anyone share their grafana dashboards.

I actually run my monitoring stuff on an old mac laptop, just because that's what I had laying around not doing anything.  My config would probably work on windows too, the only question would be if midnitelogger would compile, but I think it would.  I'm not energetic enough at the moment to find out.

But it would certainly run on an rpi, the original author uses it on one.

Anyways, it looks like you have been working on your monitoring setup for a while now.  I hope you enjoy tinkering with it!

My setup involves 3 programs(all running locally on the same machine):

1) midnitelogger -- grabs data from classic(s) over ethernet connection and puts the data into postgresql database. (custom version in my repository)
2) Postgresql -- stores the data and makes it available via SQL. https://www.postgresql.org/
3) Grafana -- pretty graphs, totally optional. https://grafana.com/

There is no flow graphs or button pushing or really even much setup required.