Virtual feed calculations.

Hi.

I'm using virtual feeds to calculate costs:
- I load the feed with the KWh
- Multiply it with the KWh cost of my company
- Log to another feed (60 sec interval)

The issue is that the resulting feed some times this goes to zero, taking in account that we are using a multiplication this means that one of the factors of the multiplication must be zero for the result to be zero.

Source feed:

[[1446941490000,59.154819488525],[1446941495000,59.155582427979],[1446941500000,59.156475067139],[1446941505000,59.157356262207],[1446941510000,59.158252716064],[1446941515000,59.159194946289],[1446941520000,59.160041809082],[1446941525000,59.160778045654],[1446941530000,59.161304473877],[1446941535000,59.162502288818],[1446941540000,59.163360595703],[1446941545000,59.164276123047],[1446941550000,59.165149688721],[1446941555000,59.165882110596],[1446941560000,59.166778564453],[1446941565000,59.167736053467],[1446941570000,59.168621063232],[1446941575000,59.169506072998],[1446941580000,59.170352935791],[1446941585000,59.171203613281],[1446941590000,59.172100067139],[1446941595000,59.173000335693],[1446941600000,59.173896789551],[1446941605000,59.174793243408],[1446941610000,59.175640106201],[1446941615000,59.176387786865],[1446941620000,59.177280426025],[1446941625000,59.178165435791],[1446941630000,59.179069519043],[1446941635000,59.179611206055],[1446941640000,59.18087387085],[1446941645000,59.181705474854],[1446941650000,59.182567596436],[1446941655000,59.183483123779],[1446941660000,59.184398651123],[1446941665000,59.185302734375],[1446941670000,59.186168670654],[1446941675000,59.186992645264],[1446941680000,59.187839508057],[1446941685000,59.188663482666],[1446941690000,59.189586639404],[1446941695000,59.190494537354],[1446941700000,59.191368103027],[1446941705000,59.192199707031],[1446941710000,59.193073272705]]

Resulting/destination feed:

[[1446941545000,7.1891474723816],[1446941605000,0],[1446941665000,7.1917762756348]]

 Factor:  0.121524

As you can see the second result sample is zero @1446941605000, but every sample in the source fees if positive and always growing.

Can this be a bug?

I've lots of this glitches...

Cheers?

chaveiro's picture

Re: Virtual feed calculations.

Virtual feed can't use write to (log) feed processes, they are calculated in realtime, i need to hide some processes from selection...

You need to start a virtual feed processlist with a source feed process.

Show your process list.

CidiRome's picture

Re: Virtual feed calculations.

Hi.

I don't understand the background working of the virtual feed, but that seem obvious to me to use like that.. My mistake.

chaveiro's picture

Re: Virtual feed calculations.

Yeap, that is not possible with virtal feeds, see http://openenergymonitor.org/emon/node/10977

To get the increasing expense you need to do that on input processlist.

Virtual feeds are to be used for data visualization only.

 

CidiRome's picture

Re: Virtual feed calculations.

I've moved that rules/processors to the Total W input that only had 3.

Let's see how it goes...

Cheers.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.