Jump to content

Working but lots of errors


garybixler

Recommended Posts

Posted

@bpwwer I just installed WeatherLink from PG3 and it seems to be working but it is showing a lot of errors.  I tried the query manually (http://192.168.30.63/v1/current_conditions) from a browser and that worked ok.

Thanks Gary

2022-01-10 13:36:00,942 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-01-10 13:36:03,299 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.31 Starting...
2022-01-10 13:36:03,312 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}
2022-01-10 13:36:03,314 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-01-10 13:36:03,322 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: nodeserver config has not yet been recieved.
2022-01-10 13:36:03,324 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'config': {}}
2022-01-10 13:36:03,428 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-01-10 13:36:03,429 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:38_1 -  MID: 1 Result: 0
2022-01-10 13:36:03,441 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-01-10 13:36:06,347 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherLink(controller) [None]
2022-01-10 13:38:43,732 Thread-7   udi_interface      ERROR    wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions
2022-01-10 13:38:43,800 Thread-7   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:38:43,801 Thread-7   udi_interface      ERROR    udi_interface:write: Thread-7
2022-01-10 13:38:43,802 Thread-7   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:38:43,802 Thread-7   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:38:43,803 Thread-7   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:38:43,808 Thread-7   udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:38:43,809 Thread-7   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:38:43,813 Thread-7   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:38:43,814 Thread-7   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 58, in parameterHandler
2022-01-10 13:38:43,816 Thread-7   udi_interface      ERROR    udi_interface:write: self.query_conditions(True)
2022-01-10 13:38:43,816 Thread-7   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:38:43,818 Thread-7   udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:38:43,819 Thread-7   udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:38:43,820 Thread-7   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:38:43,820 Thread-7   udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:38:48,114 Thread-3   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:38:48,115 Thread-3   udi_interface      ERROR    udi_interface:write: Thread-3
2022-01-10 13:38:48,116 Thread-3   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:38:48,117 Thread-3   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:38:48,117 Thread-3   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:38:48,122 Thread-3   udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:38:48,123 Thread-3   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:38:48,127 Thread-3   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:38:48,128 Thread-3   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 77, in start
2022-01-10 13:38:48,130 Thread-3   udi_interface      ERROR    udi_interface:write: self.query_conditions(True)
2022-01-10 13:38:48,131 Thread-3   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:38:48,133 Thread-3   udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:38:48,133 Thread-3   udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:38:48,134 Thread-3   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:38:48,135 Thread-3   udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:39:01,744 Thread-8   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:39:01,746 Thread-8   udi_interface      ERROR    udi_interface:write: Thread-8
2022-01-10 13:39:01,746 Thread-8   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:39:01,747 Thread-8   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:39:01,748 Thread-8   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:39:01,752 Thread-8   udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:39:01,753 Thread-8   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:39:01,757 Thread-8   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:39:01,758 Thread-8   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-10 13:39:01,760 Thread-8   udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-10 13:39:01,761 Thread-8   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:39:01,763 Thread-8   udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:39:01,764 Thread-8   udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:39:01,765 Thread-8   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:39:01,765 Thread-8   udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:40:01,764 Thread-9   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:40:01,765 Thread-9   udi_interface      ERROR    udi_interface:write: Thread-9
2022-01-10 13:40:01,766 Thread-9   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:40:01,767 Thread-9   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:40:01,767 Thread-9   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:40:01,772 Thread-9   udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:40:01,773 Thread-9   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:40:01,777 Thread-9   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:40:01,778 Thread-9   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-10 13:40:01,779 Thread-9   udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-10 13:40:01,780 Thread-9   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:40:01,782 Thread-9   udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:40:01,783 Thread-9   udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:40:01,784 Thread-9   udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:40:01,785 Thread-9   udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:41:01,762 Thread-10  udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:41:01,763 Thread-10  udi_interface      ERROR    udi_interface:write: Thread-10
2022-01-10 13:41:01,764 Thread-10  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:41:01,764 Thread-10  udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:41:01,765 Thread-10  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:41:01,770 Thread-10  udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:41:01,771 Thread-10  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:41:01,775 Thread-10  udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:41:01,776 Thread-10  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-10 13:41:01,777 Thread-10  udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-10 13:41:01,778 Thread-10  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:41:01,780 Thread-10  udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:41:01,781 Thread-10  udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:41:01,782 Thread-10  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:41:01,783 Thread-10  udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:42:01,765 Thread-11  udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:42:01,767 Thread-11  udi_interface      ERROR    udi_interface:write: Thread-11
2022-01-10 13:42:01,767 Thread-11  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:42:01,768 Thread-11  udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:42:01,769 Thread-11  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:42:01,773 Thread-11  udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:42:01,774 Thread-11  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:42:01,778 Thread-11  udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:42:01,779 Thread-11  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-10 13:42:01,781 Thread-11  udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-10 13:42:01,781 Thread-11  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:42:01,784 Thread-11  udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:42:01,785 Thread-11  udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:42:01,785 Thread-11  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:42:01,786 Thread-11  udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
2022-01-10 13:43:01,776 Thread-12  udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-10 13:43:01,777 Thread-12  udi_interface      ERROR    udi_interface:write: Thread-12
2022-01-10 13:43:01,778 Thread-12  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:43:01,779 Thread-12  udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-10 13:43:01,779 Thread-12  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-10 13:43:01,784 Thread-12  udi_interface      ERROR    udi_interface:write: self.run()
2022-01-10 13:43:01,785 Thread-12  udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-10 13:43:01,788 Thread-12  udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-10 13:43:01,789 Thread-12  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-10 13:43:01,791 Thread-12  udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-10 13:43:01,792 Thread-12  udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-10 13:43:01,794 Thread-12  udi_interface      ERROR    udi_interface:write: self.nodes['indoor'].setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-10 13:43:01,795 Thread-12  udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-10 13:43:01,796 Thread-12  udi_interface      ERROR    udi_interface:write: :
2022-01-10 13:43:01,797 Thread-12  udi_interface      ERROR    udi_interface:write: 'Controller' object has no attribute 'nodes'
 

