hart2hart Posted May 26, 2023 Share Posted May 26, 2023 I’ve tried usual reboot restart and query and it appears connected but nothing but in the position fields. Link to comment
DennisC Posted May 26, 2023 Share Posted May 26, 2023 9 minutes ago, hart2hart said: I’ve tried usual reboot restart and query and it appears connected but nothing but in the position fields. Have you set it up on the Configuration tab of the node server? Configuration longitude and latitude are the two mandatory configuration parameters. Link to comment
hart2hart Posted May 26, 2023 Author Share Posted May 26, 2023 (edited) Thanks. I have and they are: long 35.961 lat -86.696 elevation 225 I just restated the NS and following is from its log at information level: There are several ERROR messages. 2023-05-26 09:16:27,136 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message stop 2023-05-26 09:16:27,136 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING stop 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:_handleInput: Received stop from Polyglot... Shutting Down. 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:stop: Disconnecting from MQTT... localhost:8883 2023-05-26 09:16:05,398 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING shortPoll 2023-05-26 09:16:27,136 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message stop 2023-05-26 09:16:27,136 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING stop 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:_handleInput: Received stop from Polyglot... Shutting Down. 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:stop: Disconnecting from MQTT... localhost:8883 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:_disconnect: MQTT Graceful disconnection. 2023-05-26 09:16:27,138 MQTT udi_interface.interface DEBUG interface:_startMqtt: MQTT: Done 2023-05-26 09:16:27,137 Command udi_interface.interface INFO interface:_disconnect: MQTT Graceful disconnection. 2023-05-26 09:16:27,138 MQTT udi_interface.interface DEBUG interface:_startMqtt: MQTT: Done 2023-05-26 09:16:35,873 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-05-26 09:16:35,873 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-05-26 09:16:50,080 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.59 Starting... 2023-05-26 09:16:50,080 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.59 Starting... 2023-05-26 09:16:50,787 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.26 [ISY: 5.6.0, Slot: 13] 2023-05-26 09:16:50,787 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.26 [ISY: 5.6.0, Slot: 13] 2023-05-26 09:16:50,885 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '192.168.1.171', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'} 2023-05-26 09:16:50,885 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '192.168.1.171', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'} 2023-05-26 09:16:51,414 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:8883 2023-05-26 09:16:51,414 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:8883 2023-05-26 09:16:51,570 Interface udi_interface.interface INFO interface:_startMqtt: Using SSL certs: 0021b9026136_13.cert 0021b9026136_13.key 2023-05-26 09:16:51,570 Interface udi_interface.interface INFO interface:_startMqtt: Using SSL certs: 0021b9026136_13.cert 0021b9026136_13.key 2023-05-26 09:16:51,652 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-05-26 09:16:51,652 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-05-26 09:16:51,652 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:21:b9:02:61:36_13 - MID: 2 Result: 0 2023-05-26 09:16:51,652 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:21:b9:02:61:36_13 - MID: 2 Result: 0 2023-05-26 09:16:51,698 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: sunctrl not found in database. 2023-05-26 09:16:51,698 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: sunctrl not found in database. 2023-05-26 09:16:51,839 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,) 2023-05-26 09:16:51,839 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,) 2023-05-26 09:16:51,894 MainThread udi_interface.interface INFO interface:addNode: Adding node Sun Position(sunctrl) [None] 2023-05-26 09:16:51,894 MainThread udi_interface.interface INFO interface:addNode: Adding node Sun Position(sunctrl) [None] 2023-05-26 09:16:52,028 MainThread udi_interface.interface INFO interface:setController: Using node "sunctrl", driver "ST" for connection status. 2023-05-26 09:16:52,028 MainThread udi_interface.interface INFO interface:setController: Using node "sunctrl", driver "ST" for connection status. 2023-05-26 09:16:52,284 MainThread udi_interface.interface DEBUG interface:send: PUBLISHING {'setController': {'node': 'sunctrl', 'driver': 'ST'}} 2023-05-26 09:16:52,284 MainThread udi_interface.interface DEBUG interface:send: PUBLISHING {'setController': {'node': 'sunctrl', 'driver': 'ST'}} 2023-05-26 09:16:52,421 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getAll 2023-05-26 09:16:52,421 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getAll 2023-05-26 09:16:52,672 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getAll 2023-05-26 09:16:52,672 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getAll 2023-05-26 09:16:52,957 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getNsInfo 2023-05-26 09:16:52,957 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getNsInfo 2023-05-26 09:16:53,009 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message addnode 2023-05-26 09:16:53,009 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message addnode 2023-05-26 09:16:53,302 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2023-05-26 09:16:53,302 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2023-05-26 09:16:53,302 Thread-1 udi_interface.custom DEBUG custom:clear: CUSTOM: Clear ...saving 2023-05-26 09:16:53,302 Thread-1 udi_interface.custom DEBUG custom:clear: CUSTOM: Clear ...saving 2023-05-26 09:16:53,633 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message setController 2023-05-26 09:16:53,633 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message setController 2023-05-26 09:16:53,759 Command udi_interface.interface DEBUG interface:_handleInput: Key nsdata should be passed to node server. 2023-05-26 09:16:53,759 Command udi_interface.interface DEBUG interface:_handleInput: Key nsdata should be passed to node server. 2023-05-26 09:16:53,877 Thread-1 udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-05-26 09:16:53,877 Thread-1 udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-05-26 09:16:54,048 Command udi_interface.interface DEBUG interface:_handleInput: Key oauth should be passed to node server. 2023-05-26 09:16:54,048 Command udi_interface.interface DEBUG interface:_handleInput: Key oauth should be passed to node server. 2023-05-26 09:16:54,143 Thread-1 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'key': 'notices', 'value': {}}]} 2023-05-26 09:16:54,143 Thread-1 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'key': 'notices', 'value': {}}]} 2023-05-26 09:16:54,271 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getNsInfo 2023-05-26 09:16:54,271 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getNsInfo 2023-05-26 09:16:54,413 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING addnode 2023-05-26 09:16:54,413 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING addnode 2023-05-26 09:16:54,807 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message notices 2023-05-26 09:16:54,807 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message notices 2023-05-26 09:16:54,808 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2023-05-26 09:16:54,808 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2023-05-26 09:16:54,815 Command udi_interface.interface DEBUG interface:_handleResult: add node response: {'id': '6a7f7700-e119-4348-8fc6-4899dbaa532a', 'uuid': '00:21:b9:02:61:36', 'profileNum': 13, 'address': 'sunctrl', 'name': 'Sun Position', 'nodeDefId': 'SUNCTRL', 'nls': None, 'hint': '0x00000000', 'controller': 0, 'primaryNode': 'sunctrl', 'private': None, 'isPrimary': 1, 'enabled': 1, 'timeAdded': 1685054235598, 'timeModified': 1685054235598, 'dbVersion': 1} 2023-05-26 09:16:54,815 Command udi_interface.interface DEBUG interface:_handleResult: add node response: {'id': '6a7f7700-e119-4348-8fc6-4899dbaa532a', 'uuid': '00:21:b9:02:61:36', 'profileNum': 13, 'address': 'sunctrl', 'name': 'Sun Position', 'nodeDefId': 'SUNCTRL', 'nls': None, 'hint': '0x00000000', 'controller': 0, 'primaryNode': 'sunctrl', 'private': None, 'isPrimary': 1, 'enabled': 1, 'timeAdded': 1685054235598, 'timeModified': 1685054235598, 'dbVersion': 1} 2023-05-26 09:16:54,925 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING setController 2023-05-26 09:16:54,925 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING setController 2023-05-26 09:16:55,074 Command udi_interface.interface DEBUG interface:_handleInput: connection status node/driver update 2023-05-26 09:16:55,074 Command udi_interface.interface DEBUG interface:_handleInput: connection status node/driver update 2023-05-26 09:16:55,200 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING notices 2023-05-26 09:16:55,200 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING notices 2023-05-26 09:16:54,877 Thread-3 udi_interface INFO sun-poly:start: Started Sun Position 2023-05-26 09:16:54,877 Thread-3 udi_interface INFO sun-poly:start: Started Sun Position 2023-05-26 09:16:55,487 Thread-3 udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2023-05-26 09:16:55,488 Thread-3 udi_interface.interface DEBUG interface:send: PUBLISHING {'installprofile': {'reboot': False}} 2023-05-26 09:16:55,487 Thread-3 udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2023-05-26 09:16:55,488 Thread-3 udi_interface.interface DEBUG interface:send: PUBLISHING {'installprofile': {'reboot': False}} 2023-05-26 09:16:55,236 Thread-1 udi_interface ERROR udi_interface:write: Exception in thread 2023-05-26 09:16:55,236 Thread-1 udi_interface ERROR udi_interface:write: Exception in thread 2023-05-26 09:16:55,617 Thread-1 udi_interface ERROR udi_interface:write: Thread-1 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:55,617 Thread-1 udi_interface ERROR udi_interface:write: Thread-1 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 787, in sunrise 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-05-26 09:16:55,618 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 787, in sunrise 2023-05-26 09:16:55,619 Thread-1 udi_interface ERROR udi_interface:write: tot = time_of_transit( 2023-05-26 09:16:55,619 Thread-1 udi_interface ERROR udi_interface:write: tot = time_of_transit( 2023-05-26 09:16:55,633 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 304, in time_of_transit 2023-05-26 09:16:55,633 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 304, in time_of_transit 2023-05-26 09:16:55,634 Thread-1 udi_interface ERROR udi_interface:write: hourangle = hour_angle( 2023-05-26 09:16:55,635 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 215, in hour_angle 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: hour_angle = acos(h) 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: ValueError 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:55,634 Thread-1 udi_interface ERROR udi_interface:write: hourangle = hour_angle( 2023-05-26 09:16:55,635 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 215, in hour_angle 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: hour_angle = acos(h) 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: ValueError 2023-05-26 09:16:55,636 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: math domain error 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: The above exception was the direct cause of the following exception: 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner 2023-05-26 09:16:55,638 Thread-1 udi_interface ERROR udi_interface:write: self.run() 2023-05-26 09:16:55,639 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run 2023-05-26 09:16:55,640 Thread-1 udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: math domain error 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: The above exception was the direct cause of the following exception: 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-05-26 09:16:55,637 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner 2023-05-26 09:16:55,638 Thread-1 udi_interface ERROR udi_interface:write: self.run() 2023-05-26 09:16:55,639 Thread-1 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run 2023-05-26 09:16:55,640 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/sun-poly.py", line 76, in parameterHandler 2023-05-26 09:16:55,641 Thread-1 udi_interface ERROR udi_interface:write: self.sunrise = self.location.sunrise() 2023-05-26 09:16:55,640 Thread-1 udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2023-05-26 09:16:55,640 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/sun-poly.py", line 76, in parameterHandler 2023-05-26 09:16:55,641 Thread-1 udi_interface ERROR udi_interface:write: self.sunrise = self.location.sunrise() 2023-05-26 09:16:55,641 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/location.py", line 330, in sunrise 2023-05-26 09:16:55,642 Thread-1 udi_interface ERROR udi_interface:write: return astral.sun.sunrise(observer, date, self.tzinfo) 2023-05-26 09:16:55,642 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 823, in sunrise 2023-05-26 09:16:55,641 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/location.py", line 330, in sunrise 2023-05-26 09:16:55,642 Thread-1 udi_interface ERROR udi_interface:write: return astral.sun.sunrise(observer, date, self.tzinfo) 2023-05-26 09:16:55,642 Thread-1 udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026136_13/.local/lib/python3.9/site-packages/astral/sun.py", line 823, in sunrise 2023-05-26 09:16:55,643 Thread-1 udi_interface ERROR udi_interface:write: raise ValueError(msg) from exc 2023-05-26 09:16:55,814 Thread-1 udi_interface ERROR udi_interface:write: ValueError 2023-05-26 09:16:55,643 Thread-1 udi_interface ERROR udi_interface:write: raise ValueError(msg) from exc 2023-05-26 09:16:55,814 Thread-1 udi_interface ERROR udi_interface:write: ValueError 2023-05-26 09:16:55,531 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2023-05-26 09:16:55,531 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2023-05-26 09:16:55,927 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2023-05-26 09:16:55,927 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2023-05-26 09:16:55,956 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:55,956 Thread-1 udi_interface ERROR udi_interface:write: : 2023-05-26 09:16:56,108 Thread-1 udi_interface ERROR udi_interface:write: Sun is always below the horizon on this day, at this location. 2023-05-26 09:17:03,909 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message shortPoll 2023-05-26 09:16:56,108 Thread-1 udi_interface ERROR udi_interface:write: Sun is always below the horizon on this day, at this location. 2023-05-26 09:17:03,909 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message shortPoll 2023-05-26 09:17:03,910 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING shortPoll SUN.txt Edited May 26, 2023 by hart2hart Link to comment
DennisC Posted May 26, 2023 Share Posted May 26, 2023 I think you might require Bob to look at the errors, you might want to tag him. Just to be sure, in the "value" field, you only have the number? The key field would be for Latitude and Longitude. I don't use this node server to look at the exact format. Link to comment
hart2hart Posted May 26, 2023 Author Share Posted May 26, 2023 I think you might require Bob to look at the errors, you might want to tag him. Just to be sure, in the "value" field, you only have the number? The key field would be for Latitude and Longitude. I don't use this node server to look at the exact format.@bpwwer Per Dennis’ suggestion, can you assist me?Thanks. Link to comment
hart2hart Posted June 7, 2023 Author Share Posted June 7, 2023 I'm ashamed to admin it but I had the lat and long reversed in the params so if you see these error messages... Link to comment
Recommended Posts