Jump to content

Weatherpoly Acuparse on Polisy


TJF1960

Recommended Posts

Have Acuparse on rpi4 and is sending to polyglot on rpi4. Working great.

Backed up poly on rip and used that file to restore on Polsy. 

noticed Weatherpoly not running. since ISY on polisy is set to port 8080 I changed the port for weather to 8088.

It now runs but not getting updates from Acuparse. set Acuparse to send to http://192.168.0.27:8088/acuparse

Does anyone have it running on Polisy?

isy v5.0.5

polisy poly latest.

Thanks,

Tim

Link to comment
Share on other sites

I don't have acuparse so can't try and reproduce, but there's nothing in the node server that would be different between running on a RPi or a Polisy.

Do you have a firewall running someplace that may be preventing requests making it to the Polisy?

The node server is running a simple webserver to get the data.  You should be able to make the request from any browser, just put in the URL with some random data.  

If I do something like this:  http://192.168.92.12:8088/acuparse?temp=23

I'll get a response, successful data submission in the browser window

Link to comment
Share on other sites

When I enter http://192.168.0.27:8088/acuparse?temp=23 the webpage comes back with successfull data transmission. However it isn't logged in poly. And node ST doesn't change to reflect temp.

Here is the log file from start time.

 

2021-07-27 05:06:48,767 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-07-27 05:06:49,394 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-07-27 05:06:49,395 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-07-27 05:06:49,579 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.0.1', 'igb0')}, 2: [('192.168.0.1', 'igb0', True)]}
2021-07-27 05:06:49,580 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.0.1', 'igb0')
2021-07-27 05:06:49,581 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}]
2021-07-27 05:06:49,582 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}
2021-07-27 05:06:49,584 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-07-27 05:06:49,586 MainThread polyinterface      INFO     weatherstation:<module>: Calling Controller to create controller node
2021-07-27 05:06:49,761 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-07-27 05:06:49,763 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/8 -  MID: 1 Result: 0
2021-07-27 05:06:49,764 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-07-27 05:06:49,765 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-07-27 05:06:49,801 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-07-27 05:06:49,820 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-07-27 05:06:50,363 NodeServer polyinterface      INFO     weatherstation:start: Starting WeatherPoly Node Server
2021-07-27 05:06:50,364 NodeServer polyinterface      INFO     polyinterface:saveCustomData: Sending customData to Polyglot.
2021-07-27 05:06:50,646 NodeServer polyinterface      INFO     weatherstation:set_logging_level: set_logging_level: Setting log level to 0
2021-07-27 05:19:10,421 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-07-27 05:19:11,561 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-07-27 05:19:11,562 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-07-27 05:19:11,618 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.0.1', 'igb0')}, 2: [('192.168.0.1', 'igb0', True)]}
2021-07-27 05:19:11,618 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.0.1', 'igb0')
2021-07-27 05:19:11,619 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}]
2021-07-27 05:19:11,620 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}
2021-07-27 05:19:11,621 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-07-27 05:19:11,622 MainThread polyinterface      INFO     weatherstation:<module>: Calling Controller to create controller node
2021-07-27 05:19:11,682 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-07-27 05:19:11,684 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/8 -  MID: 1 Result: 0
2021-07-27 05:19:11,684 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-07-27 05:19:11,685 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-07-27 05:19:11,690 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-07-27 05:19:11,693 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-07-27 05:19:11,738 NodeServer polyinterface      INFO     weatherstation:start: Starting WeatherPoly Node Server
2021-07-27 05:19:11,739 NodeServer polyinterface      INFO     polyinterface:saveCustomData: Sending customData to Polyglot.
2021-07-27 05:19:11,969 NodeServer polyinterface      INFO     weatherstation:set_logging_level: set_logging_level: Setting log level to 0
2021-07-27 05:19:13,130 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'temperature'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'temperature'
2021-07-27 05:19:13,138 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'humidity'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'humidity'
2021-07-27 05:19:13,171 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'pressure'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'pressure'
2021-07-27 05:19:13,175 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'rain'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'rain'
2021-07-27 05:19:13,178 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'wind'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'wind'
2021-07-27 05:19:13,215 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'humidity'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'humidity'
2021-07-27 05:19:13,219 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'temperature'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'temperature'
2021-07-27 05:19:13,222 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'pressure'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'pressure'
2021-07-27 05:19:13,254 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'rain'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'rain'
2021-07-27 05:19:13,256 Controller polyinterface      ERROR    polyinterface:_handleResult: handleResult: 'wind'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/polyinterface/polyinterface.py", line 878, in _handleResult
    del self.nodes[result['addnode']['address']]