Posted

I just uploaded an update.  Restarting should automatically install in the update.

There may still be one error in discover_nodes(). I don't know what is causing that but added addition information to the error message to help determine that.

  • Like 1
Posted

 I did a restart and then did a reinstall. Unfortunately the errors are still showing but works fine. Couldn't tell what version it's on. Would his mean anything as I see version 3.0.36?

UDI Python Interface for Polyglot version 3 3.0.31 Starting.

Thanks Gary

 

Posted

You're still seeing the "Controller object has no attributes nodes" errors?  Those should be gone now.

There are 3 different components with different version numbers

PG3 version (currently 3.0.36)  There's both a frontend and backend version, they should match.  These are shown in the bottom footer of each PG3 screen.

The node server version.  For WLL, the current version is 2.0.1, you should see this in the node server details screen, right underneath the connection status.   You'll also see this in the Node Server Store listing next to the node server name.

The udi_interface version. This is the API version being used for the node server to communicate with PG3. You see that in the log as you posted above.  Current version of this is 3.0.31.  This can help developers debug issues.

  • Like 1
Posted

I expect the first error to still happen 

wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions

But I added some additional info to help narrow down what is failing.  If you're still getting that do you see some additional info?  If so, can you post that?

Posted

I do see that error maybe three times at the beginning.

