Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Adding in the Air Quality sensor & graphs

GW1000 WiFi gateway
Post Reply
profzarkov
Posts: 99
Joined: Fri 15 Jan 2010 1:51 pm
Weather Station: HP2551
Operating System: Win7 or 10
Location: Trefin, West Wales
Contact:

Adding in the Air Quality sensor & graphs

Post by profzarkov »

Hi
Very impressed with th4e Ecowitt kit . . .so far.
Amazon were selling a lot of the extra sensors at half price - so I bought the PM2.5 sensor. I used to work in Air Quality (Bristol) and am amazed at the compactness of this gadget.
Also amazed at how from just plugging in the batteries my HP2551 console picked it up....no need to pair or whatever. Brilliant.
I can see on the trends option for graphs an Air Quality graph but I would like the Air Quality value to appear on all the main pages, inc gauges - is this possible.
I think I've ticked all the boxes to allow the upload of the extra sensor - and it does appear on one of the graphs but no where else . . .maybe a future template??
Thanks
Steve
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by mcrossley »

I think you may have to look at a third party option for now. There are lots of things to work on with CMX now, and I'm afraid I don't see AQ graphing as a priority at the moment. I think Han's CUtils (see it's own sub-forum) may do more with them?
profzarkov
Posts: 99
Joined: Fri 15 Jan 2010 1:51 pm
Weather Station: HP2551
Operating System: Win7 or 10
Location: Trefin, West Wales
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by profzarkov »

Hi
Actually, the website does display air quality on the Trends page, which is good enough.
Maybe in future updates in can be present on other pages too
Thanks
Steve
User avatar
grwkak
Posts: 169
Joined: Fri 28 Jun 2013 12:32 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Hambden, Ohio US
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by grwkak »

Do you mean the interface pages or the website - I can see my Ecowitt AQI on the CMX interface graphs, not the website. Not sure why.

Guy
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Adding in the Air Quality sensor & graphs

Post by beteljuice »

... not the website. Not sure why.
The website template(s), old or new are basically driven by <#webtags> one way or another.

AQ paraphernalia being relatively new are both vendor specific (currently Davis or Ecowitt) and an 'Extra Sensor', of which there could be multiple number quantities and / or different variable : value pairs.
... and are only available to CuMX - So no generic template !

The Ecowitt AQ sensor has only two <#webtags> available per unit https://cumuluswiki.org/a/Webtags#Extra ... re_sensors

<#AirQuality1> Air quality in μm/m3 (NOT someones Index Number)
<#AirQualityAvg1> 24 hr running average Air quality in μm/m3 (NOT someones Index Number)

Edit: Not available in Cumulus 1.
So in a Cumulus 1.9.x T you would simply add the required <#webtags> where you wanted them.

CuMX a bit more complicated !

In websitedataT.json you need to 'define' the tags.
Suppose you add them at the end ...

Code: Select all

"previous":"<#line>", <<< add comma !
"myAirNow":"<#AirQuality1>",
"myAir24":"<#AirQualityAvg1>"
}
These value can now be 'seen' by the MX template(s) using setpagedata.js

In your html template eg.

Code: Select all

<td>Air Quality 2.5μm</td>
<td>Now: <span data-cmxdata="myAirNow"></span> / 24hr Avg: <span data-cmxdata="myAir24"></span></td>
Last edited by beteljuice on Thu 28 Oct 2021 4:42 pm, edited 3 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
profzarkov
Posts: 99
Joined: Fri 15 Jan 2010 1:51 pm
Weather Station: HP2551
Operating System: Win7 or 10
Location: Trefin, West Wales
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by profzarkov »

Thanks!
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by philpugh »

It can be done - take a look at https://goosegate.uk/trends.htm#airquality - my site.


You need to study the structure of the charting process, make the modifications and copy the appropriate JSON files together with trends.htm, availabledata.json files (and some others IIRC).

It's not a trivial process and every time you update CumulusMX you may need to re-apply some or all of the changes.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
profzarkov
Posts: 99
Joined: Fri 15 Jan 2010 1:51 pm
Weather Station: HP2551
Operating System: Win7 or 10
Location: Trefin, West Wales
Contact:

Re: Adding in the Air Quality sensor & graphs

Post by profzarkov »

Thanks for all those answers - it seems my station & MX have already done this . . albeit in a staccato fashion

http://weather.vivatek.co.uk/trends.htm#airquality
Post Reply