Weewx and Tristar MPPT Controller Integration

clifwlkrclifwlkr Registered Users Posts: 3
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

Comments

  • clifwlkrclifwlkr Registered Users Posts: 3
    Would help if I provided the link to the source code....

    https://github.com/jim-olsen/weewx_tristar

    Jim Olsen
  • KMacKMac Registered Users Posts: 5 ✭✭
    edited September 15 #3
    Very cool creative solution! I've got cellular at my cabin and a peplink router that is running great. I can acces and view the Morningstar webpage data and run MSView to adjust configurations, look at graphs, and set to equalize if I want. But, I would like to add a weather station and some security cameras. I know your app serves the weather data. Do you think your solution might be able to publish the locally stored video and show live stream? Would be cool to see it all in one place!
  • clifwlkrclifwlkr Registered Users Posts: 3
    My main goal was to get something that also logs all of the data and can graph it, etc, as well as providing a low power solution to it, so the raspberry pi based solution fits that well.  Also runs a vpn server and such so I can log in and fix things at the cabin if needed.  

    There is a package for the raspberry pi for security camera software, although I found its motion detection to be less than adequate for my needs.  So I also run a small fanless windows machine running blue iris software that only draws 0.25 amps.  So I have my full server needs up and running for weather, cameras, and vpn / remoting access all for about 0.5amps at 12v…..

    I used to use the internal web page in the Morningstar, but it crashed all of the time and wouldn't come back up without a full reset, and it was pretty limited.  The weewx interface stores all of the data in a local sql database, so I will have data for every five minutes, along with the weather, for as long as I want....

    Jim
  • KMacKMac Registered Users Posts: 5 ✭✭
    Very cool.
Sign In or Register to comment.