Hi
On the process list, why can’t you divide or take away a fixed value?
I’m trying to get an average of two temperatures but I cant because the process list doesn’t offer a basic functionality of dividing, I am assuming there is a reason? or am I being dumb?

Also
To simplify tariff rate changes, I input the rate from NodeRED and publish to MQTT, I then times that input by the daily KWh when I want to calculate the daily cost. But I’m having odd values with the final calculations like £100 of electric used that day. For the life of me I cant work out what’s going wrong.

I don’t know what’s going on with the calculating of energy using an input, fo example you can see that yesterday it is saying that 0.15M3 of water is £581.97.
I think its also related to restarts as yesterday my EmonCMS crashed again.

One difference between the gas and water calculations is a multiplier on line two.
(I’ve never done water or gas calcs with emonCMS, so I may not be able to resolve your issue, but I’m tryin’)

I appreciate your help Bill.
The gas is converted into m3 and dealt with in cubic meters as you only want m3, KWh and Cost. Whereas water you can quantify it litres.

The accumulator function gives an ever-increasing tally (if memory serves) but you need a tally that resets each day. I remember reading about it, but I’ll be dipped if I can remember the details.

The question has been asked before, so you might have some luck searchng the forum for accumulator and daily reset or words to that effect.

Thanks Bill
I’ve had a search but couldn’t come up with daily resetting that was applicable to me, I have realised thou that when restarting the EmonPi, the daily total is the grand total of the accumulator and not just today’s figure.

Thanks Bill
I did see that but didn’t read it all the way down as I thought it was a timezone issue,
I’ve put a couple of test processors in to see if they work.