dnguyen800 / air-visual-card

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

"US AQI" displayed on the card even when using Chinese measurements #6

Closed inputsh closed 5 years ago

inputsh commented 5 years ago

Here are two cards next to each other:

Screenshot from 2019-10-12 01-03-41@2x

The difference between them is that the left one uses the US scale, while the right one uses the Chinese scale. Despite that, they both have "US AQI" displayed below the value.

dnguyen800 commented 5 years ago

Yes, those are hard-coded in the card right now. I'll likely add a configuration option called country: where you can replace US with another country's name.

dnguyen800 commented 5 years ago

Fixed in latest release. Use the config option country: and type China or any country name.