Hi Jim,
i have today a strange error.
I do not know why this happend.
Can you check this?
I will check my rawdata if something is messed up:
2023-10-10 13:14:04:pywws.regulartasks:Templating ws3600.txt
2023-10-10 13:14:04:pywws.livelog:unsupported operand type(s) for -: 'NoneType' and 'float'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pywws/livelog.py", line 89, in live_log
tasks.do_tasks()
File "/usr/local/lib/python3.9/dist-packages/pywws/regulartasks.py", line 213, in do_tasks
self._do_common(now, sections)
File "/usr/local/lib/python3.9/dist-packages/pywws/regulartasks.py", line 147, in _do_common
self.services[name].upload(live_data=live_data, options=options)
File "/usr/local/lib/python3.9/dist-packages/pywws/service/__init__.py", line 340, in upload
if self.queue_data(timestamp, data):
File "/usr/local/lib/python3.9/dist-packages/pywws/service/__init__.py", line 307, in queue_data
OK = super(CatchupDataService, self).queue_data(timestamp, data)
File "/usr/local/lib/python3.9/dist-packages/pywws/service/__init__.py", line 281, in queue_data
prepared_data = self.prepare_data(data)
File "/usr/local/lib/python3.9/dist-packages/pywws/service/__init__.py", line 290, in prepare_data
data_str = self.templater.make_text(self.template_file, data)
File "/usr/local/lib/python3.9/dist-packages/pywws/template.py", line 580, in make_text
for text in self.process(live_data, template_file):
File "/usr/local/lib/python3.9/dist-packages/pywws/template.py", line 462, in process
x = eval(command[1])
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/pywws/template.py", line 339, in rain_hour
return max(0.0, self.hour_diff(data, 'rain'))
File "/usr/local/lib/python3.9/dist-packages/pywws/template.py", line 336, in hour_diff
return data[key] - hour_ago[key]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
Thanks and best regards,
Stefan