I found the problem! my locale setup in Raspberry/stretch was ISO-8851-1 ?? 
and I changed it to UTF8
Everything is working fine now!!
Thanks

/Erika

Den måndag 3 december 2018 kl. 11:10:23 UTC+1 skrev [email protected]:
>
> Hello Thomas
> I have not changed any template, it seems to be problem with more skins ...
> I have done the installation with sudo apt-get install weewx
>
> here comes a new log:
>
> Dec  3 10:59:31 stretch4 systemd[1]: Starting LSB: weewx weather system...
> Dec  3 10:59:32 stretch4 weewx[5711]: engine: Initializing weewx version 
> 3.8.2
> Dec  3 10:59:32 stretch4 weewx[5711]: engine: Using Python 2.7.13 
> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
> Dec  3 10:59:32 stretch4 weewx[5711]: engine: Platform 
> Linux-4.14.79-v7+-armv7l-with-debian-9.6
> Dec  3 10:59:32 stretch4 weewx[5711]: engine: Locale is 'sv_SE'
> Dec  3 10:59:32 stretch4 weewx[5711]: engine: pid file is 
> /var/run/weewx.pid
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Using configuration file 
> /etc/weewx/weewx.conf
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Loading station type Airmar 
> (weewx.drivers.airmar)
> Dec  3 10:59:32 stretch4 weewx[5700]: Starting weewx weather system: weewx.
> Dec  3 10:59:32 stretch4 systemd[1]: Started LSB: weewx weather system.
> Dec  3 10:59:32 stretch4 weewx[5715]: airmar: driver version is 0.28
> Dec  3 10:59:32 stretch4 weewx[5715]: airmar: using serial port 
> /dev/ttyUSB0
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: StdConvert target unit is 0x1
> Dec  3 10:59:32 stretch4 weewx[5715]: wxcalculate: The following values 
> will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
> dewpoint=prefer_hardware, appTemp=prefer_hardware, 
> rainRate=prefer_hardware, windrun=prefer_hardware, 
> heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
> humidex=prefer_hardware, pressure=prefer_hardware, 
> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
> cloudbase=prefer_hardware
> Dec  3 10:59:32 stretch4 weewx[5715]: wxcalculate: The following 
> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Archive will use data 
> binding wx_binding
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Record generation will be 
> attempted in 'hardware'
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Using archive interval of 
> 300 seconds (specified in weewx configuration)
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Using binding 'wx_binding' 
> to database 'weewx.sdb'
> Dec  3 10:59:32 stretch4 weewx[5715]: manager: Starting backfill of daily 
> summaries
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: StationRegistry: Registration 
> not requested.
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: Wunderground: Posting not 
> enabled.
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: PWSweather: Posting not 
> enabled.
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: CWOP: Posting not enabled.
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: WOW: Posting not enabled.
> Dec  3 10:59:32 stretch4 weewx[5715]: restx: AWEKAS: Posting not enabled.
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Starting up weewx version 
> 3.8.2
> Dec  3 10:59:32 stretch4 weewx[5715]: engine: Starting main packet loop.
> Dec  3 10:59:32 stretch4 weewx[5715]: airmar: Garbled message
> Dec  3 11:00:16 stretch4 weewx[5715]: manager: Added record 2018-12-03 
> 11:00:00 CET (1543831200) to database 'weewx.sdb'
> Dec  3 11:00:16 stretch4 weewx[5715]: manager: Added record 2018-12-03 
> 11:00:00 CET (1543831200) to daily summary in 'weewx.sdb'
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: Generate failed 
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: **** Ignoring 
> template /etc/weewx/skins/Standard/week.html.tmpl
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: **** Reason: 
> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  3 11:00:18 stretch4 weewx[5715]: ****  Traceback (most recent call 
> last):
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      print >> _file, 
> compiled_template
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      rc = getattr(self, 
> mainMethName)()
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 813, in respond
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 595, in filter
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      filtered = 
> self.filter(str(val))
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      filtered = 
> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      return 
> codecs.utf_8_decode(input, errors, True)
> Dec  3 11:00:18 stretch4 weewx[5715]: ****  UnicodeDecodeError: 'utf8' 
> codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: Generate failed 
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: **** Ignoring 
> template /etc/weewx/skins/Standard/smartphone/temp_outside.html.tmpl
> Dec  3 11:00:18 stretch4 weewx[5715]: cheetahgenerator: **** Reason: 
> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  3 11:00:18 stretch4 weewx[5715]: ****  Traceback (most recent call 
> last):
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      print >> _file, 
> compiled_template
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      rc = getattr(self, 
> mainMethName)()
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "_etc_weewx_skins_Standard_smartphone_temp_outside_html_tmpl.py", line 129, 
> in respond
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 595, in filter
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      filtered = 
> self.filter(str(val))
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      filtered = 
> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
> Dec  3 11:00:18 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> Dec  3 11:00:18 stretch4 weewx[5715]: ****      return 
> codecs.utf_8_decode(input, errors, True)
> Dec  3 11:00:18 stretch4 weewx[5715]: ****  UnicodeDecodeError: 'utf8' 
> codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  3 11:00:20 stretch4 weewx[5715]: cheetahgenerator: Generate failed 
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  3 11:00:20 stretch4 weewx[5715]: cheetahgenerator: **** Ignoring 
> template /etc/weewx/skins/Standard/smartphone/barometer.html.tmpl
> Dec  3 11:00:20 stretch4 weewx[5715]: cheetahgenerator: **** Reason: 
> 'utf8' codec can't decode byte 0xe5 in position 11: invalid continuation 
> byte
> Dec  3 11:00:20 stretch4 weewx[5715]: ****  Traceback (most recent call 
> last):
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Dec  3 11:00:20 stretch4 weewx[5715]: ****      print >> _file, 
> compiled_template
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Dec  3 11:00:20 stretch4 weewx[5715]: ****      rc = getattr(self, 
> mainMethName)()
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "_etc_weewx_skins_Standard_smartphone_barometer_html_tmpl.py", line 130, in 
> respond
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 595, in filter
> Dec  3 11:00:20 stretch4 weewx[5715]: ****      filtered = 
> self.filter(str(val))
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
> Dec  3 11:00:20 stretch4 weewx[5715]: ****      filtered = 
> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
> Dec  3 11:00:20 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> Dec  3 11:00:20 stretch4 weewx[5715]: ****      return 
> codecs.utf_8_decode(input, errors, True)
> Dec  3 11:00:20 stretch4 weewx[5715]: ****  UnicodeDecodeError: 'utf8' 
> codec can't decode byte 0xe5 in position 11: invalid continuation byte
> Dec  3 11:00:21 stretch4 kernel: [84858.091459] Under-voltage detected! 
> (0x00050005)
> Dec  3 11:00:22 stretch4 weewx[5715]: cheetahgenerator: Generate failed 
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  3 11:00:22 stretch4 weewx[5715]: cheetahgenerator: **** Ignoring 
> template /etc/weewx/skins/Standard/RSS/weewx_rss.xml.tmpl
> Dec  3 11:00:22 stretch4 weewx[5715]: cheetahgenerator: **** Reason: 
> 'utf8' codec can't decode byte 0xe5 in position 1: invalid continuation byte
> Dec  3 11:00:22 stretch4 weewx[5715]: ****  Traceback (most recent call 
> last):
> Dec  3 11:00:22 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Dec  3 11:00:22 stretch4 weewx[5715]: ****      print >> _file, 
> compiled_template
> Dec  3 11:00:22 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Dec  3 11:00:22 stretch4 weewx[5715]: ****      rc = getattr(self, 
> mainMethName)()
> Dec  3 11:00:22 stretch4 weewx[5715]: ****    File 
> "_etc_weewx_skins_Standard_RSS_weewx_rss_xml_tmpl.py", line 102, in respond
> Dec  3 11:00:22 stretch4 weewx[5715]: ****    File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
> Dec  3 11:00:22 stretch4 weewx[5715]: ****      filtered = 
> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
> Dec  3 11:00:22 stretch4 weewx[5715]: ****    File 
> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> Dec  3 11:00:22 stretch4 weewx[5715]: ****      return 
> codecs.utf_8_decode(input, errors, True)
> Dec  3 11:00:22 stretch4 weewx[5715]: ****  UnicodeDecodeError: 'utf8' 
> codec can't decode byte 0xe5 in position 1: invalid continuation byte
> Dec  3 11:00:22 stretch4 weewx[5715]: cheetahgenerator: Generated 10 files 
> for report StandardReport in 4.99 seconds
> Dec  3 11:00:25 stretch4 weewx[5715]: imagegenerator: Generated 24 images 
> for StandardReport in 3.36 seconds
> Dec  3 11:00:25 stretch4 weewx[5715]: copygenerator: copied 9 files to 
> /var/www/html/weewx
> Dec  3 11:00:27 stretch4 kernel: [84864.331456] Voltage normalised 
> (0x00000000)
>
> /erika
>
> Den måndag 3 december 2018 kl. 03:16:32 UTC+1 skrev Thomas Keffer:
>>
>> Hello, Erika
>>
>> Did you change something in the template Standard/week.html.tmpl?
>>
>> Somehow it got a bad character in it, so it can not be decoded from UTF-8.
>>
>> -tk
>>
>> On Sun, Dec 2, 2018 at 11:37 AM <[email protected]> wrote:
>>
>>> I got below problem when I did a new weewx installation on Raspberry 
>>> Stretch:
>>>
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: Generate failed 
>>> with exception '<type 'exceptions.UnicodeDecodeError'>'
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Ignoring 
>>> template /etc/weewx/skins/Standard/week.html.tmpl
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Reason: 
>>> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****  Traceback (most recent call 
>>> last):
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****      print >> _file, 
>>> compiled_template
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>>> __str__
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****      rc = getattr(self, 
>>> mainMethName)()
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 813, in respond
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 595, in filter
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****      filtered = 
>>> self.filter(str(val))
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****      filtered = 
>>> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File 
>>> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****      return 
>>> codecs.utf_8_decode(input, errors, True)
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****  UnicodeDecodeError: 'utf8' 
>>> codec can't decode byte 0xf6 in position 11: invalid start byte
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: Generate failed 
>>> with exception '<type 'exceptions.UnicodeDecodeError'>'
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Ignoring 
>>> template /etc/weewx/skins/Standard/smartphone/temp_outside.html.tmpl
>>> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Reason: 
>>> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
>>> Dec  2 18:50:17 stretch4 weewx[3763]: ****  Traceback (most recent call 
>>> last):
>>>
>>> etc
>>>
>>> /Thomas
>>>
>>>
>>>
>>>
>>> -- 
>>> 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.

Reply via email to