Just before the loop.

#set $dayradiationacc=0

[email protected] schrieb am Donnerstag, 26. Januar 2023 um 20:35:07 
UTC+1:

> Thanks again. I have removed the .raw, but as you say $dayradiationacc is 
> not initialised:
>
> Jan 26 19:30:32 weather weewx[625144] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/neowx-material/week.html.tmpl 
> failed.
>
> Jan 26 19:30:32 weather weewx[625144] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/neowx-material/week.html.tmpl
>
> Jan 26 19:30:32 weather weewx[625144] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'dayradiationacc'
>
> I’m not sure where this should be initialised so it can increase in value 
> through the for loop?
>
> On 26 Jan 2023, at 18:46, Karen K <[email protected]> wrote:
>
> There are 3 problems in the next line:
>
>    - $dayradiation is already raw, so another raw is too much.
>    - $dayradiationacc is not initialized for the first loop
>    - $dayradiationacc is already raw, so another raw is too much for the 
>    following loops
>    
>
> [email protected] schrieb am Donnerstag, 26. Januar 2023 um 
> 18:08:23 UTC+1:
>
>> Thanks! That’s moved the error down a line so I’m moving in the right 
>> direction. I can’t seem to iterate through the for loop to add each day’s 
>> average radiation.
>>
>> On 26 Jan 2023, at 12:59, Karen K <[email protected]> wrote:
>>
>> [email protected] schrieb am Mittwoch, 25. Januar 2023 um 
>> 14:22:27 UTC+1:
>>
>>> #set $dayradiation=$dd.$light.radiation.sum.raw <-- this is where it 
>>> fails
>>>
>>
>> Try $light.radiation.sum.raw
>>
>> $dd and $light in one statement is too much.
>>
>>  
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/7CPWHA8azqY/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/dab05ce0-7f02-4cfe-bd31-1e3e31c9632cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/dab05ce0-7f02-4cfe-bd31-1e3e31c9632cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/7CPWHA8azqY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/7760fae9-9ee4-4ec7-90fc-73654c2ec4f7n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/7760fae9-9ee4-4ec7-90fc-73654c2ec4f7n%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/ff6c81ae-b96f-411e-8fcd-03bf3f041b93n%40googlegroups.com.

Reply via email to