I have now tried to reproduce the error, but was unsuccessful.
"I would try inserting '#errorCatcher Echo' at top of template"
This is a default setting in the original WeeWx 5.1.0 sensors.inc
I have hidden this error so far:
-----------------------------------------------------------------------------------------
#if $have_voltage
<tr><th>$gettext("Voltage")</th><th></th></tr>
#for $x in $sensor_voltages
#if $getattr($recent, $x).has_data
<tr>
<td class="label">$obs.label[$x]</td>
<td class="data">$getVar('current.' + $x)</td>
##set $lasttime = $getattr($recent, $x).lasttime.raw
## <td class="timestamp">$get_time_delta($lasttime, $now)</td>
</tr>
#end if
#end for
#end if
-----------------------------------------------------------------------------------------------------
Tom Keffer schrieb am Freitag, 27. September 2024 um 21:57:04 UTC+2:
> "lasttime" is an aggregation type, not an observation type. It chooses the
> time of the last non-null value for an observation type.
>
> For example, $month.outTemp.lasttime would be the time of the last
> non-null temperature for the month.
>
> $month.outTemp.lasttime.raw would be that time as a pure number (unix
> epoch time).
>
> Hope that answers your question.
>
> On Fri, Sep 27, 2024 at 12:10 PM 'Werner Krenn' via weewx-user <
> [email protected]> wrote:
>
>> LOG:
>> raspi5-rt weewxd[505937]: ERROR weewx.cheetahgenerator: Evaluation of
>> template /etc/weewx/skins/Seasons/index.html.tmpl failed.
>> raspi5-rt weewxd[505937]: ERROR weewx.cheetahgenerator: **** Ignoring
>> template /etc/weewx/skins/Seasons/index.html.tmpl
>> raspi5-rt weewxd[505937]: ERROR weewx.cheetahgenerator: **** Reason:
>> cannot find 'raw' while searching for 'lasttime.raw'
>> raspi5-rt weewxd[505937]: ERROR weewx.cheetahgenerator: **** To debug,
>> try inserting '#errorCatcher Echo' at top of template
>>
>> How can I "catch" this error "cannot find 'raw' while searching for
>> 'lasttime.raw'"
>>
>> --
>> 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/e8ecb90e-681d-46d9-bb59-416f09c99d02n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/e8ecb90e-681d-46d9-bb59-416f09c99d02n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
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/adc90e86-9738-44ff-9733-9a2189a644a6n%40googlegroups.com.