Thank you Tim. I must be missing something. I installed the
weewx-aqixtypes-0.0.2.tar.gz.
Then I added the statement in the weewx.conf (at the end of the config
file):
# Options for extension 'aqi'
[AqiService]
[[standard]]
data_binding = aqi_binding
standard = user.aqi.us.NowCast
[[air_sensor]]
data_binding = wx_binding
usUnits = usUnits
dateTime = dateTime
pm2_5 = pm2_5
Then I added the rest to the index_hook_after_forecast.inc file (since I
have the camera in the station_info hook):
<head>
<meta http-equiv="refresh" content="540">
</head>
<table>
<tr>
#if $current.UV.raw <= 2.4
<td class="stats_data" style="background-color:
limegreen;text-align:center"><H4>The current UV index $current.UV, is
Low</td>
#else if $current.UV.raw >= 2.5 and $current.UV.raw <= 5.4
<td class="stats_data" style="background-color:
yellow;text-align:center"><H4>The current UV index $current.UV, is
Moderate</td>
#else if $current.UV.raw >= 5.5 and $current.UV.raw <= 7.4
<td class="stats_data" style="background-color:
orange;text-align:center"><H4>The current UV index $current.UV, is High</td>
#else if $current.UV.raw >= 7.5 and $current.UV.raw <= 10.4
<td class="stats_data" style="background-color:
red;text-align:center"><H4>The current UV index $current.UV, is Very
High</td>
#else if $current.UV.raw > 10.5
<td class="stats_data" style="background-color:
violet;text-align:center"><H4>The current UV index $current.UV, is
Extreme</td>
#end if
#if $current.pm2_5.raw <= 20
<td class="stats_data" style="background-color:
#31add3;text-align:center"><H4> The real time AQI of,
$current.pm2_5.raw is Very Good</td>
#else if $current.pm2_5.raw >= 21 and $current.pm2_5.raw <= 41
<td class="stats_data" style="background-color:
#99b964;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
is Good</td>
#else if $current.pm2_5.raw >= 42 and $current.pm2_5.raw <= 61
<td class="stats_data" style="background-color:
#fed337;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
is Fair</td>
#else if $current.pm2_5.raw >= 62 and $current.pm2_5.raw <= 92
<td class="stats_data" style="background-color:
#ec793a;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
is Poor</td>
#else if $current.pm2_5.raw > 93 and $current.pm2_5.raw <= 123
<td class="stats_data" style="background-color:
#782e49;text-align:center;color:yellow"><H4>The real time AQI,
$current.pm2_5.raw is Very Poor</td>
#else if $current.pm2_5.raw >= 124
<td class="stats_data" style="background-color:
#d1472d;text-align:center;color:yellow"><H4>The real time AQI of,
$current.pm2_5.raw is Hazardous</td>
#end if
<td style="text-align: center; background-color:
#$aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).color;" >
<H4> The 24hr AQI is
$current($data_binding='aqi_binding').aqi_pm2_5 which is
$aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).category.
</td>
</tr>
</table>
On Thursday, July 8, 2021 at 6:01:13 PM UTC-6 [email protected] wrote:
> Hi Mitchell,
>
> Its in the 1st hook.
>
> This is in the
> /etc/weewx/skins/Belchertown/index_hook_after_station_info.inc file.
>
> <head>
> <meta http-equiv="refresh" content="540">
> </head>
> <table>
> <tr>
> #if $current.UV.raw <= 2.4
> <td class="stats_data" style="background-color:
> limegreen;text-align:center"><H4>The current UV index $current.UV, is
> Low</td>
> #else if $current.UV.raw >= 2.5 and $current.UV.raw <= 5.4
> <td class="stats_data" style="background-color:
> yellow;text-align:center"><H4>The current UV index $current.UV, is
> Moderate</td>
> #else if $current.UV.raw >= 5.5 and $current.UV.raw <= 7.4
> <td class="stats_data" style="background-color:
> orange;text-align:center"><H4>The current UV index $current.UV, is
> High</td>
> #else if $current.UV.raw >= 7.5 and $current.UV.raw <= 10.4
> <td class="stats_data" style="background-color:
> red;text-align:center"><H4>The current UV index $current.UV, is Very
> High</td>
> #else if $current.UV.raw > 10.5
> <td class="stats_data" style="background-color:
> violet;text-align:center"><H4>The current UV index $current.UV, is
> Extreme</td>
> #end if
>
> #if $current.pm2_5.raw <= 20
> <td class="stats_data" style="background-color:
> #31add3;text-align:center"><H4> The real time AQI of,
> $current.pm2_5.raw is Very Good</td>
> #else if $current.pm2_5.raw >= 21 and $current.pm2_5.raw <= 41
> <td class="stats_data" style="background-color:
> #99b964;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
> is Good</td>
> #else if $current.pm2_5.raw >= 42 and $current.pm2_5.raw <= 61
> <td class="stats_data" style="background-color:
> #fed337;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
> is Fair</td>
> #else if $current.pm2_5.raw >= 62 and $current.pm2_5.raw <= 92
> <td class="stats_data" style="background-color:
> #ec793a;text-align:center"><H4>The real time AQI of, $current.pm2_5.raw
> is Poor</td>
> #else if $current.pm2_5.raw > 93 and $current.pm2_5.raw <= 123
> <td class="stats_data" style="background-color:
> #782e49;text-align:center;color:yellow"><H4>The real time AQI,
> $current.pm2_5.raw is Very Poor</td>
> #else if $current.pm2_5.raw >= 124
> <td class="stats_data" style="background-color:
> #d1472d;text-align:center;color:yellow"><H4>The real time AQI of,
> $current.pm2_5.raw is Hazardous</td>
> #end if
>
> <td style="text-align: center; background-color:
> #$aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).color;" >
> <H4> The 24hr AQI is
> $current($data_binding='aqi_binding').aqi_pm2_5 which is
> $aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).category.
>
> </td>
>
> </tr>
> </table>
>
> regards
>
> Tim
>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/3fe2bbec-0338-4cb3-9f94-56c69a8f180an%40googlegroups.com.