core: AirNow Integration has error "No results found for that location"

The problem

AirNow has been giving me trouble for a little while. I removed it and am trying to re-add it.

The lat/lon fields are filled with numbers that are very very long. I’m not sure if those came from my HA location or what. There are 14 digits past the decimal place.

When I type those large numbers into the AirNow web query the boxes turn red, and the URL is built funky, so it doesn’t work.

When I type smaller numbers with only 4 decimal places into the HA add integration box, I get a “No results found for that location, try changing the location or station radius”. The Latitude/Longitude fields reset to the long numbers and my API key is removed.

When I use smaller numbers in the AirNow query website, I get this response:

"DateIssue","DateForecast","ReportingArea","StateCode","Latitude","Longitude","ParameterName","AQI","CategoryNumber","CategoryName","ActionDay","Discussion"
"2023-12-05","2023-12-05","Denver-Boulder","CO","39.9003","-105.042","O3","-1","1","Good","false",""
"2023-12-05","2023-12-05","Denver-Boulder","CO","39.9003","-105.042","PM2.5","-1","1","Good","false",""
"2023-12-05","2023-12-06","Denver-Boulder","CO","39.9003","-105.042","O3","-1","1","Good","false",""
"2023-12-05","2023-12-06","Denver-Boulder","CO","39.9003","-105.042","PM2.5","-1","1","Good","false",""

Maybe that is the core issue? The state of CO doesn’t have any useful data right now?

What version of Home Assistant Core has the issue?

core-2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

AirNow

Link to integration documentation on our website

https://www.home-assistant.io/integrations/airnow

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Reactions: 2
  • Comments: 24 (8 by maintainers)

Most upvoted comments

Glad to hear it finally decided to work for you. I don’t have any other ideas right at the moment to check out… unfortunately these errors seem to be really hard to replicate, but definitely let me know if you see any other weirdness with it.

Update to minimum TLS requirements for https://files.airnowtech.org/ connections

Beginning December 31st, 2023, connections made to https://files.airnowtech.org/ must use Transport Layer Security (TLS) 1.2 or higher. Prior to December 31st, users connecting with TLS 1.1 or lower may experience occasional connection deprecation. For the vast majority of users accessing the site via web browser or connecting via automated script, there will be no impact. However, a small amount of users may need to update scripts if connecting to https://files.airnowtech.org/ using TLS 1.1 or lower. Thank you, EPA and AirNow Data Management Center.

Is this related to this issue at all? I have had intermittent errors for the past couple of weeks but would assume API requests would already be using TLS 1.2/1.3?


(edit) It won’t let me re-add the integration at all even when increasing the range to 300 miles. Data on the website loads just fine.

image

No worries, glad it works now 😃

Screenshot 2023-12-12 8 15 54 PM

Looks like then problem is on AirNow’s end - no info available on their web site either.