-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Integrate Air Pollution API from OpenWeatherMap. #198
Comments
*push |
Would love to see this as well. For the original creator of this, may want to change the label to new feature. |
Not sure if you found a solution, but I ended up using another Homebridge plugin called HTTP-Advanced-Accessory and created an Air Quality Sensor using the OpenWeatherMap apis. The PM2.5 isn't being created in the plugin, but everything else is working. I put my config down below, just replace with your lon, lat, and id. Lastly Carbon Monoxide and some of the other values are not listed in the apple sensor characteristics, but are in other sensors, if you wanted them.
|
Hi, is there a possibility that you can integrate the Air Pollution API from OpenWeatherMap to get all this datas?
Air Pollution API concept
Air Pollution API provides current, forecast and historical air pollution data for any coordinates on the globe
Besides basic Air Quality Index, the API returns data about polluting gases, such as Carbon monoxide (CO), Nitrogen monoxide (NO), Nitrogen dioxide (NO2), Ozone (O3), Sulphur dioxide (SO2), Ammonia (NH3), and particulates (PM2.5 and PM10).
Air pollution forecast is available for 5 days with hourly granularity. Historical data is accessible from 27th November 2020.
Current air pollution data
API call
http://api.openweathermap.org/data/2.5/air_pollution?lat={lat}&lon={lon}&appid={API key}
The text was updated successfully, but these errors were encountered: