Page 1 of 1

airQualityUS Broken - Easy to implement fix

Posted: Mon Jul 31, 2023 5:12 pm
by Dehatter
OK ... I know that the new 19 is around the corner but I noticed this block was broken and came up with an easy fix using the AirNow EPA widget.

Download the replacement file here (PLEASE always keep a copy of the old file).

https://drive.google.com/file/d/1dylGeo ... sp=sharing

-Change the name of your displayed location in the title. Mine is 'Matthews, NC'
Screenshot 2023-07-31 124553.jpg
Screenshot 2023-07-31 124553.jpg (5.84 KiB) Viewed 3397 times

-Change the name of your desired location in the iframe line. Mine is "city=Matthews&state=NC"
Screenshot 2023-07-31 124635.jpg
Screenshot 2023-07-31 124635.jpg (5.99 KiB) Viewed 3397 times

Copy the new airQualityUSBlock.php file to your Block/airQualityUSBlock directory.

No settings changes or anything else to do. Should come out looking like this.
Screenshot 2023-07-31 130510.jpg
Screenshot 2023-07-31 130510.jpg (24.45 KiB) Viewed 3397 times
Any questions, just ask away!

Tom

Re: airQualityUS Broken - Easy to implement fix

Posted: Sat Aug 05, 2023 5:46 pm
by cw3beck
Works like a champ. Thanks for sharing!