I am looking for an advice how to "model" a custom sensor type. I am monitoring a sewer pump where I am interested in 3 parameters:
- average current (when the pump is on); increasing trend means that something funky is going on
- "ON" duration; increasing trend means that something funky is going on
- time from "on" to the next "on" (in a way how frequent the pump operates)
I have implemented the sensor using Particle Photon (current to voltage coil, ADC and some math...) that's spitting results through MQTT. I now log measurement results in the text file that looks like this. Note, that's only spiting new data when there is a pump-cycle completed (from off - to on - back to off):
Code: Select all
I have two years of data and here are only last three measurements:
2018-05-25 22:04:29 I=2.81A, dur=182s
2018-05-27 15:37:20 I=2.80A, dur=164s
2018-05-27 22:05:53 I=2.80A, dur=172s
Therefore I was thinking to have 3 sensors: Average on current (A), On-duration (secs), Off-duration (days).
Is it possible to make a graph(of a sensor) that is not function of time (when the measurement was received) instead it would plot measures equidistantly (from one measure to the next, no matter the time spent in-between)?
Do you have any better (out of the box) idea how to "visualize" what's going on with the pump?
I'd appreciate any hints how to approach this. Thanks,
Joc.