KeyError: 'wind'
2021-07-27 05:19:52,373 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-07-27 05:19:53,905 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-07-27 05:19:53,907 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-07-27 05:19:54,055 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.0.1', 'igb0')}, 2: [('192.168.0.1', 'igb0', True)]}
2021-07-27 05:19:54,056 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.0.1', 'igb0')
2021-07-27 05:19:54,057 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}]
2021-07-27 05:19:54,058 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}
2021-07-27 05:19:54,127 MainThread polyinterface      INFO     weatherstation:<module>: Calling Controller to create controller node
2021-07-27 05:19:54,145 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-07-27 05:19:54,629 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-07-27 05:19:54,632 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/8 -  MID: 1 Result: 0
2021-07-27 05:19:54,633 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-07-27 05:19:54,634 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-07-27 05:19:54,727 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-07-27 05:19:54,773 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-07-27 05:19:55,106 NodeServer polyinterface      INFO     weatherstation:start: Starting WeatherPoly Node Server
2021-07-27 05:19:55,107 NodeServer polyinterface      INFO     polyinterface:saveCustomData: Sending customData to Polyglot.
2021-07-27 05:19:55,255 NodeServer polyinterface      INFO     weatherstation:set_logging_level: set_logging_level: Setting log level to 0
2021-07-27 05:22:21,544 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-07-27 05:22:23,133 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-07-27 05:22:23,134 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-07-27 05:22:23,210 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.0.1', 'igb0')}, 2: [('192.168.0.1', 'igb0', True)]}
2021-07-27 05:22:23,211 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.0.1', 'igb0')
2021-07-27 05:22:23,212 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}]
2021-07-27 05:22:23,213 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.0.27', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}
2021-07-27 05:22:23,215 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-07-27 05:22:23,216 MainThread polyinterface      INFO     weatherstation:<module>: Calling Controller to create controller node
2021-07-27 05:22:23,529 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-07-27 05:22:23,532 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/8 -  MID: 1 Result: 0
2021-07-27 05:22:23,533 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-07-27 05:22:23,535 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-07-27 05:22:23,581 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-07-27 05:22:23,638 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-07-27 05:22:24,119 NodeServer polyinterface      INFO     weatherstation:start: Starting WeatherPoly Node Server
2021-07-27 05:22:24,121 NodeServer polyinterface      INFO     polyinterface:saveCustomData: Sending customData to Polyglot.
2021-07-27 05:22:24,470 NodeServer polyinterface      INFO     weatherstation:set_logging_level: set_logging_level: Setting log level to 0

 

Link to comment
Share on other sites

Thanks Bob. Once I looked over the configure table I realized I needed to add an f after temp in the string you suggested. Once added, the node did change to the value sent. So, http://192.168.0.27:8088/acuparse?tempf=23 command will change the temp value correctly.

So, it appears that my problem is with Acuparse sending out to the Polisy. 

Thanks for your help in verifying WeatherPoly was not at fault Bob.

Tim

Link to comment
Share on other sites

The configuration of WeatherPoly is tricky.  Polyglot's UI is pretty simplistic and trying to configure for multiple different weather software programs in a 'generic' way is complicated.  Not a good fit.

If I ever get some spare time, I'll try to come up with a better way to configure, but in the meantime, the shared knowledge here should help. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...