Jump to content

After PG3 Upgrade, may be having a problem?


JTsao

Recommended Posts

I updated to PG3, changed my short and long poll as advised (1800, 43200) and Weatherbit otherwise seems to be working, but I have noticed that the temperature and rain rate didn't seem to be changing and I see the following in the log file (below) - is this a problem?

 

2022-12-07 01:28:51,138 Thread-457 udi_interface      ERROR    udi_interface:write: Exception in thread
2022-12-07 01:28:51,142 Thread-457 udi_interface      ERROR    udi_interface:write: Thread-457
2022-12-07 01:28:51,143 Thread-457 udi_interface      ERROR    udi_interface:write: :
2022-12-07 01:28:51,143 Thread-457 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-12-07 01:28:51,144 Thread-457 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
2022-12-07 01:28:51,149 Thread-457 udi_interface      ERROR    udi_interface:write: self.run()
2022-12-07 01:28:51,150 Thread-457 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
2022-12-07 01:28:51,154 Thread-457 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-12-07 01:28:51,155 Thread-457 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db953c604_6/nodes/Controller.py", line 128, in poll
2022-12-07 01:28:51,157 Thread-457 udi_interface      ERROR    udi_interface:write: self.q.query_forecast(False)
2022-12-07 01:28:51,157 Thread-457 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db953c604_6/nodes/query.py", line 154, in query_forecast
2022-12-07 01:28:51,159 Thread-457 udi_interface      ERROR    udi_interface:write: node.update_forecast(f_obs, float(self.elevation), float(self.plant_type), float(jdata['lat']))
2022-12-07 01:28:51,160 Thread-457 udi_interface      ERROR    udi_interface:write: AttributeError
2022-12-07 01:28:51,161 Thread-457 udi_interface      ERROR    udi_interface:write: :
2022-12-07 01:28:51,162 Thread-457 udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'update_forecast'
2022-12-07 03:01:01,588 Command    udi_interface      ERROR    udi_interface:write: Exception in thread
2022-12-07 03:01:01,590 Command    udi_interface      ERROR    udi_interface:write: Command
2022-12-07 03:01:01,590 Command    udi_interface      ERROR    udi_interface:write: :
2022-12-07 03:01:01,591 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-12-07 03:01:01,592 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
2022-12-07 03:01:01,596 Command    udi_interface      ERROR    udi_interface:write: self.run()
2022-12-07 03:01:01,597 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
2022-12-07 03:01:01,601 Command    udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-12-07 03:01:01,602 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 680, in _parseInput
2022-12-07 03:01:01,606 Command    udi_interface      ERROR    udi_interface:write: NLOGGER.setLevel('DEBUG')
2022-12-07 03:01:01,607 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 811, in _handleInput
2022-12-07 03:01:01,611 Command    udi_interface      ERROR    udi_interface:write: #LOGGER.debug('notices: {}'.format(item))
2022-12-07 03:01:01,612 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db953c604_6/nodes/Controller.py", line 136, in query
2022-12-07 03:01:01,613 Command    udi_interface      ERROR    udi_interface:write: self.q.query_forecast(True)
2022-12-07 03:01:01,614 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db953c604_6/nodes/query.py", line 154, in query_forecast
2022-12-07 03:01:01,616 Command    udi_interface      ERROR    udi_interface:write: node.update_forecast(f_obs, float(self.elevation), float(self.plant_type), float(jdata['lat']))
2022-12-07 03:01:01,617 Command    udi_interface      ERROR    udi_interface:write: AttributeError
2022-12-07 03:01:01,618 Command    udi_interface      ERROR    udi_interface:write: :
2022-12-07 03:01:01,619 Command    udi_interface      ERROR    udi_interface:write: 'NoneType' object has no attribute 'update_forecast'
2022-12-07 08:31:18,399 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-12-07 08:31:21,837 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.51 Starting...
2022-12-07 08:31:21,980 MainThread udi_interface.interface INFO     interface:__init__: Initialization received from Polyglot V3 3.1.15  [ISY: 5.4.5, Slot: 6]
2022-12-07 08:31:21,983 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.2.60', 'netmask': '255.255.255.0', 'broadcast': '192.168.2.255'}
2022-12-07 08:31:21,986 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-12-07 08:31:22,007 MainThread udi_interface.interface WARNING  interface:start: No node server version specified. Using deprecated server.json version
2022-12-07 08:31:22,010 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: controller not found in database.
2022-12-07 08:31:22,011 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'config': {'version': '2.0.6'}}
2022-12-07 08:31:22,831 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-12-07 08:31:22,833 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:c6:04_6 -  MID: 1 Result: 0
2022-12-07 08:31:22,887 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-12-07 08:31:25,021 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherBit Weather(controller) [None]
 

Link to comment

The error in the log doesn't appear to have anything to do with rain or temperature.  It looks like it is trying to update the forecast information for a forecast node that doesn't exist.

Either a forecast node didn't get created or the query is returning forecast data for more days that it should.  

  • Like 1
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...