diff --git a/current.html.tmpl b/current.html.tmpl index 5790e4c..b62c30e 100644 --- a/current.html.tmpl +++ b/current.html.tmpl @@ -51,7 +51,7 @@ Hi Wind Inside Wind Vector - #if $period2.pm2_5.has_data + #if $Extras.has_key('optionalAccessories') and $period2.pm2_5.has_data Air Quality #end if #if $Extras.has_key('optionalAccessories') and $period2.radiation.has_data diff --git a/include/chart.inc b/include/chart.inc index d1796c2..d57f6fc 100644 --- a/include/chart.inc +++ b/include/chart.inc @@ -187,7 +187,7 @@ #end if - #if $period2.pm2_5.has_data + #if $Extras.has_key('optionalAccessories') and $period2.pm2_5.has_data AQI Range diff --git a/include/current.inc b/include/current.inc index 3b265d8..8d16e67 100644 --- a/include/current.inc +++ b/include/current.inc @@ -42,16 +42,33 @@ $current.extraTemp1 #end if - #if $day.pm2_5.has_data + #if $Extras.has_key('optionalAccessories') and $day.pm2_5.has_data + #set pmdata = '%.2f, %.2f, %.2f %s' % ($current.pm1_0.raw, $current.pm2_5.raw, $current.pm10_0.raw, $unit.label.pm2_5) + #if $current.pm2_5_aqi.raw > 300 + #set pmcolor = '581845' + #else if $current.pm2_5_aqi.raw > 200 + #set pmcolor = 'F80000' + #else if $current.pm2_5_aqi.raw > 150 + #set pmcolor = '900C3F' + #else if $current.pm2_5_aqi.raw > 100 + #set pmcolor = 'F39C12' + #else if $current.pm2_5_aqi.raw > 50 + #set pmcolor = 'F8F800' + #end if - PM2.5 Concentration - $current.pm2_5 + PM1, 2.5, 10 Concentration + $pmdata AQI - $current.pm2_5_aqi + #if $current.pm2_5_aqi.raw >= 50 + + #else + + #end if + $current.pm2_5_aqi - #end if + #end if #if $Extras.has_key('optionalAccessories') and $day.UV.has_data UV diff --git a/month.html.tmpl b/month.html.tmpl index 055d1e4..4163cf8 100644 --- a/month.html.tmpl +++ b/month.html.tmpl @@ -31,7 +31,7 @@ Hi Wind Inside Wind Vector - #if $period2.pm2_5_aqi.has_data + #if $Extras.has_key('optionalAccessories') and $period2.pm2_5.has_data Air Quality #end if #if $Extras.has_key('optionalAccessories') and $period2.UV.has_data diff --git a/skin.conf b/skin.conf index d582421..63d6270 100644 --- a/skin.conf +++ b/skin.conf @@ -682,7 +682,7 @@ [[[[windvec]]]] plot_type = vector - [[[monthaqi]]] + [[[yearaqi]]] yscale = 0, None, 20 [[[[pm2_5_aqi]]]] diff --git a/week.html.tmpl b/week.html.tmpl index 33c0685..5922e34 100644 --- a/week.html.tmpl +++ b/week.html.tmpl @@ -31,7 +31,7 @@ Hi Wind Inside Wind Vector - #if $period2.pm2_5_aqi.has_data + #if $Extras.has_key('optionalAccessories') and $period2.pm2_5.has_data Air Quality #end if #if $Extras.has_key('optionalAccessories') and $period2.UV.has_data diff --git a/year.html.tmpl b/year.html.tmpl index d656df4..79811fd 100644 --- a/year.html.tmpl +++ b/year.html.tmpl @@ -145,15 +145,15 @@ #end if - #if $year.pm2_5.has_data + #if $Extras.has_key('optionalAccessories') and $year.pm2_5.has_data High AQI
Low AQI - $year.pm2_5_aqi.max at $year.pm2_5_aqi.maxtime
- $year.pm2_5_aqi.min at $year.pm2_5_aqi.mintime + $year.pm2_5_aqi.max at $year.pm2_5.maxtime
+ $year.pm2_5_aqi.min at $year.pm2_5.mintime #end if @@ -242,7 +242,7 @@ Hi Wind Inside Wind Vector - #if $year.pm2_5_aqi.has_data + #if $Extras.has_key('optionalAccessories') and $year.pm2_5.has_data Air Quality #end if #if $Extras.has_key('optionalAccessories') and $year.UV.has_data