AirNow.gov integration?

Yes, I have. At this point, just dont what else could be wrong. Initially, I discovered AirNow wouldnt pull data for my particular zip code…then changed it to the next major city and it pulled data…used that zip in the piston and still nothing. Zip and api are the only things we need to input in the piston, correct?

Correct. Mine took 4 hours before it started working. That is what the piston frequency is set to.

that’s what I thought but I clicked "click to open/execute. Wouldn’t that action execute the command?

I just tried that and it didn’t refresh for me

OK, so maybe on the 4th hour. I’ll keep you updated.

No, I have seen some positive reviews but have never tried it.

By design, the piston will only execute every 4 hours. Manually executing will not force an update as the actions are all under the timer. The 4 hour timer starts after you save. You can always adjust the timer if you want to update faster, keep in mind that there is a limit to number of api calls per day, eventually the api will cut you off.

You could change to 1 min, let the data update then revert to a long period like 4 hours.

Working as intended now.

1 Like

Anyway to get the custom device handler to be used in Automations? This is great work by @guxdude and @fieldsjm and adding this won’t make them any more crazy than CLI did. :yum:

What are you looking to do? I never use automations since I do everything in webcore. Not sure what is required for it to be used in automations.

It would most likely require someone to go in and create the custom capabilities but even then I’m not sure they are available to automations yet. I build my automations into webCore so I’m not up to date on the happenings with the automations in the new App.

This just stopped working the other day with a JON error. Anyone figured out what needs fixed yet?

03/01/2021 Update: The webCore code above (be6j) works again now the api/json is returning both the O3 and PM2.5 values.

I had to reinstall the piston and can’t get it to run again. Zip, device and code are in. What did you change other than that?

The other day I had to change the URL to https. I thing AirNow stopped allowing unsecure http.

1 Like

thanks I will give it a try and update with status.

UPDATE: that worked. Thank you.

Does anyone know of a edge driver for Airnow.gov?
I am looking into if @TAustin Web Requestor Multi v1.2 will work, but I am not sure how to go about using the API key from Airnow in the driver.

Just FYI, I have a PurpleAir driver that you might consider as an alternative.

Regarding using webrequestor to access airnow, it depends on how you provide API key. Is it provided as a parameter included in the http request?

1 Like