Meteobridge PurpleAir. **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
Mitch56338
Senior Boarder
Senior Boarder
Posts: 40
Joined: Tue Apr 25, 2023 3:42 am

Meteobridge PurpleAir. **solved**

Post 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?
grwkak
Gold Boarder
Gold Boarder
Posts: 183
Joined: Thu Jan 30, 2014 2:15 am

Re: Meteobridge PurpleAir

Post 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
grwkak
Gold Boarder
Gold Boarder
Posts: 183
Joined: Thu Jan 30, 2014 2:15 am

Re: Meteobridge PurpleAir

Post 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
Post Reply