

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com.
## current module for weewx skins
## Copyright Tom Keffer, Matthew Wall
## See LICENSE.txt for your rights
#errorCatcher Echo
#encoding UTF-8
<div id='current_widget' class="widget">
<div class="widget_title">
$gettext("Current Conditions")
<a class="widget_control"
onclick="toggle_widget('current')">♦</a>
</div>
<div class="widget_contents">
<table>
<tbody>
#set $observations = $to_list($DisplayOptions.get('observations_current', ['outTemp', 'barometer']))
#for $x in $observations
#if $getVar('year.%s.has_data' % $x)
#if $x == 'barometer'
<tr>
<td class="label">$obs.label.barometer</td>
<td class="data">$current.barometer ($trend.barometer.formatted)</td>
</tr>
#elif $x == 'windSpeed'
<tr>
<td class="label">$obs.label.wind</td>
<td class="data">$current.windSpeed $current.windDir.ordinal_compass ($current.windDir)</td>
</tr>
#elif $x == 'rain'
<tr>
<td class="label">$gettext("Rain Today")</td>
<td class="data">$day.rain.sum</td>
##<td class="data">$day($data_binding='wx_power').rain.sum</td>
</tr>
#elif $x == 'powerconsumed'
<tr>
<td class="label">$gettext("Power Consumed today")</td
<td class="data">$day.powerconsumed.sum.format("%.2f")</td>
</tr>
#else
<tr>
<td class="label">$obs.label[$x]</td>
<td class="data">$getVar('current.' + $x)</td>
</tr>
#end if
#end if
#end for
</tbody>
</table>
</div>
</div>