Hi Here it is
Gert
On Friday, March 13, 2020 at 4:12:00 PM UTC+1, Pat wrote:
>
> Can you attach your about.inc?
>
> On Friday, March 13, 2020 at 11:10:42 AM UTC-4, Gert Andersen wrote:
>>
>> Hi
>>
>> Here is the file
>>
>> Gert
>>
>> On Friday, March 13, 2020 at 4:01:52 PM UTC+1, Pat wrote:
>>>
>>> So this is a new error :)
>>>
>>> Did you change the about/index.html file? Or does your about.inc have
>>> danish characters? I assume yes. The about/index.html.tmpl should be
>>> converting those but maybe there is an issue with the about.inc. Can you
>>> attach it?
>>>
>>> On Friday, March 13, 2020 at 10:59:39 AM UTC-4, Gert Andersen wrote:
>>>>
>>>> Hi Pat
>>>>
>>>> I still have this from syslog and the last archive Should I just
>>>> ignore it?
>>>>
>>>> ar 13 15:55:23 InterceptorTest weewx[1933]: cheetahgenerator: Generate
>>>> failed with exception '<type 'exceptions.UnicodeDecodeError'>'
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: cheetahgenerator: ****
>>>> Ignoring template /etc/weewx/skins/Belchertown/about/index.html.tmpl
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: cheetahgenerator: ****
>>>> Reason: 'ascii' codec can't decode byte 0xc3 in position 500: ordinal not
>>>> in range(128)
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** Traceback (most
>>>> recent call last):
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: ****
>>>> fd.write(str(compiled_template))
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1045, in
>>>> __str__
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** rc =
>>>> getattr(self, mainMethName)()
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "_etc_weewx_skins_Belchertown_about_index_html_tmpl.py", line 104, in
>>>> respond
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1685, in
>>>> _handleCheetahInclude
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** file=file)
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 772, in
>>>> compile
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: ****
>>>> settings=(compilerSettings or {}))
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** File
>>>> "/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py", line 1708, in
>>>> __init__
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** source =
>>>> unicode(source)
>>>> Mar 13 15:55:23 InterceptorTest weewx[1933]: **** UnicodeDecodeError:
>>>> 'ascii' codec can't decode byte 0xc3 in position 500: ordinal not in
>>>> range(128)
>>>>
>>>> Thanks
>>>>
>>>> Gert
>>>>
>>>> On Friday, March 13, 2020 at 3:48:05 PM UTC+1, Pat wrote:
>>>>>
>>>>> The error in #1 is resolved. Leave the setting as utf8.
>>>>>
>>>>>
>>>>> On Friday, March 13, 2020 at 10:45:41 AM UTC-4, Gert Andersen wrote:
>>>>>>
>>>>>> Hi Pat
>>>>>>
>>>>>> Just looked at the permission for darksky json and changed it. Now it
>>>>>> seems that the forecast is ok. Thanks for pointing me in that direction.
>>>>>>
>>>>>> Now I "just" have the error in #1
>>>>>>
>>>>>> Gert
>>>>>>
>>>>>> On Friday, March 13, 2020 at 3:08:35 PM UTC+1, Pat wrote:
>>>>>>>
>>>>>>> Your forecast is missing because of a server error on your side.
>>>>>>>
>>>>>>> Try to go to
>>>>>>> http://vsvejr.de/json/darksky_forecast.json?_=1584108447820
>>>>>>>
>>>>>>> It will give you error 403 which is a Forbidden error on your web
>>>>>>> server
>>>>>>>
>>>>>>> On Friday, March 13, 2020 at 10:06:38 AM UTC-4, Gert Andersen wrote:
>>>>>>>>
>>>>>>>> Hi Pat
>>>>>>>>
>>>>>>>> I'm missing the forecast and I have:
>>>>>>>> forecast_enabled = 1
>>>>>>>> in weewx.conf.
>>>>>>>>
>>>>>>>> Gert
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, March 13, 2020 at 3:02:19 PM UTC+1, Pat wrote:
>>>>>>>>>
>>>>>>>>> Well, I've put danish characters into my location name as a test,
>>>>>>>>> and they are showing in the report fine (see my screenshot from a few
>>>>>>>>> emails ago in the red box).
>>>>>>>>>
>>>>>>>>> Looking at the site you say is broken, it doesn't look broken, so
>>>>>>>>> I'm trying to understand what breaks when you use utf8 instead of
>>>>>>>>> strict_ascii?
>>>>>>>>>
>>>>>>>>> On Friday, March 13, 2020 at 10:00:33 AM UTC-4, Gert Andersen
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Pat
>>>>>>>>>>
>>>>>>>>>> You did some changes to the beta version in order to use
>>>>>>>>>> danishcharacters and I don't know if this error has something to do
>>>>>>>>>> with
>>>>>>>>>> this. Maybe you can't reproduce the error because your not running
>>>>>>>>>> danish
>>>>>>>>>> characters?
>>>>>>>>>>
>>>>>>>>>> Gert
>>>>>>>>>>
>>>>>>>>>> On Friday, March 13, 2020 at 2:46:30 PM UTC+1, Pat wrote:
>>>>>>>>>>>
>>>>>>>>>>> I'm unable to reproduce this. Can you provide a clear example
>>>>>>>>>>> that would allow me to reproduce this?
>>>>>>>>>>>
>>>>>>>>>>> Also, weewx version 4?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Friday, March 13, 2020 at 9:41:04 AM UTC-4, Pat wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Let me run some tests
>>>>>>>>>>>>
>>>>>>>>>>>> On Friday, March 13, 2020 at 9:39:16 AM UTC-4, Gert Andersen
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi
>>>>>>>>>>>>>
>>>>>>>>>>>>> Version 2.7.16
>>>>>>>>>>>>>
>>>>>>>>>>>>> Gert
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Friday, March 13, 2020 at 1:59:51 PM UTC+1, Pat wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Which version of python?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thursday, March 12, 2020 at 6:52:38 PM UTC-4, Gert
>>>>>>>>>>>>>> Andersen wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks for looking.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> No, I did not edit the index file.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The only thing I changed was the skin.conf and changed the
>>>>>>>>>>>>>>> encoding to utf8 instead of strictly_ascii. This will display
>>>>>>>>>>>>>>> danish
>>>>>>>>>>>>>>> characters.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [[SummaryByMonth]]
>>>>>>>>>>>>>>> # Reports that summarize "by month"
>>>>>>>>>>>>>>> [[[NOAA_month]]]
>>>>>>>>>>>>>>> encoding = utf8
>>>>>>>>>>>>>>> template = NOAA/NOAA-YYYY-MM.txt.tmpl
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [[SummaryByYear]]
>>>>>>>>>>>>>>> # Reports that summarize "by year"
>>>>>>>>>>>>>>> [[[NOAA_year]]]
>>>>>>>>>>>>>>> encoding = utf8
>>>>>>>>>>>>>>> template = NOAA/NOAA-YYYY.txt.tmpl
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Gert
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Thursday, March 12, 2020 at 11:42:09 PM UTC+1, vince
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Thursday, March 12, 2020 at 2:23:45 PM UTC-7, Gert
>>>>>>>>>>>>>>>> Andersen wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Mar 12 22:11:24 InterceptorTest wee_reports[6182]:
>>>>>>>>>>>>>>>>> Belchertown Extension: version 1.1b9
>>>>>>>>>>>>>>>>> Mar 12 22:11:27 InterceptorTest wee_reports[6182]:
>>>>>>>>>>>>>>>>> cheetahgenerator: Generate failed with exception '<type
>>>>>>>>>>>>>>>>> 'exceptions.UnicodeDecodeError'>'
>>>>>>>>>>>>>>>>> Mar 12 22:11:27 InterceptorTest wee_reports[6182]:
>>>>>>>>>>>>>>>>> cheetahgenerator: **** Ignoring template
>>>>>>>>>>>>>>>>> /etc/weewx/skins/Belchertown/about/index.html.tmpl
>>>>>>>>>>>>>>>>> Mar 12 22:11:27 InterceptorTest wee_reports[6182]:
>>>>>>>>>>>>>>>>> cheetahgenerator: **** Reason: 'ascii' codec can't decode
>>>>>>>>>>>>>>>>> byte 0xc3 in
>>>>>>>>>>>>>>>>> position 500: ordinal not in range(128)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> For starters, did you edit the index.html.tmpl file
>>>>>>>>>>>>>>>> mentioned above ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
--
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/d8d73941-21ab-4f0a-a19a-1a5fa2fcc5f7%40googlegroups.com.
about.inc
Description: Binary data
