Hi, The errors are coming from Weewx-WD, I doubt it is anything to do with cmon. Have you had any similar errors in your log before cmon was added? I seem to remember there was a bug in the current version of Weewx-WD that was fixed but perhaps not released. I will need to look into that. If you could provide a wee_debug <http://weewx.com/docs/usersguide.htm#The_utility_wee_debug> report that would help.
Gary On Friday, 2 September 2016 09:39:55 UTC+10, jmltech wrote: > > Can someone look at these errors I started to get today. I had stopped > weewx shortly to add the cmon extension. I modified the cmon skin and > default schema to change the network connection so that cmon would capture > the appropriate net device. I had restarted weewx and it created the cmon > db and archive table correctly. I used 'sudo service weewx stop' and 'sudo > service weewx start' for starting and stopping. When watching the > /var/log/syslog for weewx errors incase I had a problem with my cmon > install, I noticed this: > > Sep 1 17:20:17 salida1 weewx[16825]: reportengine: Caught unrecoverable > exception in generator weewx.cheetahgenerator.CheetahGenerator > Sep 1 17:20:17 salida1 weewx[16825]: **** unsupported operand > type(s) for +=: 'int' and 'NoneType' > Sep 1 17:20:17 salida1 weewx[16825]: **** Traceback (most recent > call last): > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 140, in run > Sep 1 17:20:17 salida1 weewx[16825]: **** obj.start() > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 170, in start > Sep 1 17:20:17 salida1 weewx[16825]: **** self.run() > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 143, in run > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen = > self.generate(gen_dict[option_section_name], self.gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 206, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen += > self.generate(section[subsection], gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 206, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen += > self.generate(section[subsection], gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 290, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** default_binding) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 332, in _getSearchList > Sep 1 17:20:17 salida1 weewx[16825]: **** searchList += > obj.get_extension_list(timespan, db_lookup) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/user/wdSearchX3.py", line 456, in get_extension_list > Sep 1 17:20:17 salida1 weewx[16825]: **** monthRainAvg_vh, > monthRainAvgNow_vh, monthTempAvg_vh, monthTempAvgNow_vh, monthRainMax_vh, > monthTempMax_vh, monthTempMin_vh, yearmaxmonthrain_vh, ymaxrainmonth, > ymaxrainyear, monthRainMax_ts = self.getMonthAveragesHighs(timespan, > db_lookup) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/user/wdSearchX3.py", line 339, in getMonthAveragesHighs > Sep 1 17:20:17 salida1 weewx[16825]: **** > monthRainBin[_month_bin][0] += monthRain_tuple[0] > Sep 1 17:20:17 salida1 weewx[16825]: **** TypeError: unsupported > operand type(s) for +=: 'int' and 'NoneType' > Sep 1 17:20:17 salida1 weewx[16825]: **** Generator terminated... > Sep 1 17:20:17 salida1 weewx[16825]: cheetahgenerator: Generated 1 files > for report wdPWS in 0.03 seconds > Sep 1 17:20:17 salida1 weewx[16825]: reportengine: Caught unrecoverable > exception in generator weewx.cheetahgenerator.CheetahGenerator > Sep 1 17:20:17 salida1 weewx[16825]: **** unsupported operand > type(s) for +=: 'int' and 'NoneType' > Sep 1 17:20:17 salida1 weewx[16825]: **** Traceback (most recent > call last): > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 140, in run > Sep 1 17:20:17 salida1 weewx[16825]: **** obj.start() > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 170, in start > Sep 1 17:20:17 salida1 weewx[16825]: **** self.run() > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 143, in run > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen = > self.generate(gen_dict[option_section_name], self.gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 206, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen += > self.generate(section[subsection], gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 206, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** ngen += > self.generate(section[subsection], gen_ts) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 290, in generate > Sep 1 17:20:17 salida1 weewx[16825]: **** default_binding) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 332, in _getSearchList > Sep 1 17:20:17 salida1 weewx[16825]: **** searchList += > obj.get_extension_list(timespan, db_lookup) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/user/wdSearchX3.py", line 456, in get_extension_list > Sep 1 17:20:17 salida1 weewx[16825]: **** monthRainAvg_vh, > monthRainAvgNow_vh, monthTempAvg_vh, monthTempAvgNow_vh, monthRainMax_vh, > monthTempMax_vh, monthTempMin_vh, yearmaxmonthrain_vh, ymaxrainmonth, > ymaxrainyear, monthRainMax_ts = self.getMonthAveragesHighs(timespan, > db_lookup) > Sep 1 17:20:17 salida1 weewx[16825]: **** File > "/home/weewx/bin/user/wdSearchX3.py", line 339, in getMonthAveragesHighs > Sep 1 17:20:17 salida1 weewx[16825]: **** > monthRainBin[_month_bin][0] += monthRain_tuple[0] > Sep 1 17:20:17 salida1 weewx[16825]: **** TypeError: unsupported > operand type(s) for +=: 'int' and 'NoneType' > Sep 1 17:20:17 salida1 weewx[16825]: **** Generator terminated... > > cmon graphs are working fine. > If I need to start over to correct... no worries. This server has only > been running weewx for 18 days, but without any errors. I'm thinking it > was something that I did with the cmon installation, but everything in cmon > is working fine... archive records are being recorded and graphs are being > drawn correctly. > > Thanks, Joe > > > -- 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.
