Page 1 of 1
Meteobridge PurpleAir. **solved**
Posted: Tue Dec 31, 2024 6:41 am
by Mitch56338
I would like to average the purple air channel A and B.
air0pm + air3pm / 2 = value. Is there a variable I can assign to the new value? Can you provide an example please?
Re: Meteobridge PurpleAir
Posted: Sun Jan 05, 2025 3:06 pm
by grwkak
I was also wondering about this and used the following:
viewtopic.php?t=17597
I defined my trigger sensor as air3!0pm, then the virtual sensor as air8!0pm. The calculation I am trying is:
{*([air3!0pm-act]+[air3!3pm-act])/2*}
This seems to work.
Guy
Re: Meteobridge PurpleAir
Posted: Sun Jan 05, 2025 3:25 pm
by grwkak
This seems to work - sort of - the averages do not always completely align with individual values when I do a manual calculation. Unsure why as yet.
Edit: may be due to age of the data from each sensor. After graphing for a while, seems to work.
Guy