vaneeten / domoticz-wudirect

Domoticz Python plugin for direct reception and parsing of Wunderground-formatted Personal Weather Station data
2 stars 0 forks source link

error ? #8

Closed Eddie-BS closed 2 years ago

Eddie-BS commented 2 years ago

??

Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: 'onMessage' failed 'TypeError':'unsupported operand type(s) for *: 'NoneType' and 'float''.
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: Exception traceback:
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect:  ----> Line 432 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect:  ----> Line 364 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage
vaneeten commented 2 years ago

Sorry about that - these issues are hard to test without a datasource sending malformed request. I just submitted a patch which should catch these None values.

Eddie-BS commented 2 years ago

tnx, I applied that patch and will monitor the logging today

Eddie-BS commented 2 years ago

Did not see this error again. Nice to see WuDirect in the plugin manager ;-)