Comments (5)
aqicn (and maybe others) are returning the 8 hour sampling
I had a doubt about this, so went with the 1h sampling a bit randomly, didn't find documentation on aqicn. But you're probably right. Apart from 0 being returned, do you know if there is any documentation about aqicn returning 1h or 8h sampling?
I'll fix this asap! (unless you want to create a PR yourself?)
from common.
I was mostly going by the value being out of range for the 1h formula on all the stations I checked. Although, your reply does raise the possibility that it could vary between 1h and 8h depending on data source, which would be supremely annoying.
I’ll do some digging for documentation, though that has seemed to be pretty sparse so far in my experience.
I’m not sure how it could be easily done, but perhaps the safest way would be to allow for some sort of override between 1h and 8h, though that just shifts the problem to the calling application.
from common.
Found it! They convert all incoming data to 8h averaging.
“The most common averaging is 1 hour. It is also the prefered one, as our backend system will automatically do the 8 hour averagin computation for the Ozone and Carbon Monoxyde.”
http://aqicn.org/publishingdata/
from common.
I just forked the project with the intent of creating a PR for this. However, I noticed that the breakpoints already seem to be correct for 8h averaging. I'm a bit at a loss now as to why I'm consistently getting 0 back from your library for the stations in my area, when it should be around 5 or so. All the other pollutants seem to work as expected.
from common.
Release in @shootismoke/[email protected]
🚀
from common.
Related Issues (12)
- Add documentation HOT 1
- Support more AQIs
- Add more providers HOT 2
- Add 1h and 8h breakpoints for EPA's o3 measurements
- Add Plume api
- Add Weatherbit API
- Add AirVisual API
- Add Breezometer API
- Add PurpleAir API
- Add storybook for UI components
- Typescript when trying to use "raw" in convert package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from common.