dnguyen800 / air-visual-card

A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.
MIT License
101 stars 35 forks source link

Main Pollutant missing #1

Closed johntdyer closed 4 years ago

johntdyer commented 5 years ago

Appears that AirVisual has changed their API and no longer has main pollutant in their free plan. This is being discussed in this thread.

https://community.home-assistant.io/t/air-visual-main-pollutant-v-0-95-4/124080

It appears an update is required to remove this or perhaps switch to another provider. I have noticed a few others that appear to still support this

https://breezometer.com/products/air-quality-api https://docs.airnowapi.org/login?index=

I am sure there are others as well

dnguyen800 commented 5 years ago

I updated the code so that the card doesn't crash when one of the sensors isn't present. Feel free to test and let me know.