Well, perhaps the error was caused by copying from the RPi to Windows. In any case, we still have not seen a log file. Set debug=1, restart weewx, then post the log from startup to the first report generation.
-tk On Wed, Oct 11, 2017 at 5:52 AM, Mauro De Lauretis < [email protected]> wrote: > Thanks for your reply Tom, I will have a look at it as soon as I can, but > It seems strange because I didn't get the error you posted me, > > > Il giorno martedì 10 ottobre 2017 14:19:35 UTC+2, Tom Keffer ha scritto: >> >> When I try your template (renamed as index.html.tmpl) and your skin >> configuration (renamed as skin.conf), I get this error: >> >> Oct 10 05:08:09 nuc wee_reports[15923]: cheetahgenerator: Generate failed >> with exception '<type 'exceptions.UnicodeDecodeError'>' >> Oct 10 05:08:09 nuc wee_reports[15923]: cheetahgenerator: **** Ignoring >> template /home/weewx/skins/Standard/index.html.tmpl >> Oct 10 05:08:09 nuc wee_reports[15923]: cheetahgenerator: **** Reason: >> 'utf8' codec can't decode byte 0xe0 in position 12436: invalid continuation >> byte >> Oct 10 05:08:09 nuc wee_reports[15923]: **** Traceback (most recent call >> last): >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/home/weewx/bin/weewx/cheetahgenerator.py", line 327, in generate >> Oct 10 05:08:09 nuc wee_reports[15923]: **** >> filtersLib=weewx.cheetahgenerator) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1259, in >> __init__ >> Oct 10 05:08:09 nuc wee_reports[15923]: **** self._compile(source, >> file, compilerSettings=compilerSettings) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1553, in >> _compile >> Oct 10 05:08:09 nuc wee_reports[15923]: **** >> keepRefToGeneratedCode=True) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 740, in >> compile >> Oct 10 05:08:09 nuc wee_reports[15923]: **** >> settings=(compilerSettings or {})) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py", line 1577, in >> __init__ >> Oct 10 05:08:09 nuc wee_reports[15923]: **** source = >> source.decode(encoding) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** File >> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode >> Oct 10 05:08:09 nuc wee_reports[15923]: **** return >> codecs.utf_8_decode(input, errors, True) >> Oct 10 05:08:09 nuc wee_reports[15923]: **** UnicodeDecodeError: 'utf8' >> codec can't decode byte 0xe0 in position 12436: invalid continuation byte >> >> These errors can be difficult to find. You'll have to go through your >> file index.html.tmpl carefully, By deleting parts of the file, the bad >> UTF-8 characters appears to be in the line >> >> <i><b>Nota:</b> Le immagini sono riprese e trasmesse ad una distanza tale >> da non permettere il riconoscimento dei tratti somatici delle persone, così >> come previsto dalla vigente normativa sulla privacy.</i> >> >> but I cannot be sure. There are a lot of scripts, styles, and classes >> that I don't recognize in your report, so I'm afraid I cannot help you much. >> >> -tk >> >> >> On Tue, Oct 10, 2017 at 4:00 AM, Mauro De Lauretis <[email protected] >> > wrote: >> >>> What kind of bad character did you mean? >>> >>> >>> >>> Il giorno martedì 22 agosto 2017 16:13:20 UTC+2, Tom Keffer ha scritto: >>>> >>>> It's hard to do an evaluation without a log file. >>>> >>>> The file you included, index.txt, has a bad character in it that does >>>> not encode with UTF-8. That could be the problem, but it's hard to tell >>>> without the log. >>>> >>>> Also, why is it named index.txt instead of index.html.tmpl? >>>> >>>> -tk >>>> >>>> On Tue, Aug 22, 2017 at 1:51 AM, Mauro De Lauretis < >>>> [email protected]> wrote: >>>> >>>>> Up! >>>>> >>>>> Nobody can help me to find a solution? >>>>> >>>>> -- >>>>> 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]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> 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]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
