Many thanks for the continuous develompent of the weewx weather software.
Currently I am testing weewx 4.9.1 with python 3.9.2 in a virtual machine.
My life system runs weewx 4.4.0 with python 3.7.3.
On the virtual machine, one of my templates generates the following error:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Probably the error originates from either of this code:
#if $day.wind.vecdir.raw is not None and $day.windSpeed.max.raw is not 0
#if $day.wind.gustdir.raw is not None and $day.wind.max.raw is not 0
Is the error handling different in the 2 python or weewx versions?
Or could it come from wind.vecdir which - I believe - is not on the weewx sqlite3 database?
How should I correct the code to avoid the error?
Any help would be appreciated.