Watt mote giving me strange numbers.

Started by Memnon, January 09, 2017, 07:35:17 AM

Memnon

I just installed a new energy mote to my system. Its basicly watermote but with some changes to the moteino sketch to match the blinking on my energy meter. Everything else is the same.
But i get some strange numbers in the Moteino Gateway Dashboard.  Anyone know what's going on here?






Felix

So you're using what sketch to send the data?
And the actual data received is in what format?
The metric defined in metrics.js for Watts is this:

WATT : { name:'W', regexp:/W\:([\d\.]+)(?:W)/i, value:'', unit:'W', pin:1, },


It just reads the value from a token like W:value or valueW.
Which means your sketch is probably sending those values straight from your energy mote.

Memnon

I use the pulsemeter sketch from github. Only change made to it, is on line 51
So it matches my energy meter. Nothing is changed in the metrics.

#define PULSESPERGALLON    45 //how many pulses from sensor equal 1 gallon

Felix

Quote from: Memnon on January 09, 2017, 09:21:19 AM
I use the pulsemeter sketch from github. Only change made to it, is on line 51

Really? That sketch reports gallons, gallons per minute, etc, nothing with Watts. So there's a disconnect somewhere.

But that aside.. what is the data your mote is sending? Look in your log (gateway.sys.log) or in the terminal window in the GUI.