The uploaded version of belchertown.py looks like the one that comes with 
the v1.6 release.  That version had a number of issues that have since been 
fixed.  Replacing belchertown.py with the one vince pointed to should, 
hopefully, fix the problem.

On Tuesday, December 9, 2025 at 12:48:44 PM UTC-8 vince wrote:

> Your weewx.conf works ok versus the uajqq version in github, but the 
> belchertown.py that you uploaded here looks like it's not that version.
>
> In the belchertown.py skin you uploaded line 244 is the locale error
>                if belchertown_debug:
>                     log.error(
>                        * f"Locale: Error using locale 
> {self.generator.skin_dict["Extras"]["belchertown_locale"]}. "*
>                         f"This locale may not be installed on your system 
> and you may see unexpected results. "
>                         f"Belchertown skin JavaScript will try to use this 
> locale. Full error: %{error}"
>                     )
>
> But around line 222 (much different) in 
> https://github.com/uajqq/weewx-belchertown-new/blob/master/bin/user/belchertown.py
>  
> I see:
>
>                 if belchertown_debug:
>                     log.error(
>                         f"Error using locale {belchertown_locale}. "
>                         "This locale may not be installed on your system 
> and you may see unexpected results. "
>                         f"Python could not set the requested locale, but 
> Belchertown skin JavaScript will attempt to use the provided locale string. 
> Full error: {error}"
>                     )
>
> So my wild guess is you have some hacked/previous/miscellaneous/unknown 
> version of the forked skin.  Perhaps try installing the real one ?
>
> On Tuesday, December 9, 2025 at 11:47:26 AM UTC-8 Pete Geenhuizen wrote:
>
>> I downloaded the v1.6 skin from here 
>> https://github.com/uajqq/weewx-belchertown-new.  
>> Attached is the output from weectl.debug
>> Thanks for your help.
>> Pete
>>
>>
>> On 12/9/25 12:40, vince wrote:
>>
>> "*using the new 1.6 forked version of the Belchertown skin*" - without 
>> knowing 'which' forked version it might be difficult for people to help. 
>>
>> How about running "weectl debug" and attaching the output so folks can 
>> see your setup....
>>
>> Based on the error you mention, best guess is you have [ something ] with 
>> a mismatched number of [ and ] brackets.
>>
>> On Tuesday, December 9, 2025 at 8:23:25 AM UTC-8 Pete Geenhuizen wrote:
>>
>>> I trying to update my Rock 8 weewx v4 to Rocky 9 weewx v5 using the new 
>>> 1.6 forked version of the Belchertown skin. 
>>>
>>> I'm testing this out in simulator mode, and it sees to start fine until 
>>> it does an update which start with this error 
>>>
>>> ERROR weewx.reportengine: Caught unrecoverable exception in generator 
>>> 'weewx.cheetahgenerator.CheetahGenerator' 
>>>
>>> ERROR weewx.reportengine:         ****  f-string: unmatched '[' 
>>> (belchertown.py, line 244) 
>>>
>>> and goes down hill from there 
>>>
>>> Attached is a copy of the last run.. 
>>>
>>> I have very  limited programming skills and zero knowledge of python, so 
>>> I'm hoping that someone help me fix the problem. 
>>>
>>> Thanks 
>>>
>>> Pete 
>>>
>>>
>>>
>>>
>>> -- 
>>> Unencumbered by the thought process. 
>>> -- Click and Clack the Tappet brothers 
>>>
>> -- 
>> 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/22eccf9d-e3f5-4345-9da5-481f0451d17bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/22eccf9d-e3f5-4345-9da5-481f0451d17bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> -- 
>> Unencumbered by the thought process.  
>>  -- Click and Clack the Tappet brothers 
>>
>>
>>

-- 
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/122a7232-eda2-441b-8d1e-caf3e59c0cc6n%40googlegroups.com.

Reply via email to