Code Monkey home page Code Monkey logo

Comments (5)

amaury1093 avatar amaury1093 commented on June 23, 2024

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.

Sunoo avatar Sunoo commented on June 23, 2024

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.

Sunoo avatar Sunoo commented on June 23, 2024

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.

Sunoo avatar Sunoo commented on June 23, 2024

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.

amaury1093 avatar amaury1093 commented on June 23, 2024

Release in @shootismoke/[email protected] 🚀

from common.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.