Post by SDL on May 19, 2017 15:56:34 GMT -8
AreThree
NOVEMBER 21, 2016 AT 08:09 #16291
When I query the OurWeather board which has the Air Quality Sensor Kit included, I get back two values.
One is the ‘Current Air Quality Sensor Reading’ which I can compare to the table included in the documentation. The other is the ‘Current Air Quality Qualitative Reading’. The table in the documentation doesn’t specify what value relates to what condition.
For instance, I can see from the table that a Sensor Reading of 0 – 3199 is considered to be “Fresh Air”, but the value of the ‘Current Air Quality Qualitative Reading’ is “4”. That doesn’t correspond to any value in the table. I can conclude that “4” must also mean “Fresh Air” as I think it is a “cooked” value based upon the documentation.
As there are only 5 conditions specified in that table, I think that 4 is the highest value and 0 is the lowest. If this is the case, then 4 = Fresh Air and 0 = Very High Pollution.
Please clarify.
The documentation I was looking at is here: www.switchdoc.com/wp-content/uploads/2016/04/AirQualityExtender-Kit.pdf … on page 12.
Thanks
EDIT | CLOSE | STICK (TO FRONT) | MERGE | TRASH | SPAM | REPLY
[email protected]'
AreThree
NOVEMBER 21, 2016 AT 08:24 #16293
I think that I found the answer to my question by looking at the source of your webpage here: switchdoc.com/OurWeatherPage.html
According to the source (shown below), the table that, perhaps, should be added to the documentation should read as follows:
Air Quality Qualitative Reading = Meaning
0 = “Very High Pollution”
1 = “High Pollution”
2 = “Medium Pollution”
3 = “Low Pollution”
4 = “Fresh Air”
Here is the source from the webpage:
function returnQualitativeAQS()
{
if (AQSQuan == 0)
return "Not Present";
if (AQSQual == 0)
return "Very High Pollution Detected";
if (AQSQual == 1)
return "High Pollution";
if (AQSQual == 2)
return "Medium Pollution";
if (AQSQual == 3)
return "Low Pollution";
if (AQSQual == 4)
return "Fresh Air";
return "Not Present";
EDIT | MOVE | SPLIT | TRASH | SPAM | REPLY
SwitchDoc Labs
NOVEMBER 22, 2016 AT 13:45 #16333
Well, you beat me to it. I really think that starting at 0 and going to 4 was a stupid idea. 0 should be clean.
Next release, we will provide an alternative scheme.
SDL
NOVEMBER 21, 2016 AT 08:09 #16291
When I query the OurWeather board which has the Air Quality Sensor Kit included, I get back two values.
One is the ‘Current Air Quality Sensor Reading’ which I can compare to the table included in the documentation. The other is the ‘Current Air Quality Qualitative Reading’. The table in the documentation doesn’t specify what value relates to what condition.
For instance, I can see from the table that a Sensor Reading of 0 – 3199 is considered to be “Fresh Air”, but the value of the ‘Current Air Quality Qualitative Reading’ is “4”. That doesn’t correspond to any value in the table. I can conclude that “4” must also mean “Fresh Air” as I think it is a “cooked” value based upon the documentation.
As there are only 5 conditions specified in that table, I think that 4 is the highest value and 0 is the lowest. If this is the case, then 4 = Fresh Air and 0 = Very High Pollution.
Please clarify.
The documentation I was looking at is here: www.switchdoc.com/wp-content/uploads/2016/04/AirQualityExtender-Kit.pdf … on page 12.
Thanks
EDIT | CLOSE | STICK (TO FRONT) | MERGE | TRASH | SPAM | REPLY
[email protected]'
AreThree
NOVEMBER 21, 2016 AT 08:24 #16293
I think that I found the answer to my question by looking at the source of your webpage here: switchdoc.com/OurWeatherPage.html
According to the source (shown below), the table that, perhaps, should be added to the documentation should read as follows:
Air Quality Qualitative Reading = Meaning
0 = “Very High Pollution”
1 = “High Pollution”
2 = “Medium Pollution”
3 = “Low Pollution”
4 = “Fresh Air”
Here is the source from the webpage:
function returnQualitativeAQS()
{
if (AQSQuan == 0)
return "Not Present";
if (AQSQual == 0)
return "Very High Pollution Detected";
if (AQSQual == 1)
return "High Pollution";
if (AQSQual == 2)
return "Medium Pollution";
if (AQSQual == 3)
return "Low Pollution";
if (AQSQual == 4)
return "Fresh Air";
return "Not Present";
EDIT | MOVE | SPLIT | TRASH | SPAM | REPLY
SwitchDoc Labs
NOVEMBER 22, 2016 AT 13:45 #16333
Well, you beat me to it. I really think that starting at 0 and going to 4 was a stupid idea. 0 should be clean.
Next release, we will provide an alternative scheme.
SDL