Comments (4)
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.
I can confirm that the SDS011 uses microgram_per_meter_cubed.
Regarding Python version, I am using 3
Thank you
from weewx-aqi.
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.
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)
- custom PM sensor HOT 20
- should be probably aqi_pm10_0. HOT 4
- AQI is slow to drop after spike HOT 1
- Calculate EU AQI HOT 1
- Verify au.AirQualityIndex O3 Calculations HOT 1
- Explicitly Support Unbounded Indicies HOT 1
- Support NowCast 2019 O3 Calculations
- Schema Columns HOT 1
- Not enough observations HOT 3
- Weewx Died This Morning HOT 3
- units.py: KeyError: 'parts_per_billion'
- standards.py/calculate_composite_aqi HOT 2
- aqi-service fails and crashes weewx when no data is available HOT 2
- aqi service fails in case sensor meassure very high amount of particles HOT 1
- Support/Docs for weewx-airlink
- Two Sensors Support HOT 1
- WeeWX crashing HOT 3
- weewx crashing
- weewx-aqi v1.4.1 calculation fail
- United States EPA has updated their AQI ranges for PM2.5
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 weewx-aqi.