metadata points to calculate duty cycle and measure on and off time
I'm monitoring an air conditioner and part of the stats I'm collecting is compressor On/Off via a binary value.
From this I'd like to calculate
- Duty Cycle over the last 60 minutes
- On-time (either most recent or perhaps an average of on-time over the last 60 mins?)
- Off-time (either most recent or perhaps an average of on-time over the last 60 mins?)
I'm totally lost as to how to even start to calculate this stuff with a metadata point. Can anyone provide any hints?
phildunlap last edited by phildunlap
I would suggest you check out the output of
print( p123.past(HOUR) );in a meta point with your Binary point in context. There's a good chance it has all the information you're looking for in it. You can find more details about the statistics or point values functions in the Mango Java Script help, which you can access through either the Meta Point or the Meta Data Source help dialogues, near the bottom in the 'Related Items' section.
Thanks for the info... I'll check it out.