thanks for your reply, but after several attempts i could not find out the files with this error. I am not practical enough. Can you tell me how to find these errors? thanks a lot
Il giorno venerdì 12 novembre 2021 alle 10:10:52 UTC+1 gjr80 ha scritto: > Bit of a punt but do you have the è (e grave - lowercase e with grave > accent) character anywhere in the Ftp skin.conf or the [StdReport] [[FTP]] > stanza in weewx.conf or in the name/path of any of the files being ftp’d? > That will likely be the source of the utf-8 error. > > Gary > > On Friday, 12 November 2021 at 07:08:53 UTC+10 [email protected] wrote: > >> Nov 11 22:03:10 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:03:10 raspberrypi weewx[5059] INFO weewx.cheetahgenerator: >> Generated 3 files for report ClientrawReport in 41.49 seconds >> Nov 11 22:03:10 raspberrypi weewx[5059] DEBUG weewx.reportengine: Running >> report 'FTP' >> Nov 11 22:03:10 raspberrypi weewx[5059] DEBUG weewx.reportengine: Found >> configuration file /home/weewx/skins/Ftp/skin.conf for report 'FTP' >> Nov 11 22:03:10 raspberrypi weewx[5059] DEBUG weeutil.ftpupload: >> Attempting connection to ftp.sassarimeteo.altervista.org >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: Caught >> unrecoverable exception in generator 'weewx.reportengine.FtpGenerator' >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** 'utf-8' codec can't decode byte 0xe8 in position 104: invalid >> continuation byte >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** Traceback (most recent call last): >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/home/weewx/bin/weewx/reportengine.py", line 196, in run >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** obj.start() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/home/weewx/bin/weewx/reportengine.py", line 281, in start >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** self.run() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/home/weewx/bin/weewx/reportengine.py", line 331, in run >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** n = ftp_data.run() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/home/weewx/bin/weeutil/ftpupload.py", line 133, in run >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** ftp_server.connect(self.server, self.port) >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/usr/lib/python3.9/ftplib.py", line 160, in connect >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** self.welcome = self.getresp() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/usr/lib/python3.9/ftplib.py", line 242, in getresp >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** resp = self.getmultiline() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/usr/lib/python3.9/ftplib.py", line 228, in getmultiline >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** line = self.getline() >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/usr/lib/python3.9/ftplib.py", line 210, in getline >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** line = self.file.readline(self.maxline + 1) >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** File "/usr/lib/python3.9/codecs.py", line 322, in decode >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** (result, consumed) = self._buffer_decode(data, self.errors, >> final) >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position >> 104: invalid continuation byte >> Nov 11 22:03:11 raspberrypi weewx[5059] ERROR weewx.reportengine: >> **** Generator terminated >> Nov 11 22:03:11 raspberrypi weewx[5059] DEBUG weewx.reportengine: Report >> 'RSYNC' not enabled. Skipping. >> Nov 11 22:03:13 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:03:16 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> ^C >> pi@raspberrypi:/home/weewx/public_html $ sudo tail -f /var/log/syslog >> Nov 11 22:04:09 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:04:13 raspberrypi weewx[5059] DEBUG user.sdr: lines=['{"time" : >> "2021-11-11 21:04:09", "model" : "Fineoffset-WHx080", "subtype" : 0, "id" : >> 12, "battery_ok" : 1, "temperature_C" : 12.700, "humidity" : 97, >> "wind_dir_deg" : 315, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, >> "rain_mm" : 3.600, "mic" : "CRC"}\n', '{"time" : "2021-11-11 21:04:09", >> "model" : "Fineoffset-WHx080", "subtype" : 0, "id" : 12, "battery_ok" : 1, >> "temperature_C" : 12.700, "humidity" : 97, "wind_dir_deg" : 315, >> "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "rain_mm" : 3.600, "mic" >> : "CRC"}\n'] >> Nov 11 22:04:13 raspberrypi weewx[5059] DEBUG user.sdr: >> packet={'windGust': 0.0, 'outBatteryStatus': 0, 'rain_total': 0.36, >> 'windSpeed': 0.0, 'windDir': 315.0, 'outHumidity': 97.0, 'outTemp': 12.7, >> 'dateTime': 1636664649, 'usUnits': 16} >> Nov 11 22:04:13 raspberrypi weewx[5059] DEBUG user.sdr: >> packet={'windGust': 0.0, 'outBatteryStatus': 0, 'rain_total': 0.36, >> 'windSpeed': 0.0, 'windDir': 315.0, 'outHumidity': 97.0, 'outTemp': 12.7, >> 'dateTime': 1636664649, 'usUnits': 16} >> Nov 11 22:04:13 raspberrypi weewx[5059] INFO user.rtcr: Failed to post >> data. Exception error message: 'HTTP Error 403: Forbidden' >> Nov 11 22:04:13 raspberrypi weewx[5059] INFO user.rtcr: packet >> (1636664649) clientraw.txt generated in 0.16375 seconds >> Nov 11 22:04:13 raspberrypi weewx[5059] INFO user.rtcr: packet >> (1636664649) skipped >> Nov 11 22:04:16 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:04:19 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:04:22 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> Nov 11 22:04:25 raspberrypi weewx[5059] DEBUG user.sdr: lines=[] >> >> >> Hi, can you help me? I'm always stuck at this point. thanks a lot >> > -- 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/b2c1892e-36e5-423d-8d97-e802b82687een%40googlegroups.com.
