Air Quality Chart. **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Air Quality Chart. **solved**

Post by woolfg »

Hi

I am trying to generate an Air Quality metachart for the Davis Air Quality Monitor - it has three sensors air!0pm air!1pm and air!2pm

This is what is in my template

title Air Quality
width 100%
height 450px
futuredata yes
type1 Line
legend 1
data1 air1!0pm
name1 Daily Air Quality
axis1 right
active1 yes
unit1 %
color1 #0000ff
fill1 0

However its not generating any data and I cant see why - has anybody any idea as to why not

Many thanks

Graham
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 605
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: Air Quality Chart

Post by wvdkuil »

woolfg wrote: Wed Sep 23, 2020 11:38 am Hi
I am trying to generate an Air Quality metachart for the Davis Air Quality Monitor - it has three sensors air!0pm air!1pm and air!2pm
. . .
AFAIK the names are coded differently https://www.meteobridge.com/wiki/index.php/Forum => released September 12, 2020
Template variables are modified to handle multi-station situations. Sensors of the primary station can be addressed as before like "th0temp". "th0temp" sensor of first additional station can be addressed as "th1!0temp". The "1!" prefix indicates additional station #1, "2!" prefix denotes additional station #2 and so on.
So I would name them air1!0pm air1!1pm air1!2pm
For first additional weather-station use 1! and then the number for the airPM sensored 0 1 and 2

Wim
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Air Quality Chart

Post by woolfg »

Hi Wim

Thanks for your reply

That it what I am using in my template - the text in the message was a typo

I am using air1!0pm in my template file but its not working

Kind Regards

Graham
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 605
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: Air Quality Chart

Post by wvdkuil »

woolfg wrote: Wed Sep 23, 2020 2:18 pm Hi Wim
Thanks for your reply
That it what I am using in my template - the text in the message was a typo
I am using air1!0pm in my template file but its not working
Kind Regards
Graham
For a template on itself air1!0pm is not correct. It always needs a period to get a proper value air1!0pm-act for the current value
Should more look like this part of a graph I think

Code: Select all

title My Sensor Data
futuredata yes
type line
data1 th0temp-avg=F.1
data2 th0hum-avg.0
data3 th0dew-avg=F.1
data4 thb0seapress-avg=inhg.2
Succes,
Wim
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Air Quality Chart

Post by woolfg »

Hi Wim

I have tried data1 air1!0pm-act in my template script and that didnt work either

Regards

Graham
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Air Quality Chart

Post by woolfg »

Hi

All sorted now - had to use data1 air1!0pm-avg.1

Regards

Graham
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Air Quality Chart

Post by admin »

"-act" is a sensor's most recent data. But you can't make a series from it.
For charting only min/max/avg make sense and are evaluated according the time resolution you give.
Post Reply