Hi, These sorts of template/Cheetah errors can be difficult to pinpoint and time consuming to track down. That being said the error message gives us a couple of clues. The error message indicates there is a an expression somewhere in the gauge-data.txt.tmpl that is trying to calculate the difference between a floating point number and the python value None. The None value is likely the result of a 'missing' observation value, most likely windSpeed or dewpoint. The puzzling part is that the gauge-data.txt.tmpl template has been hardened over a number of iterations and the current version should be immune to such errors.
Could you confirm which version of gauge-data.txt.tmpl you are using; either provide a link to the file/extension you are using or post the actual gauge-data.txt.tmpl from you system. Also is your site internet accessible? A link would help in determining which observation is returning the None value. Gary On Wednesday, 11 September 2019 20:24:18 UTC+10, Cat22 wrote: > > I'm running weewx 3.9.2 and using the steel series gauges and a Vantage > Pro II weather station. > I have cycled power to the datalogger and rebooted the pc but to no avail. > Any ideas? > > Here is an excerpt from the systemd log: > > Sep 11 03:10:15 erb2 weewx[15222]: manager: Added record 2019-09-11 > 03:10:00 PDT (1568196600) to database 'weewx.sdb' > Sep 11 03:10:15 erb2 weewx[15222]: manager: Added record 2019-09-11 > 03:10:00 PDT (1568196600) to daily summary in 'weewx.sdb' > Sep 11 03:10:15 erb2 weewx[15222]: copygenerator: copied 7 files to > /usr/local/bin/weewx/public_html > Sep 11 03:10:16 erb2 weewx[15222]: restx: Wunderground-PWS: Published > record 2019-09-11 03:10:00 PDT (1568196600) > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: Generate failed > with exception '<type 'exceptions.TypeError'>'* > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: **** Ignoring > template /usr/local/bin/weewx/skins/ss/gauge-data.txt.tmpl* > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: **** Reason: > unsupported operand type(s) for -: 'float' and 'NoneType'* > Sep 11 03:10:16 erb2 weewx[15222]: **** Traceback (most recent call last): > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "/usr/local/bin/weewx/bin/weewx/cheetahgenerator.py", line 332, in generate > Sep 11 03:10:16 erb2 weewx[15222]: **** > fd.write(str(compiled_template)) > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in > __str__ > Sep 11 03:10:16 erb2 weewx[15222]: **** rc = getattr(self, > mainMethName)() > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "_usr_local_bin_weewx_skins_ss_gauge_data_txt_tmpl.py", line 190, in respond > Sep 11 03:10:16 erb2 weewx[15222]: **** TypeError: unsupported operand > type(s) for -: 'float' and 'NoneType' > Sep 11 03:10:16 erb2 weewx[15222]: cheetahgenerator: Generated 1 files for > report StandardReport in 0.35 seconds > Sep 11 03:10:16 erb2 weewx[15222]: restx: CWOP: Published record > 2019-09-11 03:10:00 PDT (1568196600) > Sep 11 03:10:16 erb2 weewx[15222]: imagegenerator: Generated 11 images for > StandardReport in 0.30 seconds > Sep 11 03:10:16 erb2 weewx[15222]: copygenerator: copied 7 files to > /usr/local/bin/weewx/public_html/ss > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: Generate failed > with exception '<type 'exceptions.TypeError'>'* > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: **** Ignoring > template /usr/local/bin/weewx/skins/ss/gauge-data.txt.tmpl* > Sep 11 03:10:16 erb2 weewx[15222]: *cheetahgenerator: **** Reason: > unsupported operand type(s) for -: 'float' and 'NoneType'* > Sep 11 03:10:16 erb2 weewx[15222]: **** Traceback (most recent call last): > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "/usr/local/bin/weewx/bin/weewx/cheetahgenerator.py", line 332, in generate > Sep 11 03:10:16 erb2 weewx[15222]: **** > fd.write(str(compiled_template)) > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in > __str__ > Sep 11 03:10:16 erb2 weewx[15222]: **** rc = getattr(self, > mainMethName)() > Sep 11 03:10:16 erb2 weewx[15222]: **** File > "_usr_local_bin_weewx_skins_ss_gauge_data_txt_tmpl.py", line 190, in respond > Sep 11 03:10:16 erb2 weewx[15222]: **** TypeError: unsupported operand > type(s) for -: 'float' and 'NoneType' > Sep 11 03:10:16 erb2 weewx[15222]: cheetahgenerator: Generated 1 files for > report SteelSeries in 0.18 seconds > Sep 11 03:10:17 erb2 weewx[15222]: imagegenerator: Generated 11 images for > SteelSeries in 0.26 seconds > > -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c69a7cfd-e3fa-4750-81d5-06513621bdd4%40googlegroups.com.