1:49:58,753 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-01-11 11:50:00,972 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.31 Starting...
2022-01-11 11:50:00,981 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}
2022-01-11 11:50:00,983 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-01-11 11:50:00,989 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: nodeserver config has not yet been recieved.
2022-01-11 11:50:00,990 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'config': {}}
2022-01-11 11:50:01,230 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-01-11 11:50:01,231 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:38_1 -  MID: 1 Result: 0
2022-01-11 11:50:01,239 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-01-11 11:50:04,054 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherLink(controller) [None]
2022-01-11 11:50:45,330 Thread-3   udi_interface      ERROR    wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions: HTTPConnectionPool(host='192.168.30.63', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x802f13c10>: Failed to establish a new connection: [Errno 61] Connection refused'))
2022-01-11 11:50:45,355 Thread-3   udi_interface      ERROR    wll:query_conditions: Request for data from WLL failed.
2022-01-11 11:50:45,360 Thread-5   udi_interface      ERROR    wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions: 'Controller' object has no attribute 'db_getNodeDrivers'
2022-01-11 11:50:45,431 Thread-5   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 11:50:45,432 Thread-5   udi_interface      ERROR    udi_interface:write: Thread-5
2022-01-11 11:50:45,433 Thread-5   udi_interface      ERROR    udi_interface:write: :
2022-01-11 11:50:45,434 Thread-5   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 11:50:45,434 Thread-5   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 11:50:45,439 Thread-5   udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 11:50:45,440 Thread-5   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 11:50:45,443 Thread-5   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 11:50:45,444 Thread-5   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 58, in parameterHandler
2022-01-11 11:50:45,446 Thread-5   udi_interface      ERROR    udi_interface:write: self.query_conditions(True)
2022-01-11 11:50:45,447 Thread-5   udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-11 11:50:45,448 Thread-5   udi_interface      ERROR    udi_interface:write: self.poly.getNode('indoor').setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-11 11:50:45,449 Thread-5   udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 11:50:45,450 Thread-5   udi_interface      ERROR    udi_interface:write: :
2022-01-11 11:50:45,451 Thread-5   udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 11:51:02,768 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-01-11 11:51:05,366 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.31 Starting...
2022-01-11 11:51:05,379 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}
2022-01-11 11:51:05,381 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-01-11 11:51:05,390 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: nodeserver config has not yet been recieved.
2022-01-11 11:51:05,391 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'config': {}}
2022-01-11 11:51:05,488 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-01-11 11:51:05,489 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:38_1 -  MID: 1 Result: 0
2022-01-11 11:51:05,500 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-01-11 11:51:08,411 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherLink(controller) [None]
2022-01-11 11:51:08,943 Thread-3   udi_interface      ERROR    wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions: 'Controller' object has no attribute 'db_getNodeDrivers'
2022-01-11 11:51:09,009 Thread-3   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 11:51:09,010 Thread-3   udi_interface      ERROR    udi_interface:write: Thread-3
2022-01-11 11:51:09,011 Thread-3   udi_interface      ERROR    udi_interface:write: :

    

Then it repeats these errors with incrementing Thread-xxx

 

2022-01-11 19:34:08,124 Thread-513 udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 19:34:08,124 Thread-513 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:34:08,125 Thread-513 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 19:35:08,147 Thread-514 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 19:35:08,148 Thread-514 udi_interface      ERROR    udi_interface:write: Thread-514
2022-01-11 19:35:08,149 Thread-514 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:35:08,150 Thread-514 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 19:35:08,150 Thread-514 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 19:35:08,155 Thread-514 udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 19:35:08,155 Thread-514 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 19:35:08,159 Thread-514 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 19:35:08,160 Thread-514 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-11 19:35:08,161 Thread-514 udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-11 19:35:08,162 Thread-514 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-11 19:35:08,164 Thread-514 udi_interface      ERROR    udi_interface:write: self.poly.getNode('indoor').setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-11 19:35:08,164 Thread-514 udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 19:35:08,165 Thread-514 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:35:08,165 Thread-514 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 19:36:08,141 Thread-515 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 19:36:08,142 Thread-515 udi_interface      ERROR    udi_interface:write: Thread-515
2022-01-11 19:36:08,143 Thread-515 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:36:08,144 Thread-515 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 19:36:08,144 Thread-515 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 19:36:08,147 Thread-515 udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 19:36:08,148 Thread-515 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 19:36:08,151 Thread-515 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 19:36:08,152 Thread-515 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-11 19:36:08,153 Thread-515 udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-11 19:36:08,154 Thread-515 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-11 19:36:08,156 Thread-515 udi_interface      ERROR    udi_interface:write: self.poly.getNode('indoor').setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-11 19:36:08,157 Thread-515 udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 19:36:08,157 Thread-515 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:36:08,158 Thread-515 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 19:37:08,147 Thread-516 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 19:37:08,149 Thread-516 udi_interface      ERROR    udi_interface:write: Thread-516
2022-01-11 19:37:08,149 Thread-516 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:37:08,150 Thread-516 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 19:37:08,151 Thread-516 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 19:37:08,155 Thread-516 udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 19:37:08,156 Thread-516 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 19:37:08,159 Thread-516 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 19:37:08,160 Thread-516 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-11 19:37:08,162 Thread-516 udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-11 19:37:08,163 Thread-516 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-11 19:37:08,165 Thread-516 udi_interface      ERROR    udi_interface:write: self.poly.getNode('indoor').setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-11 19:37:08,165 Thread-516 udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 19:37:08,166 Thread-516 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:37:08,167 Thread-516 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 19:38:08,153 Thread-517 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 19:38:08,155 Thread-517 udi_interface      ERROR    udi_interface:write: Thread-517
2022-01-11 19:38:08,155 Thread-517 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:38:08,156 Thread-517 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 19:38:08,157 Thread-517 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 19:38:08,161 Thread-517 udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 19:38:08,162 Thread-517 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 19:38:08,165 Thread-517 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 19:38:08,166 Thread-517 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll
2022-01-11 19:38:08,168 Thread-517 udi_interface      ERROR    udi_interface:write: self.query_conditions(False)
2022-01-11 19:38:08,169 Thread-517 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 231, in query_conditions
2022-01-11 19:38:08,171 Thread-517 udi_interface      ERROR    udi_interface:write: self.poly.getNode('indoor').setDriver('CLITEMP', float(record['temp_in']), True, force)
2022-01-11 19:38:08,172 Thread-517 udi_interface      ERROR    udi_interface:write: AttributeError
2022-01-11 19:38:08,172 Thread-517 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:38:08,173 Thread-517 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'setDriver'
2022-01-11 19:39:08,159 Thread-518 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-01-11 19:39:08,160 Thread-518 udi_interface      ERROR    udi_interface:write: Thread-518
2022-01-11 19:39:08,161 Thread-518 udi_interface      ERROR    udi_interface:write: :
2022-01-11 19:39:08,162 Thread-518 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-01-11 19:39:08,163 Thread-518 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-01-11 19:39:08,167 Thread-518 udi_interface      ERROR    udi_interface:write: self.run()
2022-01-11 19:39:08,168 Thread-518 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-01-11 19:39:08,171 Thread-518 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-01-11 19:39:08,172 Thread-518 udi_interface      ERROR    udi_interface:write: File "./wll.py", line 83, in poll

