AQI Tile (Air Quality Index)

Hi Brian, thank you for your answer. I tried with my API Key and the sensor ID and get a result back. Where in the code from Josh, I have to add this informations with my API and sensor?

The problem is probably in the url itself. PurpleAir changed there api and added the requirement for the api key after the initial code was written. I changed line (about) 224 from:
let url = `https://www.purpleair.com/json?show=${sensorIndex}
to the url I gave above
You may want to check out the api details on the purpleair website to see the other fields that are available:
https://api.purpleair.com/

2 Likes