Giter Site home page Giter Site logo

UK DAQI aqi.sdb about weewx-aqi HOT 4 CLOSED

steepleian avatar steepleian commented on June 23, 2024
UK DAQI aqi.sdb

from weewx-aqi.

Comments (4)

jonathankoren avatar jonathankoren commented on June 23, 2024

My initial thoughts is that this is a configuration error. The UK and US AQI calculations use the same code, so I doubt that it's something code related.

It's impossible for me to tell what the proper value should be, since this doesn't contain the readings from the sds011. I will say that that UK DAQI is defines PM 2.5 and PM 10.0 in microgram_per_meter_cubed , which does seem to be the output of weewx-sds011 https://github.com/matthewwall/weewx-sds011/blob/master/bin/user/sds011.py#L211 . However, it doesn't look like it's setting the units on the column.

Is there anything in logs that looks strange?

I've filed an issue against weewx-sds011, but I'll add a fix on my side that will assume that units are as expected if they are not set.

You can try the moar-logging branch, as that ha the additional logging and fallback about missing sensor units.

from weewx-aqi.

steepleian avatar steepleian commented on June 23, 2024

I can confirm that the SDS011 uses microgram_per_meter_cubed.
Regarding Python version, I am using 3
Thank you

from weewx-aqi.

jonathankoren avatar jonathankoren commented on June 23, 2024

I submitted a patch to weewx-sds011 to set units on the measurements. matthewwall/weewx-sds011#3

Additionally, I added two fixes on the weewx-aqi side via #10 . First, weewx-aqi now assumes that the measurement units are in whatever units they need to be for the configured AQI standard. However, it spams the logs with a warning if the units are missing. I'd recommend patching your local sds011.py with my changes. (They're a trivial paste at the top of the file. See the PR linked above.) Second, weewx-aqi wasn't correctly merging temperature and pressure information from the main weather db when the air quality sensor doesn't have it. That now happens.

Once I made both of these changes, I confirmed I was able to calculate UK's DAQI for PM 2.5 using data from a sensor schema that matched weewx-sds011 .

I've merged these changes into master, and have created a new release v1.3 .

I think this is fixed now. Reopen / comment if you're still having issues.

from weewx-aqi.

jonathankoren avatar jonathankoren commented on June 23, 2024

As far as the composite is null and the PM 2.5 & 10.0 being all at index 1 and category 0, that's hard to determine. the DAQI is only has integers on [1, 10] and currently all of the Britain is forecasted to be at DAQI 1 for the next few days. When recalculating DAQI using my data, I saw a range of values over the course of a couple of years, which makes sense due to the smoke from the Northern California forest fires a couple of years ago. I believe it's calculating the DAQI correctly.

from weewx-aqi.

Related Issues (20)

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.