Do a string search for the station name … the ID is three “fields” to the left, right after the brace, ‘{’ … and just pray that the station name is unique
BTW, the station name will appear twice … for channels A and B. You probably can use either, but I just use the ID for channel A.
That looks to be a WebCore bug - the value (as a number) displays correctly in my DTH, and it is also stored correctly in the State variables for the DTH.
Has anyone been able to figure out how to pull this reading into ActionTiles? I get temperature and humidity but have not been able to pull the most recent air quality reading into a tile.
Barry (@storageanarchy), the DH works fine on Hubitat … just two, very minor changes:
Commented out line 37: include 'asynchttp_v1'
Changed line 254 from:
asynchttp_v1.get(purpleAirResponse, params)
to:
asynchttpGet(purpleAirResponse, params)
Fairly sure it’s running on the Hubitat hub, but, I may have fallen for Hubitat propaganda about localization … I suppose I could disconnect my internet connection to find out, but of course, I won’t have access to the PurpleAir data servers LOL.
I’m pretty sure its running on the hub also. What I’m wondering is whether there is some way I could set the source code up so that it automatically compiled correctly based on some flag or compile-time variable. I know I can create my own flag, just curious if the Hubitat have created something so I could do this:
if (running_on_hubitat) { asynchttpget() } else { asyncHttp_v1.get() }
Got the hub about two weeks ago, so I’m still groping around (hmmm … bad phrase to use these days) the Hubitat environment … and still have to migrate some my devices Haven’t had a chance to look at some of the developer docs.