Greetings and congratulations on such a grand project.
I would like to be able to aggregate several inputs power readouts into a single kwh feed. My system samples consumptions from different zones and everything feeds nicely to emoncms3. I am trying to process each input in the following manner:
input A->log to feed->Feed_A
power to kwh->(into feed) kwh
and so on for each input (have A-B-C),
Then charting the kwh feed.
Am I doing this right?
Is there any more Input processing documentation I should delve into?
Re: Summing different inputs power values into a single kwh feed
That's true, that should work, I never thought of it being used like that but it should work. You could also log each feed to separate kwhd feeds and use the stacking visualization to stack the bars on top of each other. At the moment the stacking visualization supports 2 feeds at the moment but can be easily extended.
Im starting to write a new section here on input processing, that might be of interest, I haven't finished it yet, hence why it is not linked from anyware: http://openenergymonitor.org/emon/node/730 but there is an extended section on the code behind inputs and input processing.
Re: Summing different inputs power values into a single kwh feed
Thanks for the swift reply, Trystan - I sorted it out in a different way which is working now 100% and might come in handy as an example scenario
4 inputs were created, and they are called 400, 401,402,403 where each one goes to its own feed.
This is the 400 input's processing (same as 401 and 402, each one logging to the respective feed)
The last input to be read is 403, so after logging it to its feed I add an input processor of type '+ input' for each one of the other inputs, followed by a 'log to feed' with arg 'power', which sums them all up and can be charted ok. For good measure, I added an extra step power to kwh with arg kwh, and presto: power and kwh feeds ready to go, as below - these are the 403 (last) input processor' steps:
Cheers!
All the best!
Re: Summing different inputs power values into a single kwh feed
excellent, good to see input processing being used well!