shootismoke / common Goto Github PK
View Code? Open in Web Editor NEWUseful packages for manipulating air quality data.
Home Page: https://shootismoke.app
License: GNU General Public License v3.0
Useful packages for manipulating air quality data.
Home Page: https://shootismoke.app
License: GNU General Public License v3.0
For now, only the 8h breakpoints are added in the JSON.
In the code, follow the EPA spec to do the choice between 1h or 8h.
https://www.airvisual.com/air-pollution-data-api
They have a free community plan.
They are here: https://github.com/shootismoke/common/tree/master/packages/ui
It would be nice to add storybook to be able to see them
I'm using data from PurpleAir json, and trying to convert raw 10 minute average PM2.5 value to the USA EPA AQI value
I used to use "raw" in the from
parameter:
convert('pm25', 'raw', 'usaEpa', sensorStats.v1)
I just started refactoring some of my code, and am now getting an error: Argument of type '"raw"' is not assignable to parameter of type '"chnMep" | "usaEpa" | "µg/m³" | "ppm" | "particles/cm³" | "ppb"'.
I'm honestly not very versed in pollutants and AQI, I just found this package a while ago while googling how to calculate an AQI. Do you know which string value I should use for this ? Or is it a bug that "raw" doesn't work anymore
It looks like your code uses the 1 hour sampling of Ozone when converting from US EPA. However, aqicn (and maybe others) are returning the 8 hour sampling, so it results in a 0 being returned.
https://breezometer.com/products/air-pollution-api
They have a free plan.
The idea is to create a new folder plume/
here: https://github.com/shootismoke/common/tree/master/packages/dataproviders/src/providers
They offer a 14-day trial here: https://plume.io/en/, that's enough to play around.
Using typedoc
Here are all the AQI we would like to support (format is code | name
):
If you would like to help, just pick an AQI, an open a PR, with:
We would like to support more air quality providers:
We focus first on those that already aggregate from primary sources:
If you know any other air quality data aggregators, I'd appreciate a comment in this thread!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.