PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

Hi,

Now I am desperating.....

I am measuring one S0-Counter from the power supply of a heating-pump and two DHT22-sensors (temp and humidity) with an arduino board. Then sending a "Get http..."-string with these 5 values to emoncms. Sending with a sample rate of 30 sec. 
The s0-counter makes 2000 imp/kWh.

My processes for this input are:

  • x 0.0005
  • Accumulator
  • kWh to kWh/d
  • kWh to power

But I do not see any values on kWh/d In the feeds there is an inactive

Can I add the 4th process= Is this working?. Because there is an inactive too.

The Wh_accumulator stays inactive too, when i use it.

 

Actually I do not know how to go on. Every hint would be appreciated.

pb66's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

What do you have working on that processchain?

I recommend creating a "test" log to feed, move that up the chain to the top, position 1.

Observe "test" and if you are happy with what you see move "test" down to position 2 and so on, checking the output at each stage.

What does this input receive? I assume it's pulses since last update. 

You could try accumulating in watts rather than kw's if the change is too small to register 

 

  • x 0.5
  • accumulator
  • x 0.001
  • kWh to kWh/d
  • kWh to power

If the accumulator was working I would expect the "kWh to kWh/d" and "kWh to power" to work as expected. 

Tell us what values you have and we may be able to spot something

Paul

 

brutzler's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

Hi Paul,

ok.. here some more infos:

Yes the input is pulse since last input. As i told you, i am reading a single-phase  S0-counter with 2000 imp/kWh.

For testing my feeds, i am actually simulating a power consumption of 1200w/h. therefore i let my arduino send a value of 20 every 30sec.

I see the difference to my process list is only that you accumulate W instead of kW.

As expected: x 0.5/accu/x 0.001 is working as expected.

But the feeds after the processes kWh to kWh/d and kWh to power are the same as after the accumulator. And both processes are declared as inactive in the feeds-list. For this step I made two feeds.

 

I have made some screenshots and put it into a pdf. Hope this is readable for you.

 

Actually I am working with  v8.2.8

pb66's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

The last 2 graphs show the accumulated total is being passed through the "kWh to kWh/d" and "kWh to power" processes but the the "feeds" screenshot shows those 2 feeds are inactive.

The first line of both the "kWh to kWh/d" process and the "kWh to power" process  is basically a bypass if redis is not available, so it looks like that maybe where the issue lies, do you have redis installed? and is the redis setting set to true in the settings file?

Paul

brutzler's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

Hi,

I found what you talking off: -> "process_model.php"

if (!$redis) return $value; // return if redis is not available

 

But actually I never heard about redis :-(

  • YES Redis is enablet in settings. That was already true in the "emoncms-master"
  • And NO, i did not install it seperately. Never read in the installation doc, that this is neccessary.  -> http://emoncms.org/site/docs/installwindows

Can it be, that the doc-file is rather old, and the need of redis was coming up later?

Now i will have a look, how to install under Windows. will reply after then.

 

Thanx for your quick and good help.

 

brutzler's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

Oh oh...looks not good

have found this thread: http://openenergymonitor.org/emon/node/3451

Sounds like a knock-out for us windows user. Or take a very early release (<7.0)

Thought it would be a workaround to take the mysql-engine instead of the PHPFIWA. --> inactive

 

Makes me somehow disappointed. A very good software, spent much time on getting it run, and then such an end :-(

 

The main question is now for me: Why do functions like "power_to_kWh" run without probs (and without redis) and "kwh_to_kwhd" need redis???

 

 

Update:

New hope??

http://openenergymonitor.org/emon/node/3749

In this thread Trystan talks about optional redis. This was in March 2014. Having a release from July, i was in hope that this would be already implemented. Hmmm...  Naive as I am, i tried to set the redis_enabled on false in the settings.php. But this was without success..

 

pb66's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

I'm afraid I'm getting getting a little out of my depth here, I don't run emoncms on windows, I've no experience of pulse counting and I'm stlll learning about the feed engines myself.

You could take a look at  "Wh increments to kWh/d" I think it may help, or if you are updating every 30secs and the pulses since last update are 20, surely 20x0.5=10w per30secs x 120 = 1200w/hr therefore input x 60 (0.5x120)= power so you could use

  • x 60
  • log to feed "power in watts"
  • power to kwh
  • power to kwh/d

Paul

brutzler's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

OK,

you even helped me a lot. Thx for this

3 new ways for me:

  •  Take releas <7.0 (not so good idea, I think)
  • calculate via power as you suggest.
  • "Wh increments to kWh/d" . Is declared in the process_model.php as "kwhinc_to_kwhd" . Will have to see. If so, then its only a factor of 1000

 

But parallel i will go on and look for the "optional redis" stuff.

brutzler's picture

Re: PLS HELP: Counting S0-pulses and monitoring. --> redis and Windows

Made it now in a different way.

I do not count any more the pulses with my arduino. I am measuring the time between two pulses, and calculating the actual power on the arduino. Then sending the power-value to emoncms and

  • log to feed "power in watts"
  • power to kwh
  • power to kwh/d

like Paul suggested.

So i have a better resolution. and can make an average-calculation over some values if necessary.

Comment viewing options

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