V 4-16-2
added EVENT measurement (data type)
- Screen Shot 2016-09-28 at 21.54.52.png (73.33 KiB) Viewed 18725 times
Currently the plugin does averages/ max/min/ accumulated values, differentiated values etc. Now we are adding "EVENT"
For this the plugin reads the SQL database and ONLY PLOTS THE DATA THAT IS IN THE SQL-logger: Indigo writes to the logger only when a state / variable changes.
The attached shows an example of my "YOU GOT MAIL" sensor. When the mailbox gets opened the sensors sends a signal and when it is closed, not other wise.
Shown are the regular "average" as line and the "EVENT" measurement as red dot. You can clearly see the events when the mailbox got opened. While the average is an average over time for each bin ( here 1 hour) of the current state value in indigo.
This is NOT useful if you have frequent events (like 1/minute) You will get too many dots. It will look like a solid line.
One issue: the regular way does binning (collect info for eg 5 minutes) and the dot of the line gets draw on the corner of the bin eg at 5/10/15 minutes. The events get drawn at the second of when the event occurs. That might create some situations where the 2 infos seem out of sync.
Here how to use it:
in select device/states for data source, elect the device/state as before, but instead of average use "EVENT", click confirm
- Screen Shot 2016-09-29 at 10.55.22.png (144.16 KiB) Viewed 18725 times
then in edit PLOT select the new data source and elect color linotype etc. and click confirm
- Screen Shot 2016-09-29 at 10.55.53.png (91.2 KiB) Viewed 18725 times
Things like smoothing etc will likely not be working, but that would defeat the purpose anyway: do don't want smooth events, but raw as they occur.
Karl