Closed fscwetter closed 5 years ago
Does your database have a missing value outtemp or wind speed?
On Sun, Jan 6, 2019, 11:47 AM fscwetter notifications@github.com wrote:
Hello I allways get this error!What value its wrong, I try with other versions too
Jan 6 17:42:55 raspberrypi weewx[24314]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 11.23 seconds Jan 6 17:42:55 raspberrypi weewx[24314]: copygenerator: copied 0 files to /var/www/html/belchertown Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>' Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Ignoring template /home/weewx/skins/Belchertown/index.html.tmpl Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Reason: invalid literal for float(): 0,5 Jan 6 17:42:56 raspberrypi weewx[24314]: Traceback (most recent call last): Jan 6 17:42:56 raspberrypi weewx[24314]: File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate Jan 6 17:42:56 raspberrypi weewx[24314]: print >> _file, compiled_template Jan 6 17:42:56 raspberrypi weewx[24314]: File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in str Jan 6 17:42:56 raspberrypi weewx[24314]: rc = getattr(self, mainMethName)() Jan 6 17:42:56 raspberrypi weewx[24314]: File "_home_weewx_skins_Belchertown_index_html_tmpl.py", line 1548, in respond Jan 6 17:42:56 raspberrypi weewx[24314]: ValueError: invalid literal for float(): 0,5 Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>' Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Ignoring template /home/weewx/skins/Belchertown/pi/index.html.tmpl Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Reason: invalid literal for float(): 0,5 Jan 6 17:42:56 raspberrypi weewx[24314]: Traceback (most recent call last): Jan 6 17:42:56 raspberrypi weewx[24314]: File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate Jan 6 17:42:56 raspberrypi weewx[24314]: print >> _file, compiled_template Jan 6 17:42:56 raspberrypi weewx[24314]: File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in str Jan 6 17:42:56 raspberrypi weewx[24314]: rc = getattr(self, mainMethName)() Jan 6 17:42:56 raspberrypi weewx[24314]: File "_home_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1197, in respond Jan 6 17:42:56 raspberrypi weewx[24314]: ValueError: invalid literal for float(): 0,5 Jan 6 17:42:56 raspberrypi weewx[24314]: cheetahgenerator: Generated 11 files for report Belchertown in 1.59 seconds Jan 6 17:42:56 raspberrypi weewx[24314]: copygenerator: copied 1 files to /var/www/html/belchertown
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/poblabs/weewx-belchertown/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUsZ_nOaH1qnrVfYeJbjgjDdihSgbxkks5vAiiwgaJpZM4ZygXS .
I dont use rainfall on my station, Wind and Outtemp works fine, all works on other skin
I understand that it may work with other skins, but this skin does a lot of data parsing and if there's any empty or null values in your database it'll cause an error similar to this.
Please paste the output of these commands
sudo wee_database --check
sudo wee_database --check-strings
Please also provide how you've configured the skin
Please also provide how you've installed weewx.
sudo ./wee_extension --install weewx-belchertown-0.8.2.tar.gz
pi@raspberrypi:/home/weewx/bin $ sudo ./wee_database --check-strings
Using configuration file /home/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Preparing Null String Check, this may take awhile...
Checking record: 126541; Timestamp: 2019-01-06 16:48:00 CET (1546789680)
No null strings found.
Completed Null String Check in 16.32 seconds.
pi@raspberrypi:/home/weewx/bin $ sudo ./wee_database --check
Using configuration file /home/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Checking daily summary tables version...
Daily summary tables are at version 2.0
Interval Weighting Fix is not required.
Daily summary tables version check completed in 0.03 seconds.
Preparing Null String Check, this may take awhile...
Checking record: 126566; Timestamp: 2019-01-06 18:03:00 CET (1546794180)
No null strings found.
Completed Null String Check in 16.68 seconds.
at moment I make any change on skin.config
Please also provide how you've configured the skin
Please also provide how you've installed weewx.
In addition to these questions, paste the full error block from syslog. There should be something that says "Belchertown skin version"
There's not a lot of information here to try to help you yet
Jan 6 18:09:18 raspberrypi weewx[24314]: manager: Added record 2019-01-06 18:09:00 CET (1546794540) to database 'weewx.sdb'
Jan 6 18:09:18 raspberrypi weewx[24314]: manager: Added record 2019-01-06 18:09:00 CET (1546794540) to daily summary in 'weewx.sdb'
Jan 6 18:09:22 raspberrypi weewx[24314]: cheetahgenerator: Generated 12 files for report Newskin in 1.39 seconds
Jan 6 18:09:25 raspberrypi weewx[24314]: imagegenerator: Generated 15 images for Newskin in 2.69 seconds
Jan 6 18:09:25 raspberrypi weewx[24314]: copygenerator: copied 0 files to /var/www/html
Jan 6 18:09:36 raspberrypi weewx[24314]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 11.34 seconds
Jan 6 18:09:36 raspberrypi weewx[24314]: copygenerator: copied 0 files to /var/www/html/belchertown
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/index.html.tmpl
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: **** Reason: invalid literal for float(): 1,3
Jan 6 18:09:38 raspberrypi weewx[24314]: **** Traceback (most recent call last):
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 18:09:38 raspberrypi weewx[24314]: **** print >> _file, compiled_template
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 18:09:38 raspberrypi weewx[24314]: **** rc = getattr(self, mainMethName)()
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "_home_weewx_skins_Belchertown_index_html_tmpl.py", line 1548, in respond
Jan 6 18:09:38 raspberrypi weewx[24314]: **** ValueError: invalid literal for float(): 1,3
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/pi/index.html.tmpl
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: **** Reason: invalid literal for float(): 1,3
Jan 6 18:09:38 raspberrypi weewx[24314]: **** Traceback (most recent call last):
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 18:09:38 raspberrypi weewx[24314]: **** print >> _file, compiled_template
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 18:09:38 raspberrypi weewx[24314]: **** rc = getattr(self, mainMethName)()
Jan 6 18:09:38 raspberrypi weewx[24314]: **** File "_home_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1197, in respond
Jan 6 18:09:38 raspberrypi weewx[24314]: **** ValueError: invalid literal for float(): 1,3
Jan 6 18:09:38 raspberrypi weewx[24314]: cheetahgenerator: Generated 11 files for report Belchertown in 1.60 seconds
Jan 6 18:09:38 raspberrypi weewx[24314]: copygenerator: copied 1 files to /var/www/html/belchertown
Jan 6 17:39:26 raspberrypi weewx[24314]: manager: Added record 2019-01-06 17:39:00 CET (1546792740) to database 'weewx.sdb'
Jan 6 17:39:26 raspberrypi weewx[24314]: manager: Added record 2019-01-06 17:39:00 CET (1546792740) to daily summary in 'weewx.sdb'
Jan 6 17:39:41 raspberrypi weewx[24314]: cheetahgenerator: Generated 12 files for report Newskin in 7.74 seconds
Jan 6 17:39:44 raspberrypi weewx[24314]: imagegenerator: Generated 15 images for Newskin in 2.84 seconds
Jan 6 17:39:44 raspberrypi weewx[24314]: copygenerator: copied 3 files to /var/www/html
Jan 6 17:39:55 raspberrypi weewx[24314]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 11.65 seconds
Jan 6 17:39:55 raspberrypi weewx[24314]: copygenerator: copied 0 files to /var/www/html/belchertown
Jan 6 17:39:55 raspberrypi weewx[24314]: Belchertown Extension: version 0.8.2
Jan 6 17:40:02 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 17:40:02 raspberrypi weewx[24314]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/index.html.tmpl
Jan 6 17:40:02 raspberrypi weewx[24314]: cheetahgenerator: **** Reason: invalid literal for float(): 2,0
Jan 6 17:40:02 raspberrypi weewx[24314]: **** Traceback (most recent call last):
Jan 6 17:40:02 raspberrypi weewx[24314]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 17:40:02 raspberrypi weewx[24314]: **** print >> _file, compiled_template
Jan 6 17:40:02 raspberrypi weewx[24314]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 17:40:02 raspberrypi weewx[24314]: **** rc = getattr(self, mainMethName)()
Jan 6 17:40:02 raspberrypi weewx[24314]: **** File "_home_weewx_skins_Belchertown_index_html_tmpl.py", line 1548, in respond
Jan 6 17:40:02 raspberrypi weewx[24314]: **** ValueError: invalid literal for float(): 2,0
Jan 6 17:40:03 raspberrypi weewx[24314]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 17:40:03 raspberrypi weewx[24314]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/pi/index.html.tmpl
Jan 6 17:40:03 raspberrypi weewx[24314]: cheetahgenerator: **** Reason: invalid literal for float(): 2,0
Jan 6 17:40:03 raspberrypi weewx[24314]: **** Traceback (most recent call last):
Jan 6 17:40:03 raspberrypi weewx[24314]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 17:40:03 raspberrypi weewx[24314]: **** print >> _file, compiled_template
Jan 6 17:40:03 raspberrypi weewx[24314]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 17:40:03 raspberrypi weewx[24314]: **** rc = getattr(self, mainMethName)()
Jan 6 17:40:03 raspberrypi weewx[24314]: **** File "_home_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1197, in respond
Jan 6 17:40:03 raspberrypi weewx[24314]: **** ValueError: invalid literal for float(): 2,0
Jan 6 17:40:04 raspberrypi weewx[24314]: cheetahgenerator: Generated 11 files for report Belchertown in 8.89 seconds
Jan 6 17:40:04 raspberrypi weewx[24314]: copygenerator: copied 23 files to /var/www/html/belchertown
Jan 6 17:40:34 raspberrypi weewx[24314]: ftpgenerator: ftp'd 142 files in 29.55 seconds
Bet it's not the new skin version
@sgrayban That's what I'm thinking since his output doesn't say a skin version. That was added in 0.6 I believe.
@fscwetter Please upgrade to this version and restart weewx https://github.com/poblabs/weewx-belchertown/releases/tag/weewx-belchertown-0.8.2
I used to be like this... we install something manually and think its going to update itself or tell you to update...
If you didn't use the debian package system to install a app on Rpi it will need constant monitoring for updates. I learned that the hard way so many times...
I delete in weeex the skin Belchertown and user belchertown.py and belchertown_highchartsSearchX.py and install new now i get this
Jan 6 18:30:16 raspberrypi systemd[1]: Started Session c699 of user root.
Jan 6 18:30:31 raspberrypi weewx[26045]: manager: Added record 2019-01-06 18:30:00 CET (1546795800) to database 'weewx.sdb'
Jan 6 18:30:31 raspberrypi weewx[26045]: manager: Added record 2019-01-06 18:30:00 CET (1546795800) to daily summary in 'weewx.sdb'
Jan 6 18:30:45 raspberrypi weewx[26045]: cheetahgenerator: Generated 12 files for report Newskin in 7.79 seconds
Jan 6 18:30:48 raspberrypi weewx[26045]: imagegenerator: Generated 15 images for Newskin in 2.74 seconds
Jan 6 18:30:48 raspberrypi weewx[26045]: copygenerator: copied 3 files to /var/www/html
Jan 6 18:30:57 raspberrypi systemd[1]: Started Session c700 of user root.
Jan 6 18:30:59 raspberrypi weewx[26045]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 11.79 seconds
Jan 6 18:30:59 raspberrypi weewx[26045]: copygenerator: copied 0 files to /var/www/html/belchertown
Jan 6 18:30:59 raspberrypi weewx[26045]: Belchertown Extension: version 0.8.2
Jan 6 18:30:59 raspberrypi weewx[26045]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jan 6 18:30:59 raspberrypi weewx[26045]: **** 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Jan 6 18:30:59 raspberrypi weewx[26045]: **** Traceback (most recent call last):
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
Jan 6 18:30:59 raspberrypi weewx[26045]: **** obj.start()
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
Jan 6 18:30:59 raspberrypi weewx[26045]: **** self.run()
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run
Jan 6 18:30:59 raspberrypi weewx[26045]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jan 6 18:30:59 raspberrypi weewx[26045]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jan 6 18:30:59 raspberrypi weewx[26045]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Jan 6 18:30:59 raspberrypi weewx[26045]: **** default_binding)
Jan 6 18:30:59 raspberrypi weewx[26045]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jan 6 18:30:59 raspberrypi weewx[26045]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Jan 6 18:31:00 raspberrypi weewx[26045]: **** File "/home/weewx/bin/user/belchertown.py", line 319, in get_extension_list
Jan 6 18:31:00 raspberrypi weewx[26045]: **** at_rainiest_month = [ calendar.month_name[ int( at_rainiest_month_query[0] ) ] + ", " + at_rainiest_month_query[1], at_rainiest_month_converted ]
Jan 6 18:31:00 raspberrypi weewx[26045]: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Jan 6 18:31:00 raspberrypi weewx[26045]: **** Generator terminated
Jan 6 18:31:00 raspberrypi weewx[26045]: copygenerator: copied 22 files to /var/www/html/belchertown
Dude install the skin THE RIGHT way...
https://github.com/poblabs/weewx-belchertown#install-weewx-belchertown
Yes pi@raspberrypi:/home/weewx/bin $ sudo ./wee_extension --install weewx-belchertown-0.8.2.tar.gz Request to install 'weewx-belchertown-0.8.2.tar.gz' Extracting from tar archive weewx-belchertown-0.8.2.tar.gz Saving installer file to /home/weewx/bin/user/installer/Belchertown Saved configuration dictionary. Backup copy at /home/weewx/weewx.conf.20190106182835 Finished installing extension 'weewx-belchertown-0.8.2.tar.gz'
now read this also
https://groups.google.com/d/msg/weewx-user/6Sa3vfzsH6k/cEQJ6ASXDQAJ
After restarting weewx are you still having errors ?
I'll take the sound of silence as a profound yes...
@sgrayban maybe, maybe not. Sometimes I disappear in the middle of problems too 😃
sorry was busy
Jan 6 19:11:06 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Jan 6 19:11:17 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Jan 6 19:11:17 raspberrypi weewx[27360]: engine: Initializing weewx version 3.8.2
Jan 6 19:11:17 raspberrypi weewx[27360]: engine: Using Python 2.7.13 (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Jan 6 19:11:17 raspberrypi weewx[27360]: engine: Platform Linux-4.14.79-v7+-armv7l-with-debian-9.6
Jan 6 19:11:17 raspberrypi weewx[27360]: engine: Locale is 'de_AT.UTF-8'
Jan 6 19:11:17 raspberrypi weewx[27360]: engine: pid file is /var/run/weewx.pid
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Using configuration file /home/weewx/weewx.conf
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Loading station type PiWeather (user.piweather)
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: StdConvert target unit is 0x10
Jan 6 19:11:17 raspberrypi weewx[27349]: Starting weewx weather system: weewx.
Jan 6 19:11:17 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jan 6 19:11:17 raspberrypi weewx[27364]: 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
Jan 6 19:11:17 raspberrypi weewx[27364]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Archive will use data binding wx_binding
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Record generation will be attempted in 'hardware'
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Using archive interval of 180 seconds (specified in weewx configuration)
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan 6 19:11:17 raspberrypi weewx[27364]: manager: Starting backfill of daily summaries
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: StationRegistry: Registration not requested.
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: Wunderground: Posting not enabled.
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: PWSweather: Posting not enabled.
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: CWOP: Posting not enabled.
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: WOW: Posting not enabled.
Jan 6 19:11:17 raspberrypi weewx[27364]: restx: AWEKAS: Posting not enabled.
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Starting up weewx version 3.8.2
Jan 6 19:11:17 raspberrypi weewx[27364]: engine: Starting main packet loop.
Jan 6 19:11:27 raspberrypi dhcpcd[519]: eth0: Router Advertisement from fe80::1
Jan 6 19:12:34 raspberrypi weewx[27364]: manager: Added record 2019-01-06 19:12:00 CET (1546798320) to database 'weewx.sdb'
Jan 6 19:12:34 raspberrypi weewx[27364]: manager: Added record 2019-01-06 19:12:00 CET (1546798320) to daily summary in 'weewx.sdb'
Jan 6 19:12:48 raspberrypi weewx[27364]: cheetahgenerator: Generated 12 files for report Newskin in 7.74 seconds
Jan 6 19:12:50 raspberrypi weewx[27364]: imagegenerator: Generated 15 images for Newskin in 2.74 seconds
Jan 6 19:12:50 raspberrypi weewx[27364]: copygenerator: copied 3 files to /var/www/html
Jan 6 19:13:02 raspberrypi weewx[27364]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 11.67 seconds
Jan 6 19:13:02 raspberrypi weewx[27364]: copygenerator: copied 0 files to /var/www/html/belchertown
Jan 6 19:13:02 raspberrypi weewx[27364]: Belchertown Extension: version 0.8.2
Jan 6 19:13:02 raspberrypi weewx[27364]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jan 6 19:13:02 raspberrypi weewx[27364]: **** 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** Traceback (most recent call last):
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
Jan 6 19:13:02 raspberrypi weewx[27364]: **** obj.start()
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
Jan 6 19:13:02 raspberrypi weewx[27364]: **** self.run()
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run
Jan 6 19:13:02 raspberrypi weewx[27364]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jan 6 19:13:02 raspberrypi weewx[27364]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jan 6 19:13:02 raspberrypi weewx[27364]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Jan 6 19:13:02 raspberrypi weewx[27364]: **** default_binding)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jan 6 19:13:02 raspberrypi weewx[27364]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** File "/home/weewx/bin/user/belchertown.py", line 319, in get_extension_list
Jan 6 19:13:02 raspberrypi weewx[27364]: **** at_rainiest_month = [ calendar.month_name[ int( at_rainiest_month_query[0] ) ] + ", " + at_rainiest_month_query[1], at_rainiest_month_converted ]
Jan 6 19:13:02 raspberrypi weewx[27364]: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Jan 6 19:13:02 raspberrypi weewx[27364]: **** Generator terminated
Jan 6 19:13:02 raspberrypi weewx[27364]: copygenerator: copied 22 files to /var/www/html/belchertown
Jan 6 19:13:41 raspberrypi weewx[27364]: ftpgenerator: ftp'd 130 files in 39.03 seconds
Ok there is something definitely wrong with how the files are being saved and encode. I wonder if this could be a UTF-8 issue ?
The reason I'm saying that is from this line....
Jan 6 19:13:02 raspberrypi weewx[27364]: ** UnicodeDecodeError**: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
do you have python-unidecode installed ?
no , but i install now and restart weewx
Also make sure you are using python2.7 and NOT python3.
And one more thing, past the output of.....
env |grep LANG
I dont no what weewx use
LANG=de_AT.UTF-8
pi@raspberrypi:~ $ ls -la /usr/bin/python* lrwxrwxrwx 1 root root 9 Jän 24 2017 /usr/bin/python -> python2.7 lrwxrwxrwx 1 root root 9 Jän 24 2017 /usr/bin/python2 -> python2.7 -rwxr-xr-x 1 root root 3166320 Sep 26 20:42 /usr/bin/python2.7 lrwxrwxrwx 1 root root 36 Sep 26 20:42 /usr/bin/python2.7-config -> arm-lin ux-gnueabihf-python2.7-config lrwxrwxrwx 1 root root 16 Jän 24 2017 /usr/bin/python2-config -> python2.7 -config lrwxrwxrwx 1 root root 9 Jän 20 2017 /usr/bin/python3 -> python3.5 -rwxr-xr-x 2 root root 3976256 Sep 27 19:25 /usr/bin/python3.5 -rwxr-xr-x 2 root root 3976256 Sep 27 19:25 /usr/bin/python3.5m lrwxrwxrwx 1 root root 10 Jän 20 2017 /usr/bin/python3m -> python3.5m lrwxrwxrwx 1 root root 16 Jän 24 2017 /usr/bin/python-config -> python2.7-
Ok this is very odd. Default python is 2.7 and Lang is utf-8 and still have a decode error ?
but dont forget i dont use any rain value
That shouldn't be a issue so long as the database has that in the structure. It would just return a null value
Pat ? Any ideas ?
Only thing I can say is the database got messed up.
How long have you used weeWX?
the database its 1 year
The error 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
does seem to point to a character issue. I saw this before in the forums.
@fscwetter Can you paste your skin settings? Are you using German letters anywhere in the configuration?
Post the entire file excluding passwords.
maby I habe anywhere german in the configuration
###############################################################################
# SKIN CONFIGURATION FILE #
# Copyright (c) 2010 Tom Keffer <tkeffer@gmail.com> #
###############################################################################
[Extras]
# General Site Defaults
belchertown_root_url = "10.0.0.50"
logo_image = ""
site_title = "My Weather Website"
radar_html = ""
footer_copyright_text = "My Weather Website"
# Enabled by default since majority of the theme is wrapped around the charts
highcharts_enabled = 1
highcharts_graph_1 = "temperatureplot"
highcharts_graph_2 = "windplot"
highcharts_graph_3 = "rainplot"
highcharts_graph_4 = "winddirplot"
highcharts_graph_5 = "barometerplot"
highcharts_graph_6 = "radiationplot"
highcharts_show_windchill = 1
highcharts_show_heatindex = 1
highcharts_show_apptemp = 0
# If you've extended your weewx database to include the below, you can enable them
show_apptemp = 0
show_windrun = 0
show_cloudbase = 0
# Default page headers
graphs_page_header = "Weather Observation Graphs"
records_page_header = "Weather Observation Records"
reports_page_header = "Weather Observation Reports"
about_page_header = "About This Weather Station"
# MQTT Defaults
mqtt_enabled = 0
mqtt_host = ""
mqtt_port = 1883
mqtt_ssl = 0
mqtt_topic = ""
disconnect_live_website_visitor = 1800000
# Forecast defaults
forecast_enabled = 0
darksky_secret_key = ""
darksky_units = "auto"
darksky_lang = "en"
forecast_stale = 3540
forecast_alert_enabled = 0
# Earthquake defaults
earthquake_enabled = 0
earthquake_maxradiuskm = 1000
earthquake_stale = 10740
# Social Share Button Defaults
facebook_enabled = 0
twitter_enabled = 0
twitter_owner = ""
twitter_hashtags = "weewx #weather"
# Google Analytics
#googleAnalyticsId = UA-12345678-1
###############################################################################
[Units]
# This section is for managing the selection and formatting of units.
[[Groups]]
# For each group of measurements, this section sets what units to
# use for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
group_altitude = foot # Options are 'foot' or 'meter'
group_degree_day = degree_F_day # Options are 'degree_F_day' or 'degree_C_day'
group_direction = degree_compass
group_moisture = centibar
group_percent = percent
group_pressure = inHg # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
group_radiation = watt_per_meter_squared
group_rain = inch # Options are 'inch', 'cm', or 'mm'
group_rainrate = inch_per_hour # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed = mile_per_hour # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2 = mile_per_hour2 # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature = degree_F # Options are 'degree_F' or 'degree_C'
group_uv = uv_index
group_volt = volt
# The following are used internally and should not be changed:
group_count = count
group_interval = minute
group_time = unix_epoch
group_elapsed = second
[[StringFormats]]
# This section sets the string formatting for each type of unit.
centibar = %.0f
cm = %.2f
cm_per_hour = %.2f
degree_C = %.1f
degree_F = %.1f
degree_compass = %.0f
foot = %.0f
hPa = %.1f
hour = %.1f
inHg = %.3f
inch = %.2f
inch_per_hour = %.2f
km_per_hour = %.0f
km_per_hour2 = %.1f
knot = %.0f
knot2 = %.1f
mbar = %.1f
meter = %.0f
meter_per_second = %.1f
meter_per_second2 = %.1f
mile_per_hour = %.0f
mile_per_hour2 = %.1f
mm = %.1f
mmHg = %.1f
mm_per_hour = %.1f
percent = %.0f
second = %.0f
uv_index = %.1f
volt = %.1f
watt_per_meter_squared = %.0f
NONE = "N/A"
[[Labels]]
# This section sets a label to be used for each type of unit.
centibar = " cb"
cm = " cm"
cm_per_hour = " cm/hr"
degree_C = " °C"
degree_F = " °F"
degree_compass = °
foot = " feet"
hPa = " hPa"
inHg = " inHg"
inch = " in"
inch_per_hour = " in/hr"
km_per_hour = " km/h"
km_per_hour2 = " km/h"
knot = " knots"
knot2 = " knots"
mbar = " mbar"
meter = " meters"
meter_per_second = " m/s"
meter_per_second2 = " m/s"
mile_per_hour = " mph"
mile_per_hour2 = " mph"
mm = " mm"
mmHg = " mmHg"
mm_per_hour = " mm/hr"
percent = %
volt = " V"
watt_per_meter_squared = " W/m²"
day = " day", " days"
hour = " hour", " hours"
minute = " minute", " minutes"
second = " second", " seconds"
NONE = ""
[[TimeFormats]]
# This section sets the string format to be used for each time scale.
# The values below will work in every locale, but may not look
# particularly attractive. See the Customization Guide for alternatives.
day = %X
week = %X (%A)
month = %x %X
year = %x %X
rainyear = %x %X
current = %x %X
ephem_day = %X
ephem_year = %x %X
[[Ordinates]]
# The ordinal directions. The last one should be for no wind direction
directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
[[DegreeDays]]
# This section sets the base temperatures used for the calculation
# of heating and cooling degree-days.
# Base temperature for heating days, with unit:
heating_base = 65, degree_F
# Base temperature for cooling days, with unit:
cooling_base = 65, degree_F
[[Trend]]
time_delta = 10800 # 3 hours
time_grace = 300 # 5 minutes
###############################################################################
[Labels]
# Labels used in this skin
# Set to hemisphere abbreviations suitable for your location:
hemispheres = N, S, E, W
# Formats to be used for latitude whole degrees, longitude whole degrees,
# and minutes:
latlon_formats = "%02d", "%03d", "%05.2f"
[[Generic]]
# Generic labels, keyed by an observation type.
barometer = Barometer
dewpoint = Dew Point
heatindex = Heat Index
inHumidity = Inside Humidity
inTemp = Inside Temperature
outHumidity = Outside Humidity
outTemp = Outside Temperature
radiation = Radiation
rain = Rain
rainRate = Rain Rate
rxCheckPercent = ISS Signal Quality
UV = UV Index
windDir = Wind Direction
windGust = Gust Speed
windGustDir = Gust Direction
windSpeed = Wind Speed
windchill = Wind Chill
windgustvec = Gust Vector
windvec = Wind Vector
###############################################################################
[Almanac]
# The labels to be used for the phases of the moon:
moon_phases = New Moon, Waxing Crescent, First Quarter, Waxing Gibbous, Full Moon, Waning Gibbous, Last Quarter, Waning Crescent
###############################################################################
[CheetahGenerator]
# This section is used by the generator CheetahGenerator, and specifies
# which files are to be generated from which template.
search_list_extensions = user.belchertown.getData
# Possible encodings are 'html_entities', 'utf8', or 'strict_ascii'
encoding = html_entities
[[SummaryByMonth]]
# Reports that summarize "by month"
[[[NOAA_month]]]
encoding = strict_ascii
template = NOAA/NOAA-YYYY-MM.txt.tmpl
[[SummaryByYear]]
# Reports that summarize "by year"
[[[NOAA_year]]]
encoding = strict_ascii
template = NOAA/NOAA-YYYY.txt.tmpl
[[ToDate]]
# Reports that show statistics "to date", such as day-to-date,
# week-to-date, month-to-date, etc.
[[[weewx_data]]]
template = json/weewx_data.json.tmpl
[[HighCharts_JS_Day]]
template = js/highcharts-dayplots.js.tmpl
[[HighCharts_JS_Week]]
template = js/highcharts-weekplots.js.tmpl
[[HighCharts_JS_Month]]
template = js/highcharts-monthplots.js.tmpl
[[HighCharts_JS_Year]]
template = js/highcharts-yearplots.js.tmpl
[[[home]]]
template = index.html.tmpl
[[[about]]]
template = about/index.html.tmpl
[[[graphs]]]
template = graphs/index.html.tmpl
[[[records]]]
template = records/index.html.tmpl
[[[reports]]]
template = reports/index.html.tmpl
[[[pi]]]
template = pi/index.html.tmpl
###############################################################################
[CopyGenerator]
# This section is used by the generator CopyGenerator
# List of files to be copied only the first time the generator runs
copy_once = favicon.ico, images/*, json/index.html, js/index.html, js/responsive-menu.js
# List of files to be copied each time the generator runs
copy_always = style.css
###############################################################################
#
# The list of generators that are to be run:
#
[Generators]
generator_list = weewx.cheetahgenerator.CheetahGenerator, weewx.reportengine.CopyGenerator
sorry what file
Your weewx.conf
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
# See the file LICENSE.txt for your rights.
##############################################################################
# This section is for general configuration information.
# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx
# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20
# Do not modify this. It is used when installing and updating weewx.
version = 3.8.2
##############################################################################
# This section is for information about the station.
[Station]
# Description of the station location
location = Reisenberg GSC
# Latitude and longitude in decimal degrees
latitude = 46.98184310384741
longitude = 14.372672688773491
# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 868, meter # Choose 'foot' or 'meter' for unit
# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be used.
station_type = PiWeather
# If you have a website, you may specify an URL
station_url = http://scharfeseckgleitschirm.club/belchertown/
# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1
# Start of week (0=Monday, 6=Sunday)
week_start = 0
##############################################################################
[Simulator]
# This section is for the weewx weather station simulator
# The time (in seconds) between LOOP packets.
loop_interval = 2.5
# The simulator mode can be either 'simulator' or 'generator'.
# Real-time simulator. Sleep between each LOOP packet.
mode = simulator
# Generator. Emit LOOP packets as fast as possible (useful for testing).
#mode = generator
# The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default
# is to use the present time.
#start = 2011-01-01T00:00
# The driver to use:
driver = weewx.drivers.simulator
##############################################################################
# This section is for uploading data to Internet sites
[StdRESTful]
[[StationRegistry]]
# To register this weather station with weewx, set this to true
register_this_station = false
[[AWEKAS]]
# This section is for configuring posts to AWEKAS.
# If you wish to do this, set the option 'enable' to true,
# and specify a username and password.
enable = false
username = replace_me
# To guard against parsing errors, put your password in quotes:
password = replace_me
[[CWOP]]
# This section is for configuring posts to CWOP.
# If you wish to do this, set the option 'enable' to true,
# and specify the station ID (e.g., CW1234).
enable = false
station = replace_me
# If this is an APRS (radio amateur) station, uncomment
# the following and replace with a passcode (e.g., 12345).
#passcode = replace_me (APRS stations only)
[[PWSweather]]
# This section is for configuring posts to PWSweather.com.
# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
enable = false
station = replace_me
# To guard against parsing errors, put your password in quotes:
password = replace_me
[[WOW]]
# This section is for configuring posts to WOW.
# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
enable = false
station = replace_me
# To guard against parsing errors, put your password in quotes:
password = replace_me
[[Wunderground]]
# This section is for configuring posts to the Weather Underground.
# If you wish to do this, set the option 'enable' to true,
# and specify a station (e.g., 'KORHOODR3') and password.
enable = false
station = replace_me
# To guard against parsing errors, put your password in quotes:
password = replace_me
# Set the following to True to have weewx use the WU "Rapidfire"
# protocol. Not all hardware can support it. See the User's Guide.
rapidfire = False
# [[MQTT]]
# server_url =
# topic = weather
# unit_system = METRIC
##############################################################################
# This section specifies what reports, using which skins, to generate.
[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = /var/www/html/rabenwetter
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Each of the following subsections defines a report that will be run.
[[StandardReport]]
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
# The StandardReport uses the 'Standard' skin, which contains the
# images, templates and plots for the report.
skin = Rabenwetter
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_speed2 = meter_per_second2
group_pressure = mbar
group_rain = mm
group_rainrate = mm_per_hour
group_temperature = degree_C
group_degree_day = degree_C_day
group_speed = km_per_hour #meter_per_second
group_distance = km
group_amp = amp
group_power = watt
group_volt = volt
[[Newskin]]
HTML_ROOT = /var/www/html
skin = Responsive
[[Highcharts_Belchertown]]
HTML_ROOT = /var/www/html/belchertown
skin = Highcharts_Belchertown
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_degree_day = degree_C_day
group_pressure = mbar
group_rainrate = mm_per_hour
group_speed = meter_per_second
group_speed2 = meter_per_second2
group_temperature = degree_C
group_amp = amp
group_power = watt
group_volt = volt
group_uv = uv_index
group_radiation = watt_per_meter_squared
[[Belchertown]]
HTML_ROOT = /var/www/html/belchertown
skin = Belchertown
[[[Extras]]]
belchertown_root_url = http://your_full_website_url
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_degree_day = degree_C_day
group_pressure = mbar
group_rainrate = mm_per_hour
group_speed = meter_per_second
group_speed2 = meter_per_second2
group_temperature = degree_C
group_amp = amp
group_power = watt
group_volt = volt
group_uv = uv_index
group_radiation = watt_per_meter_squared
[[FTP]]
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
skin = Ftp
# If you wish to use FTP, uncomment and fill out the next four lines.
#user = #replace with the ftp username
#password = #replace with the ftp password; put in quotes to guard against parsing errors.
#server = #replace with the ftp server name, e.g, www.threefools.org
#path = / #replace with the ftp destination directory (e.g., /weather)
user = #replace with the ftp username
password = #replace with the ftp password; put in quotes to guard against parsing errors.
server = #replace with the ftp server name, e.g, www.threefools.org
path = /www #replace with the ftp destination directory (e.g., /weather)
# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = False
# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
HTML_ROOT = /var/www/html # public_html
# Most FTP servers use port 21
port = 21
# Set to 1 to use passive mode, zero for active mode
passive = 1 #1
[[RSYNC]]
# rsync'ing to a webserver is treated as just another report
skin = Rsync
# If you wish to use rsync, you must configure passwordless ssh using
# public/private key authentication from the user account that weewx
# runs as to the user account on the remote machine where the files
# will be copied.
#
# The following three lines determine where files will be sent.
#server = replace with the rsync server name, e.g, www.threefools.org
#path = replace with the rsync destination directory (e.g., /weather)
#user = replace with the rsync username
# Rsync can be configured to remove files from the remote server if
# they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
# make a mistake in the remote path, you could could unintentionally
# cause unrelated files to be deleted. Set to 1 to enable remote file
# deletion, zero to allow files to accumulate remotely.
delete = 0
##############################################################################
# This service acts as a filter, converting the unit system coming from
# the hardware to a unit system in the database.
[StdConvert]
# The target_unit affects only the unit system in the database. Once
# chosen it cannot be changed without converting the entire database.
# Modification of target_unit after starting weewx will result in
# corrupt data - the database will contain a mix of US and METRIC data.
#
# The value of target_unit does not affect the unit system for
# reporting - reports can display US, Metric, or any combination of units.
#
# In most cases, target_unit should be left as the default: US
#
# In particular, those migrating from a standard wview installation
# should use US since that is what the wview database contains.
# DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
target_unit = METRIC # Options are 'US', 'METRICWX', or 'METRIC'
##############################################################################
# This section can adjust data using calibration expressions.
[StdCalibrate]
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
foo = foo + 0.2
pressure = pressure - 0.2
#outTemp = outTemp - 0.2
##############################################################################
# This section is for quality control checks. If units are not specified,
# values must be in the units defined in the StdConvert section.
[StdQC]
[[MinMax]]
barometer = 26, 32.5, inHg
outTemp = -40, 120, degree_F
inTemp = 10, 120, degree_F
outHumidity = 0, 100
inHumidity = 0, 100
windSpeed = 0, 120, mile_per_hour
pressure = 24, 34.5, inHg
##############################################################################
# This section controls the origin of derived values.
[StdWXCalculate]
[[Calculations]]
# Derived quantities are calculated by this service. Possible values are:
# hardware - use the value provided by hardware
# software - use the value calculated by weewx
# prefer_hardware - use value provide by hardware if available,
# otherwise use value calculated by weewx
pressure = prefer_hardware
barometer = prefer_hardware
altimeter = prefer_hardware
windchill = prefer_hardware
heatindex = prefer_hardware
dewpoint = prefer_hardware
inDewpoint = prefer_hardware
rainRate = prefer_hardware
lightning = prefer_hardware
##############################################################################
# For hardware that supports it, this section controls how often the
# onboard clock gets updated.
[StdTimeSynch]
# How often to check the weather station clock for drift (in seconds)
clock_check = 14400
# How much it can drift before we will correct it (in seconds)
max_drift = 5
##############################################################################
# This section is for configuring the archive service.
[StdArchive]
# If the station hardware supports data logging then the archive interval
# will be downloaded from the station. Otherwise, specify it (in seconds).
archive_interval = 180 #300
# If possible, new archive records are downloaded from the station
# hardware. If the hardware does not support this, then new archive
# records will be generated in software.
# Set the following to "software" to force software record generation.
record_generation = hardware
# Whether to include LOOP data in hi/low statistics
loop_hilo = True
# The data binding used to save archive records
data_binding = wx_binding
##############################################################################
# This section binds a data store to a database.
[DataBindings]
[[wx_binding]]
# The database must match one of the sections in [Databases].
# This is likely to be the only option you would want to change.
database = archive_sqlite
# The name of the table within the database
table_name = archive
# The manager handles aggregation of data for historical summaries
manager = weewx.wxmanager.WXDaySummaryManager
# The schema defines the structure of the database.
# It is *only* used when the database is created.
schema = schemas.wview.schema
##############################################################################
# This section defines various databases.
[Databases]
# A SQLite database is simply a single file
[[archive_sqlite]]
database_type = SQLite
database_name = weewx.sdb
# MySQL
[[archive_mysql]]
database_type = MySQL
database_name = weewx
##############################################################################
# This section defines defaults for the different types of databases.
[DatabaseTypes]
# Defaults for SQLite databases
[[SQLite]]
driver = weedb.sqlite
# Directory in which the database files are located
SQLITE_ROOT = %(WEEWX_ROOT)s/archive
# Defaults for MySQL databases
[[MySQL]]
driver = weedb.mysql
# The host where the database is located
host = localhost
# The user name for logging in to the host
user = weewx
# The password for the user name. Put in quotes to guard against parsing errors.
password = weewx
##############################################################################
# This section configures the internal weewx engine.
[Engine]
[[Services]]
# This section specifies the services that should be run. They are
# grouped by type, and the order of services within each group
# determines the order in which the services will be run.
prep_services = weewx.engine.StdTimeSynch
data_services = ""
process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS #user.mqtt.MQTT
report_services = weewx.engine.StdPrint, weewx.engine.StdReport
##############################################################################
[PiWeather]
# This section is for the software-defined i2c driver.
driver = user.piweather
# Give a 5 minute interval for data storage
loop_interval = 2.5
poll_interval = 2 # number of seconds
filename = /var/ramdisk/wxdata.csv # location of data file
path = /var/ramdisk/wxdata.csv # location of data file
unit_system = METRIC # options are US, METRIC, METRICWX
Well I didn't see anything wrong... Pat ?
this i found and try on belchertown.py
Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte
Nachricht auf Deutsch übersetzen
Unfortunately, I cannot replicate your problem. I used your index.html.tmpl file, and your skin.conf file, and things worked fine.
For Cheetah to recognize that a template uses UTF-8, it must have an 'encoding' directive. You have one, but for some reason it is not recognizing it. Why, I don't know.
Suggestions:
Try eliminating the blank line at the top of index.html.tmpl between "#encoding UTF-8" and the "<!DOCTYPE..." directive. I doubt this will do anything, but we're getting desperate.
Start with the skin.conf and index.html.tmpl file that come with weewx and gradually add things until you have a problem.
Check what default encoding your python installation uses. You can do this by running the line
python -c "import sys; print sys.getdefaultencoding()"
Mine says 'ascii', and yours should as well.
Try changing the default encoding used by weewx by adding the following to the top of the file user/extensions.py:
import sys
reload(sys) sys.setdefaultencoding('UTF8')
If this works, it's a bit of a hack, but it might get you running. It can also break other things.
-tk get a new error
Jan 6 20:21:22 raspberrypi weewx[1952]: manager: Added record 2019-01-06 20:21:00 CET (1546802460) to database 'weewx.sdb'
Jan 6 20:21:22 raspberrypi weewx[1952]: manager: Added record 2019-01-06 20:21:00 CET (1546802460) to daily summary in 'weewx.sdb'
Jan 6 20:21:35 raspberrypi weewx[1952]: cheetahgenerator: Generated 12 files for report Newskin in 6.84 seconds
Jan 6 20:21:37 raspberrypi weewx[1952]: imagegenerator: Generated 15 images for Newskin in 2.40 seconds
Jan 6 20:21:37 raspberrypi weewx[1952]: copygenerator: copied 3 files to /var/www/html
Jan 6 20:21:47 raspberrypi systemd[1]: Started Session c26 of user root.
Jan 6 20:21:48 raspberrypi weewx[1952]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 10.32 seconds
Jan 6 20:21:48 raspberrypi weewx[1952]: copygenerator: copied 0 files to /var/www/html/belchertown
Jan 6 20:21:48 raspberrypi weewx[1952]: Belchertown Extension: version 0.8.2
Jan 6 20:22:04 raspberrypi weewx[1952]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 20:22:04 raspberrypi weewx[1952]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/index.html.tmpl
Jan 6 20:22:04 raspberrypi weewx[1952]: cheetahgenerator: **** Reason: invalid literal for float(): 0,9
Jan 6 20:22:04 raspberrypi weewx[1952]: **** Traceback (most recent call last):
Jan 6 20:22:04 raspberrypi weewx[1952]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 20:22:04 raspberrypi weewx[1952]: **** print >> _file, compiled_template
Jan 6 20:22:04 raspberrypi weewx[1952]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 20:22:04 raspberrypi weewx[1952]: **** rc = getattr(self, mainMethName)()
Jan 6 20:22:04 raspberrypi weewx[1952]: **** File "_home_weewx_skins_Belchertown_index_html_tmpl.py", line 1548, in respond
Jan 6 20:22:04 raspberrypi weewx[1952]: **** ValueError: invalid literal for float(): 0,9
Jan 6 20:22:06 raspberrypi weewx[1952]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Jan 6 20:22:06 raspberrypi weewx[1952]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Belchertown/pi/index.html.tmpl
Jan 6 20:22:06 raspberrypi weewx[1952]: cheetahgenerator: **** Reason: invalid literal for float(): 0,9
Jan 6 20:22:06 raspberrypi weewx[1952]: **** Traceback (most recent call last):
Jan 6 20:22:06 raspberrypi weewx[1952]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jan 6 20:22:06 raspberrypi weewx[1952]: **** print >> _file, compiled_template
Jan 6 20:22:06 raspberrypi weewx[1952]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan 6 20:22:06 raspberrypi weewx[1952]: **** rc = getattr(self, mainMethName)()
Jan 6 20:22:06 raspberrypi weewx[1952]: **** File "_home_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1197, in respond
Jan 6 20:22:06 raspberrypi weewx[1952]: **** ValueError: invalid literal for float(): 0,9
Jan 6 20:22:07 raspberrypi weewx[1952]: cheetahgenerator: Generated 24 files for report Belchertown in 19.93 seconds
Jan 6 20:22:07 raspberrypi weewx[1952]: copygenerator: copied 22 files to /var/www/html/belchertown
Jan 6 20:22:47 raspberrypi weewx[1952]: ftpgenerator: ftp'd 154 files in 39.13 seconds
Im back to the old error
I'm at a loss now. It's a encoding issue for sure but everything looks right.
I hate to say this.... but
Copy your weewx.conf and database some place and do a fresh install of raspbian.
It's a rash suggestion but my only one now.
And do a install using the deb file instead of the setup.py
Thanks for helb, but i dont will use this skin because i have more to change for my using (Battcontrol) to much problems
Ok.... sorry we couldn't help. It's certainly a encoding issue.
@fscwetter I'm happy to try and replicate this so I can experience it for myself. I don't know German, so there might be a challenge there with the locale. If you want to send me your database, we can start there. If you don't want to continue further please close this issue to let me know.
How i can send you my database
Zip it using winzip or 7zip, then you can upload it here by dragging and dropping on this box on GitHub.
Hello I allways get this error!What value its wrong, I try with other versions too