Posted

The first error:

2022-01-11 11:50:45,330 Thread-3   udi_interface      ERROR    wll:discover_nodes: Failed to query WLL device at http://192.168.30.63/v1/current_conditions: HTTPConnectionPool(host='192.168.30.63', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x802f13c10>: Failed to establish a new connection: [Errno 61] Connection refused'))

is fatal, it is saying that it can't establish a connection to the WeatherLinkLive device.   

It should be better about not trying to continue working after that because if it can't connect, nothing is going to work.

Posted (edited)

Very odd. It does work fine updating every minute. Also I get an immediate return using a browser. Also sometimes when I use resources for other devices I get a tcp error but the resource works as intended. 

Edited by garybixler
Posted (edited)

Just as a test I moved it back to PG2 and copied the log.

Thanks Gary

 

2022-01-12 21:31:56,228 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-01-12 21:31:57,123 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2022-01-12 21:31:57,125 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2022-01-12 21:31:57,688 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.30.1', 'igb0')}, 2: [('192.168.30.1', 'igb0', True)]}
2022-01-12 21:31:57,689 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.30.1', 'igb0')
2022-01-12 21:31:57,689 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}]
2022-01-12 21:31:57,690 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}
2022-01-12 21:31:57,691 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2022-01-12 21:31:57,721 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2022-01-12 21:31:57,723 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/1 -  MID: 1 Result: 0
2022-01-12 21:31:57,723 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2022-01-12 21:31:57,724 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2022-01-12 21:31:57,728 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-01-12 21:31:57,730 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2022-01-12 21:31:57,771 MQTT       polyinterface      INFO     polyinterface:addNode: Adding node WeatherLink(weather)
2022-01-12 21:31:57,773 MQTT       polyinterface      INFO     polyinterface:_gotConfig: Waiting on Controller node to be added.......
2022-01-12 21:31:57,775 NodeServer polyinterface      INFO     wll:start: Starting node server
2022-01-12 21:31:57,775 NodeServer polyinterface      INFO     polyinterface:saveCustomParams: Sending customParams to Polyglot.
2022-01-12 21:31:57,777 NodeServer polyinterface      INFO     polyinterface:addNotice: Sending addnotice to Polyglot: {'key': None, 'value': 'WeatherLink IP Address parameter must be set'}
2022-01-12 21:31:57,778 NodeServer polyinterface      INFO     wll:start: Node server started
2022-01-12 21:31:57,779 NodeServer polyinterface      DEBUG    wll:query_conditions: request = http:///v1/current_conditions
2022-01-12 21:31:57,785 NodeServer polyinterface      INFO     wll:query_conditions: Skipping connection because we aren't configured yet.
2022-01-12 21:32:26,940 MQTT       polyinterface      INFO     polyinterface:removeNotice: Sending removenotice to Polyglot for index {'key': '0'}
2022-01-12 21:32:36,156 MQTT       polyinterface      DEBUG    polyinterface:_message: Received stop from Polyglot... Shutting Down.
2022-01-12 21:32:36,157 MQTT       polyinterface      INFO     polyinterface:stop: Disconnecting from MQTT... localhost:1883
2022-01-12 21:32:36,158 MQTT       polyinterface      INFO     wll:stop: Stopping node server
2022-01-12 21:32:36,160 MQTT       polyinterface      INFO     polyinterface:_disconnect: MQTT Graceful disconnection.
2022-01-12 21:32:36,161 MQTT       polyinterface      DEBUG    polyinterface:_startMqtt: MQTT Done:
2022-01-12 21:32:39,674 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-01-12 21:32:40,949 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2022-01-12 21:32:40,951 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2022-01-12 21:32:41,544 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.30.1', 'igb0')}, 2: [('192.168.30.1', 'igb0', True)]}
2022-01-12 21:32:41,545 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.30.1', 'igb0')
2022-01-12 21:32:41,545 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}]
2022-01-12 21:32:41,546 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.30.57', 'netmask': '255.255.255.0', 'broadcast': '192.168.30.255'}
2022-01-12 21:32:41,547 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2022-01-12 21:32:41,583 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2022-01-12 21:32:41,584 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/1 -  MID: 1 Result: 0
2022-01-12 21:32:41,584 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2022-01-12 21:32:41,585 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2022-01-12 21:32:41,589 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-01-12 21:32:41,592 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2022-01-12 21:32:41,637 NodeServer polyinterface      INFO     wll:start: Starting node server
2022-01-12 21:32:41,641 NodeServer polyinterface      INFO     polyinterface:saveCustomParams: Sending customParams to Polyglot.
2022-01-12 21:32:41,798 NodeServer polyinterface      INFO     wll:start: Node server started
2022-01-12 21:32:41,842 NodeServer polyinterface      INFO     wll:start: Creating node for indoor conditions
2022-01-12 21:32:41,844 NodeServer polyinterface      INFO     polyinterface:addNode: Adding node Indoor(indoor)
2022-01-12 21:32:41,846 NodeServer polyinterface      DEBUG    wll:query_conditions: request = http://192.168.30.63/v1/current_conditions
2022-01-12 21:32:41,894 NodeServer polyinterface      DEBUG    wll:query_conditions: {'data': {'did': '001D0A710A19', 'ts': 1642041161, 'conditions': [{'lsid': 246652, 'data_structure_type': 1, 'txid': 1, 'temp': 30.5, 'hum': 78.4, 'dew_point': 24.6, 'wet_bulb': 28.1, 'heat_index': 30.5, 'wind_chill': 30.5, 'thw_index': 30.5, 'thsw_index': None, 'wind_speed_last': 0.0, 'wind_dir_last': 0, 'wind_speed_avg_last_1_min': 0.0, 'wind_dir_scalar_avg_last_1_min': 0, 'wind_speed_avg_last_2_min': 0.0, 'wind_dir_scalar_avg_last_2_min': 0, 'wind_speed_hi_last_2_min': 0.0, 'wind_dir_at_hi_speed_last_2_min': 0, 'wind_speed_avg_last_10_min': 0.0, 'wind_dir_scalar_avg_last_10_min': 0, 'wind_speed_hi_last_10_min': 0.0, 'wind_dir_at_hi_speed_last_10_min': 0, 'rain_size': 1, 'rain_rate_last': 0, 'rain_rate_hi': 0, 'rainfall_last_15_min': 0, 'rain_rate_hi_last_15_min': 0, 'rainfall_last_60_min': 0, 'rainfall_last_24_hr': 0, 'rain_storm': 0, 'rain_storm_start_at': None, 'solar_rad': None, 'uv_index': None, 'rx_state': 0, 'trans_battery_flag': 0, 'rainfall_daily': 0, 'rainfall_monthly': 58, 'rainfall_year': 58, 'rain_storm_last': 30, 'rain_storm_last_start_at': 1641656881, 'rain_storm_last_end_at': 1641866460}, {'lsid': 246588, 'data_structure_type': 4, 'temp_in': 70.2, 'hum_in': 47.1, 'dew_point_in': 49.1, 'heat_index_in': 68.3}, {'lsid': 246587, 'data_structure_type': 3, 'bar_sea_level': 30.052, 'bar_trend': 0.021, 'bar_absolute': 29.394}]}, 'error': None}
 

Edited by garybixler
Guest
This topic is now closed to further replies.

×
×
  • Create New...