On 25/8/21 4:51 am, Ron Sell wrote:
hi there,
Do you have any tips for adding this?
image.png
Hi Ron,
That part is rendered by
*/etc/weewx/skins/Belchertown/index_hook_after_station_info.inc*
The code for that is...
<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).categor
y.
</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/0035e993-d1d8-f65d-ba8c-ea0ca8db28af%40skybase.net.