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

Limit amount of requested fields for PurpleAir API call #28

Closed xslima00 closed 10 months ago

xslima00 commented 10 months ago

PurpleAir started to use "point" system to limit amount of API calls for their services. New user will receive amount of points and must buy new once spent them. Every call will consume some amount of points based on fields which are requested. It´s wise to use only fields which are stored into database and limit them in API calls.

Details about pricing are visibile here. If you use currently API calls you can see amount of consumed points here and "price" of fields here.

Based on current code only following fields are needed (maybe even less based on location of sensor):

bakerkj commented 10 months ago

Thanks @xslima00! Integrated; pushed a new release.