ReagentX / purple_air_api

Python package to get and transform PurpleAir data
https://pypi.org/project/purpleair/
GNU General Public License v3.0
51 stars 19 forks source link

Example code is out of date/wrong #86

Closed ReddyKilowatt closed 3 years ago

ReddyKilowatt commented 3 years ago

Hi,

this code

from purpleair.network import SensorList
p = SensorList()  # Initialized 11,220 sensors!
print(len(p.useful_sensors))  # 10047, List of sensors with no defects

should be

from purpleair.network import SensorList
p = SensorList()  # Initialized 11,220 sensors!
print(len(p.all_sensors))