Thank you Tom, that worked perfectly :-)

Ian

On Tuesday, March 3, 2026 at 1:25:09 PM UTC Tom Keffer wrote:

> I gave you a bad example. You need quotes around weewx_extras_binding. 
> It's a string, not a Python expression.
>
> So, it becomes:
>
> if($rain["event"] > 0 ){$rain["storm_start"] = date('H:i D j 
> M',($TS)-($time_since('stormRain=0', 'weewx_extras_binding').raw);}
>
>
> On Tue, Mar 3, 2026 at 4:55 AM Ian <[email protected]> wrote:
>
>> Tom, 
>>
>> This is from my journal log when I tried the update: -
>>
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> Evaluation of template /home/trixie/weewx-data/skins/Test/test.php.tmpl 
>> failed with exception '<class 'NameError'>'
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> **** Ignoring template /home/trixie/weewx-data/skins/Test/test.php.tmpl 
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> **** Reason: name 'weewx_extras_binding' is not defined
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****  Traceback (most recent call last):
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****    File 
>> "/home/trixie/weewx-venv/lib/python3.13/site-packages/weewx/cheetahgenerator.py",
>>  
>> line 334, in generate
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****      unicode_string = compiled_template.respond()
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****    File "_home_trixie_weewx_data_skins_Test_test.php.tmpl .py", line 
>> 5350, in respond
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****    File "_home_trixie_weewx_data_skins_Test_test.php.tmpl .py", line 
>> 2030, in __errorCatcher280
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****    File "<string>", line 1, in <module>
>> Mar 03 12:35:55 trixiepi weewxd[2955661]: ERROR weewx.cheetahgenerator: 
>> ****  NameError: name 'weewx_extras_binding' is not defined
>>
>> The weewx_extras.sdb is actively up and running and being populated.
>>
>> This is how I deployed in test.php.tmpl: -
>>
>> $rain["event"] = $data["observations"]["eventRain"] ?? null;
>> if(is_numeric($rain["event"]) != 1){$rain["event"] = 0;}
>> if($rain["event"] > 0 ){$rain["storm_start"] = date('H:i D j 
>> M',($TS)-($time_since('stormRain=0', weewx_extras_binding).raw);}
>>
>>
>> Ian
>>
>>
>>
>> On Tuesday, March 3, 2026 at 12:18:17 PM UTC Tom Keffer wrote:
>>
>>> weewx-time_since is just a simple search list extension. No service 
>>> involved.
>>>
>>> On Mon, Mar 2, 2026 at 7:21 PM DR <[email protected]> wrote:
>>>
>>>> Is there a newly revised service which needs to be reloaded to make 
>>>> this 
>>>> work, or did  you just clarify that what was installed with the 
>>>> time_since type of tag works ok with what was furnished previously?
>>>>
>>>>
>>>> -- 
>>>> 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 visit 
>>>> https://groups.google.com/d/msgid/weewx-user/f387b426-a947-4a3e-89f9-9b185e4e2612%40gmail.com
>>>> .
>>>>
>>> -- 
>> 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 visit 
>> https://groups.google.com/d/msgid/weewx-user/91a3209f-e8d5-4c4a-988f-239878359b88n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/91a3209f-e8d5-4c4a-988f-239878359b88n%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 visit 
https://groups.google.com/d/msgid/weewx-user/49347154-7484-4453-b72b-953ec58dab10n%40googlegroups.com.

Reply via email to