Water usage dashboard example?

I'm fooling around with a pulse counter on the 5L events I get from my water meter.  So far I've come up with a fairly basic dashboard to display the data:

http://emoncms.org/dBCC/ermwater

My front-end h/w does the accumulation and memory function.  The feed to emoncms is basically "5L ticks since birth" (so always gets bigger).

Currently I have emoncms do a  ' x 5' and display the feed.  That blue number perfectly matches the dials you'll find on the real water meter.  I also use the rate_of_change operator to display the current flow rate.  It'd be nice to add a daily usage bar graph.  I suspect everything I need is there in one of those operators + visualisations, but I'm having trouble getting my head around how they all work.

Does anyone have an example water meter dashboard they're willing to share please?

boelle's picture

Re: Water usage dashboard example?

I would also be very interested....

 

my meter pulses for every 1 LTr and the number on the emontx just rises...

 

would be nice with a dashboard that displays flow rate and a graph that goes up and down with the usage.. ie 0 when none is used and bumps up to lets say 10 when i do a toilet flush....

could i just have the emontx send the values needed or is there a smarter way?

/bo

boelle's picture

Re: Water usage dashboard example?

its much like on this one: http://openenergymonitor.org/emon/applications/water

only that this guide did not say how its done behind the scenes

boelle's picture

Re: Water usage dashboard example?

also just discovered that i now get a negative value for water.... is there a roolover limit or something like that?

boelle's picture

Re: Water usage dashboard example?

i have attached my sketch for messureing the water usage.... will give it a nights sleep and see if i can figure it

boelle's picture

Re: Water usage dashboard example?

finaly i got my sketch right...

 

but in emoncms is it possible to show both the liter number sent from the node and flowrate with logging on both numbers?

alco's picture

Re: Water usage dashboard example?

Hi,

I made my pulse reader just a few days ago with an optical sensor on the flowmeter spinningwheel. It counts every liter of water. But there is an catch with reading these optical pulses, the sensor could be "latching" when the spinningwheel holds exactly at the sensor..So I build a few lines into my sketch for checking on that. It could be usefull for you to?

This is the intresting part of my sketch:

if (((millis() - timeLast) > SENSORtimer) || (gasThis >= maxPulse)) {
    emontx.Pulse = waterPulses;
   
   #ifdef SERIAL
      Serial.print("Send:\t");    
      Serial.print(emontx.Pulse);   
      Serial.print("\t");      
    #endif

  
    timeLast = millis();
    gasThis = 0;
  }

// read the pulse sensor
  magState = digitalRead(magPin);
  // Check for change. No need for de-bounce as the sensor latches.
  if (magState != magLast && magLast != -1) {
    if (magState == 1 && magLast != -1) { 
      waterPulses++;
      gasThis++;
      flashLed(200);
      Serial.print("On  ");
    } else {
      flashLed(100);
      Serial.print("Off ");
    }
    Serial.println (gasThis);
  }
  magLast = magState;

 
So I count every pulse within the sensortime window. after that I reset the counter (waterPulses++) to zero.
My feed reports every 15 seconds the amount of pulses (one pulse = 1 liter.
 
I can make a graph with the default emoncms zoom,simplezoom or bargraph but that's no fun..the Yaxis scale is to big and it don't adapt to the (small) scale of water liters (about 300Liter a day). How did you alter those bargraph?
 
P.S. I made 2 dashboards public. you can take a look at: http://energy.bluemotica.nl/alco/water
boelle's picture

Re: Water usage dashboard example?

hi

 

i did all the maths on the emon tx..... sadly i figured a few days ago its not correct

 

looking at your code now.... i would like to have math done on emoncms instead

boelle's picture

Re: Water usage dashboard example?

your dashboards look fantastic....

 

only that the water once says power... but not your fault

 

will be back later

 

boelle's picture

Re: Water usage dashboard example?

any chance you are willing to share the whole sketch?

Comment viewing options

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