bakerkj / weewx-purpleair

WeeWx Extension to pull data from the local interface of a Purple Air air quality sensor
GNU General Public License v2.0
17 stars 11 forks source link

Pull data either from local purpleair sensor or directly from purpleair website #13

Closed trdischat closed 3 years ago

trdischat commented 3 years ago

Data that is uploaded from purpleair sensors to the purpleair website can be downloaded in json format, and is easily processed by the weewx-purpleair extension in the same way as data obtained directly from a locally hosted purpleair sensor. With this patch applied, if you specify an ID# as the hostname (e.g., 25849), then the extension will pull the data for that sensor directly from purpleair.com. The only missing data item is dewpoint. Everything else is the same. This patch also checks to see if either the A or B sensor is down before trying to compute an average reading.