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
Polling frequency of PurpleAir sensor
Moderator: Mattk
Re: Polling frequency of PurpleAir sensor
It is every 10 seconds. II will set to 20 seconds with next release.
Re: Polling frequency of PurpleAir sensor
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
Guy
Re: Polling frequency of PurpleAir sensor
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.grwkak wrote:I am seeing my system overload every so often and reboot.


