MBell Posted May 9, 2022 Posted May 9, 2022 I have followed the config and it appears to be working based on the one and only node that shows. In PG it would show 9 nodes? Any help appreciatted.
Bumbershoot Posted May 9, 2022 Posted May 9, 2022 23 minutes ago, MBell said: I have followed the config and it appears to be working based on the one and only node that shows. In PG it would show 9 nodes? Any help appreciatted. You might need to restart the Admin Console to get the nodes to appear and populate.
MBell Posted May 9, 2022 Author Posted May 9, 2022 14 minutes ago, Bumbershoot said: You might need to restart the Admin Console to get the nodes to appear and populate. Yes I have tried that. No change, still only one node?
bpwwer Posted May 9, 2022 Posted May 9, 2022 You might want to look at the log to see what's wrong. My guess would be an incorrect API code or incorrect station id.
Bumbershoot Posted May 9, 2022 Posted May 9, 2022 5 minutes ago, MBell said: Yes I have tried that. No change, still only one node? Do you have your device (Tempest) added to the configuration? Key: your Station ID; Value: local Token: the token from "Data Authorizations" from the Stations on the web page of your station
oskrypuch Posted May 10, 2022 Posted May 10, 2022 Bear in mind that ferreting out your Station Id is not immediately obvious. It is not the printed ID on the unit, nor the ST number. Where you log into Tempest Weather (or in the app), that is where you will find the Station ID that PG is looking for. For example ... https://tempestwx.com/station/nnnnn/ nnnnn is what you need for the station ID field. * Orest
MBell Posted May 10, 2022 Author Posted May 10, 2022 (edited) 11 hours ago, bpwwer said: You might want to look at the log to see what's wrong. My guess would be an incorrect API code or incorrect station id. Thanks for your assistance. The station ID is not the issue as I stated it worked on PG. The API is pretty straight forward. Log file added. 2022-05-10 07:23:26,165 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2022-05-10 07:23:28,647 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.43 Starting... 2022-05-10 07:23:28,780 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.0.61 [ISY: 5.4.3, Slot: 7] 2022-05-10 07:23:28,782 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '10.0.0.47', 'netmask': '255.255.255.0', 'broadcast': '10.0.0.255'} 2022-05-10 07:23:28,784 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2022-05-10 07:23:28,791 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2022-05-10 07:23:28,792 MainThread udi_interface.interface WARNING interface:send: MQTT Send waiting on connection :: {'config': {'version': '3.0.19'}} 2022-05-10 07:23:28,843 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2022-05-10 07:23:28,845 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:37:ec_7 - MID: 1 Result: 0 2022-05-10 07:23:28,864 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2022-05-10 07:23:31,810 MainThread udi_interface.interface INFO interface:addNode: Adding node WeatherFlow(controller) [None] 2022-05-10 07:25:13,277 Thread-6 udi_interface ERROR udi_interface:write: Exception in thread 2022-05-10 07:25:13,278 Thread-6 udi_interface ERROR udi_interface:write: Thread-6 2022-05-10 07:25:13,278 Thread-6 udi_interface ERROR udi_interface:write: : 2022-05-10 07:25:13,279 Thread-6 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2022-05-10 07:25:13,280 Thread-6 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner 2022-05-10 07:25:13,284 Thread-6 udi_interface ERROR udi_interface:write: self.run() 2022-05-10 07:25:13,285 Thread-6 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run 2022-05-10 07:25:13,289 Thread-6 udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2022-05-10 07:25:13,290 Thread-6 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 115, in parameterHandler 2022-05-10 07:25:13,292 Thread-6 udi_interface ERROR udi_interface:write: self.discover(stationList) 2022-05-10 07:25:13,292 Thread-6 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 513, in discover 2022-05-10 07:25:13,295 Thread-6 udi_interface ERROR udi_interface:write: info = self.query_station(station['id']) 2022-05-10 07:25:13,296 Thread-6 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 166, in query_station 2022-05-10 07:25:13,297 Thread-6 udi_interface ERROR udi_interface:write: if d['device_type'] != 'HB': 2022-05-10 07:25:13,298 Thread-6 udi_interface ERROR udi_interface:write: KeyError 2022-05-10 07:25:13,298 Thread-6 udi_interface ERROR udi_interface:write: : 2022-05-10 07:25:13,299 Thread-6 udi_interface ERROR udi_interface:write: 'device_type' 2022-05-10 07:26:03,441 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2022-05-10 07:26:05,998 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.43 Starting... 2022-05-10 07:26:06,022 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.0.61 [ISY: 5.4.3, Slot: 7] 2022-05-10 07:26:06,024 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '10.0.0.47', 'netmask': '255.255.255.0', 'broadcast': '10.0.0.255'} 2022-05-10 07:26:06,025 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2022-05-10 07:26:06,031 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2022-05-10 07:26:06,032 MainThread udi_interface.interface WARNING interface:send: MQTT Send waiting on connection :: {'config': {'version': '3.0.19'}} 2022-05-10 07:26:06,079 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2022-05-10 07:26:06,081 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:37:ec_7 - MID: 1 Result: 0 2022-05-10 07:26:06,093 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2022-05-10 07:26:09,042 MainThread udi_interface.interface INFO interface:addNode: Adding node WeatherFlow(controller) [None] 2022-05-10 07:26:09,476 Thread-1 udi_interface ERROR udi_interface:write: Exception in thread 2022-05-10 07:26:09,477 Thread-1 udi_interface ERROR udi_interface:write: Thread-1 2022-05-10 07:26:09,478 Thread-1 udi_interface ERROR udi_interface:write: : 2022-05-10 07:26:09,478 Thread-1 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2022-05-10 07:26:09,479 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner 2022-05-10 07:26:09,483 Thread-1 udi_interface ERROR udi_interface:write: self.run() 2022-05-10 07:26:09,484 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run 2022-05-10 07:26:09,488 Thread-1 udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2022-05-10 07:26:09,488 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 115, in parameterHandler 2022-05-10 07:26:09,490 Thread-1 udi_interface ERROR udi_interface:write: self.discover(stationList) 2022-05-10 07:26:09,491 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 513, in discover 2022-05-10 07:26:09,494 Thread-1 udi_interface ERROR udi_interface:write: info = self.query_station(station['id']) 2022-05-10 07:26:09,495 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:53:37:ec_7/nodes/weatherflow.py", line 166, in query_station 2022-05-10 07:26:09,496 Thread-1 udi_interface ERROR udi_interface:write: if d['device_type'] != 'HB': 2022-05-10 07:26:09,497 Thread-1 udi_interface ERROR udi_interface:write: KeyError 2022-05-10 07:26:09,498 Thread-1 udi_interface ERROR udi_interface:write: : 2022-05-10 07:26:09,499 Thread-1 udi_interface ERROR udi_interface:write: 'device_type' Edited May 10, 2022 by MBell added log file
bpwwer Posted May 10, 2022 Posted May 10, 2022 Whatever information it is getting back from WeatherFlow when it queries for information on the station id is not valid. I took a look at what WeatherFlow was returning and it has 3 incomplete records and 1 correct record for your HUB device. The nod server is failing when it encounters the first incomplete record. Version 3.0.20 of WeatherFlow node server should now skip those incomplete records.
MBell Posted May 10, 2022 Author Posted May 10, 2022 43 minutes ago, bpwwer said: Whatever information it is getting back from WeatherFlow when it queries for information on the station id is not valid. I took a look at what WeatherFlow was returning and it has 3 incomplete records and 1 correct record for your HUB device. The nod server is failing when it encounters the first incomplete record. Version 3.0.20 of WeatherFlow node server should now skip those incomplete records. I was finally able to resolve the issue. I had to reset polisy network and delete all nodes in both PG and PG3. Installed weatherflow PG3 and it immediately loaded all 12 nodes. Thanks for the help. Glad I was wanting to move all nodes to PG3 anyways, as I had to delete all of my PG nodes.
Recommended Posts