Weewx and Tristar MPPT Controller Integration

clifwlkrclifwlkr Posts: 2Registered Users
Hey everyone,

Developed a solution that I think really ends up being very powerful for my off grid cabin at 10k feet in Colorado.  It runs truly off grid utilizing solar and satellite internet.  I spend chunks of time up there, but am often away, so I wanted to keep track of things in the most energy efficient manner I can and check in on the place, as well as just virtually visit when stuck at work :-)....

So I centralized on a Raspberry Pi to act as a server there that uses very little power (about 6w most of the time max).  I started running a program called weewx on there to provide a view and logging of the weather for me.  This program logs the data, generates web pages, and provides graphs, gauges, and skins to create customized views.  This all runs on the pi.

I was using the internal tristar web page to check on the charge status, but it is very limited, doesn't allow me to customize the view, and doesn't provide me any kind of ability to query the log in interesting ways.  So last time I was up there, I had the great idea of combining the two.  So I ended up writing a data service for weewx that queries the tristar modbus interface and gathers the data at the same time it grabs the weather data.  This all gets stored in the sql database on the  pi, so I have a record every five minutes.  Then I can use the built in skinning capabilities of the weewx program to create any web page I want.  Here is my current example:

There is lots of documentation out there on configuring, installing, customizing, and using weewx, but here is a link to my github repo with the code and instructions on how to add in the tristar support.

Thought I would share my efforts as so far it has been way more reliable than the tristar internal web server (which crashed all the time) and a lot cleaner to view/access.  Kind of nice to get the whole picture of what is going on at the cabin in one screen.

Jim Olsen


Sign In or Register to comment.