Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Air quality readings in cumulusmx database

GW1000 WiFi gateway
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Air quality readings in cumulusmx database

Post by watsonm »

Hi,
I noticed that in cumulusmx.db there are two columns I had not seen before that are labelled Pm2p5 and Pm10. They are both populated with -1.
I already send data via the Airlink protocol to /v1/current_conditions and wondered what these columns were being used for and if they need to be populated.

Or should I just ignore them ! :mrgreen:
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

watsonm wrote: Thu 01 Dec 2022 2:04 pm Hi,
I noticed that in cumulusmx.db there are two columns I had not seen before that are labelled Pm2p5 and Pm10. They are both populated with -1.
I already send data via the Airlink protocol to /v1/current_conditions and wondered what these columns were being used for and if they need to be populated.

Or should I just ignore them ! :mrgreen:
Mike,

I assume those are for the AirLink values when activated. The current values are the only two values displayed by CMX.
The Ecowitt AirQuality and CO2 sensors are ExtraSensors and are not displayed in the charts (you need Cutils for that ;) )

I don't know exactly how you deal with your alternative use of the AirLink interface but if you configured CMX correctly (having an AirLink) then you should be able to see those two values somewhere. Did you configure an AirLink?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Air quality readings in cumulusmx database

Post by Nossie »

Is that for something like the ecowitt gas sensor it doesn't use the default air quality one - it has its own particulate stuff outside of Airlink, could it be that?

edit: hans quick on the money hehe ignore me.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

And btw: you see those only in the standard CMX charts of the interface and standard website.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

Nossie wrote: Thu 01 Dec 2022 2:28 pm edit: hans quick on the money hehe ignore me.
Done :lol:
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Air quality readings in cumulusmx database

Post by watsonm »

Hans,
Thanks for replying..
I issue the Airlink API as specified here

Code: Select all

https://weatherlink.github.io/airlink-local-api/
and my data appears successfully in the ExtraSensors-> Airlink page and also gets propagated to cmxutils.
Nothing appears in cumulusmx.db .

In strings.ini I notice some combination of CO2 and PM2p5 which doesn't seem right to me but maybe it is a dual use of the table

Code: Select all

[CO2Captions]
CO2-Current=CO&#8322 Current
CO2-24hr=CO&#8322 24h avg
CO2-Pm2p5=PM 2.5
CO2-Pm2p5-24hr=PM 2.5 24h avg
CO2-Pm10=PM 10
CO2-Pm10-24hr=PM 10 24h avg
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

You can safely ignore the ecowitt sensors now, it is the airlink this is about.

Do you see your airlink chart in the interface?
If you don't i think it is in configuration of the airlink somewhere in cmx.

You may have switched off the chart (and the data) because CUtils shows the charts and creates its own json data files. So in that case you won't see anything in that database.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Air quality readings in cumulusmx database

Post by watsonm »

HansR wrote: Thu 01 Dec 2022 3:22 pm Do you see your airlink chart in the interface?
Yes I do :
CumulusMX -> extra Sensors -> Airlink Sensors
CumulusUtils -> extra -> Airlink

No problem there. I was just curious as to what these two columns were for. I think I will ignore them.
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

It probably has to do with the data json files which you most likely deactivated.
But anyway, yes if further everything is OK: ignore indeed.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

Actually I meant: do you see the chart(!) In the interface.
Not the config to CUtils.

So: menu=>charts=>Recent=>airquality
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Air quality readings in cumulusmx database

Post by watsonm »

Hans,
No airquality charts! :?
You do not have the required permissions to view the files attached to this post.
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Air quality readings in cumulusmx database

Post by HansR »

Did you activate: Settings=>InternetSettings=>Normal Interval Settings=>Graph File Settings=>airquality.json?

If that is not it, I think somebody with more knowledge on the internals must kick in (@mcrossley?)
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Air quality readings in cumulusmx database

Post by PaulMy »

Hi,
I noticed that in cumulusmx.db there are two columns I had not seen before that are labelled Pm2p5 and Pm10. They are both populated with -1.
I already send data via the Airlink protocol to /v1/current_conditions and wondered what these columns were being used for and if they need to be populated.
I have the AirLink and see those two columns as well when I use DB Browser for SQLite, and they are populated. The data seems to match the AirLink data at Weatherlink.com.

My Charts do include the AirLink, both Localhost and website www.komokaweather.com/cumulusmxwll
My strings.ini has and these would have been added by CMX:

Code: Select all

[CO2Captions]
CO2-Current=CO&#8322 Current
CO2-24hr=CO&#8322 24h avg
CO2-Pm2p5=PM 2.5
CO2-Pm2p5-24hr=PM 2.5 24h avg
CO2-Pm10=PM 10
CO2-Pm10-24hr=PM 10 24h avg
EDIT:
Can you check the MXdiags and see if there are any errors reported with AirLink.

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Air quality readings in cumulusmx database

Post by watsonm »

Thanks Hans and Paul.
Enough time wasted on this.

Code: Select all

Did you activate: Settings=>InternetSettings=>Normal Interval Settings=>Graph File Settings=>airquality.json?
yes this is set but I guess the reason is my configuration which I will describe for Paul's "benefit" (not sure you'll get any benefit!!! :shock: )

My setup is a mixture of FO sensors and 10 dollar sensors. I use a PMS5003 unit to retrieve the pm25/ pm10 values and python code builds up a data stream that matches the Airlink Api as mentioned above. This data is sent to the web_server/v1/current_conditions location so it is not a true Airlink unit.

Thanks for the suggestions but please don't waste any more of your time on it......
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Air quality readings in cumulusmx database

Post by watsonm »

Sorted now... :roll:

After some reading of the CMX source code I modified my code to save pm2p5 and pm10 in the cumulusMX.db and set

Settings->extrasensors settings-> Air Quality Settings to Ecowitt CO2 settings

and the air quality tab and associated charts appeared.... :geek:
You do not have the required permissions to view the files attached to this post.
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
Post Reply