Page 1 of 1
Air Quality Chart. **solved**
Posted: Wed Sep 23, 2020 11:38 am
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
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 1:59 pm
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
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 2:18 pm
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
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 3:37 pm
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
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 3:45 pm
by woolfg
Hi Wim
I have tried data1 air1!0pm-act in my template script and that didnt work either
Regards
Graham
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 4:23 pm
by woolfg
Hi
All sorted now - had to use data1 air1!0pm-avg.1
Regards
Graham
Re: Air Quality Chart
Posted: Wed Sep 23, 2020 10:03 pm
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.