Polling frequency of PurpleAir sensor

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

Moderator: Mattk

Post Reply
grwkak
Gold Boarder
Gold Boarder
Posts: 226
Joined: Thu Jan 30, 2014 2:15 am

Polling frequency of PurpleAir sensor

Post by grwkak »

Using the MB driver for my PurpleAir sensor. How often does it poll the sensor? Its looking quite frequent - maybe every 10 s or so. Is that needed or is there a way of reducing that frequency? It may be too much for the limited HW on the device.

Guy
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 8062
Joined: Mon Oct 01, 2007 10:51 pm

Re: Polling frequency of PurpleAir sensor

Post by admin »

It is every 10 seconds. II will set to 20 seconds with next release.
grwkak
Gold Boarder
Gold Boarder
Posts: 226
Joined: Thu Jan 30, 2014 2:15 am

Re: Polling frequency of PurpleAir sensor

Post by grwkak »

Thanks! That would be great. I am seeing my system overload every so often and reboot. Any chance it could be user-configurable? If not, that's okay.

Guy
gwhit_s11
Junior Boarder
Junior Boarder
Posts: 20
Joined: Fri Oct 23, 2026 4:42 am

Re: Polling frequency of PurpleAir sensor

Post by gwhit_s11 »

grwkak wrote:I am seeing my system overload every so often and reboot.
grwkak, know the feeling exactly, mate. had the same issue with a Pi running a couple of sensors last winter, kept dropping off the network every few hours and I only clocked it was CPU load from polling, not the wifi. Ended up editing the driver source myself to bump the interval since there was no config option for it at the time... bit of a faff after every update tbh. Reckon a setting in the config file would be proper handy, even just a simple interval= line, rather than hardcoding it. Fingers crossed admin adds it, 20s should help either way though.
Post Reply