Hi Juan, I think I've seen this before when rain values are NULL in the archive. Let me see if I can update the query to work around that
On Tuesday, August 28, 2018 at 1:47:06 AM UTC-4, Juan Antonio Mosquera wrote: > > Hi. > > New problem now. > > > Aug 28 07:42:34 meteomontaos weewx[17746]: reportengine: Running report > Belchertown > Aug 28 07:42:34 meteomontaos weewx[17746]: reportengine: Found > configuration file /etc/weewx/skins/Belchertown/skin.conf for report > Belchertown > Aug 28 07:42:34 meteomontaos weewx[17746]: cheetahgenerator: using search > list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', > 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', > 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', > 'user.belchertown.getAllStats', 'user.belchertown.getForecast', > 'user.belchertown.getEarthquake', 'user.belchertown.getNOAAdata', > 'user.belchertown.getSocialShare', > 'user.belchertown_highchartsSearchX.highchartsDay', > 'user.belchertown_highchartsSearchX.highchartsWeek', > 'user.belchertown_highchartsSearchX.highchartsMonth', > 'user.belchertown_highchartsSearchX.highchartsYear'] > Aug 28 07:42:35 meteomontaos weewx[17746]: manager: Daily summary version > is 2.0 > Aug 28 07:42:46 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:43:08 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:43:15 meteomontaos sudo[19974]: pam_unix(sudo:session): session > closed for user root > Aug 28 07:44:31 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:44:52 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:45:12 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:45:32 meteomontaos weewx[17746]: wmr300: dump history is disabled > Aug 28 07:45:39 meteomontaos weewx[17746]: reportengine: Caught > unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator > Aug 28 07:45:39 meteomontaos weewx[17746]: **** a float is required > Aug 28 07:45:39 meteomontaos weewx[17746]: **** Traceback (most recent > call last): > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/reportengine.py", line 239, in run > Aug 28 07:45:39 meteomontaos weewx[17746]: **** obj.start() > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/reportengine.py", line 273, in start > Aug 28 07:45:39 meteomontaos weewx[17746]: **** self.run() > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run > Aug 28 07:45:39 meteomontaos weewx[17746]: **** ngen = > self.generate(gen_dict[section_name], self.gen_ts) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate > Aug 28 07:45:39 meteomontaos weewx[17746]: **** ngen += > self.generate(section[subsection], gen_ts) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate > Aug 28 07:45:39 meteomontaos weewx[17746]: **** ngen += > self.generate(section[subsection], gen_ts) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate > Aug 28 07:45:39 meteomontaos weewx[17746]: **** default_binding) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList > Aug 28 07:45:39 meteomontaos weewx[17746]: **** searchList += > obj.get_extension_list(timespan, db_lookup) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** File > "/usr/share/weewx/user/belchertown_highchartsSearchX.py", line 440, in > get_extension_list > Aug 28 07:45:39 meteomontaos weewx[17746]: **** rain_round.append( > round( rainsql[1], 2) ) > Aug 28 07:45:39 meteomontaos weewx[17746]: **** TypeError: a float is > required > Aug 28 07:45:39 meteomontaos weewx[17746]: **** Generator terminated > Aug 28 07:45:39 meteomontaos weewx[17746]: copygenerator: copied 22 files > to /var/www/html/weewx/belchertown > > > > Greetings and thanks. > > El martes, 28 de agosto de 2018, 3:16:41 (UTC+2), Pat escribió: >> >> Belchertown skin 0.5 is released >> <https://github.com/poblabs/weewx-belchertown/releases>. >> >> This should fix the NOAA reports and day charts. Tested it against sqlite >> and mysql, and in a couple different timezones. Please let me know if it >> persists. >> >> Few other fixes and updates listed in the release notes. >> > -- 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.
