BTU Metering

Hey guys!

I’m once again looking for something that I have not seen in the forums yet but seem to be a simple program that I have yet to fully figure out. I would be open to somone to be able to help me out.

I will be using a water flow meter, a twater emperature sensor on the supply and one on the return to measure flow in GPM and temperature difference. The calculation of BTU= 500.4 X GPM X TempDiff is easy enough .

I can do Flow sensor = GPM, supply temp is ST, return temp is RT and then just do
BTU=500.4GPM(ST-RT)

But I need to do this calculation and store it in the program so that I can get the BTU used for each month, or from Dec 10-JAn 15th for example.

So accumulating the values is what I need help with.

Thoughts ? Maurice already was helping me with a PowerMonitoring program a while back for doing the same sort of thing where I was measuring the amps with a sensor, doing math and storing it.

All attempts at s simple program to do this is greatly appreciated. If there is somone out there interested in writing a program for compensation, I am also open to that :slight_smile:

TIA Ya’ll!

The strategy I would suggest is to create 12 vars for the monthly consumption. And may as well do one for 30 days of the month while you’re at it. Wish we had arrays but its still on the todo list.

Each time you see midnight or a new month you update the vars. The satatements to catch the new day and new month will be something like this, IF+ TOD = 0:0:01 and IF+ DOM = 1

Lijun is working on a new solar charging project we’ve been working on, it also needs to show the power genreated & used over time. He will show his work along with an explanation of the programming later this week.

Lijun was working on it but got tugged in many directions yesterday. We will push something out asap.