Jump to content

Polglot V2 CAO Wireless Tags Nodeserver


Jimbo.Automates

Recommended Posts

Everything seems to be working fine today.

I still suggest the Temp and Humidity should be NN.F as they appear in the Wireless Tag Manager. I cannot see somebody want to know if either has changed by hundreds.

 

If I remember correctly you stated on GitHub that type 62 is not supported because you thought nobody used it. The Wireless Tag Manager allows you to include Honeywell Wifi Thermostats, which I did. So it is showing up as tag type 62 below. So it would be nice to have it supported in WirelessTag. I don't really want to control the thermostats, just be able to see the values to decide to turn on/off overhead fans in various rooms. And as somebody else wanted to be able to compare humidity in one location as compared to the bathroom to decide to turn on exhaust fan.

 

Node Name 14 Address NodeDef ID Enabled Primary Node Is Primary Delete
MAIN FLOOR@Fallowfield Lane 0c4ee181bad016 wTag62F true a9864cc75ff4 false  
Driver UOM Value
ST 2 1
GPV 56 -1
UOM 56 1
GV1 56 62
CLITEMP 17 75
BATLVL 51 94
CV 72 3
GV7 25 0
GV9 25 0
GV13 25 0
GV14 25 0
ALARM 25 5
CLIHUM 22 33
GV10 25 0
Link to comment
Share on other sites

I'm stuck on step 4 of the installation as I never see the message.

In the log I get the following errors:

2018-03-04 14:37:13,360 INFO     Polyglot v2 Interface Starting...
2018-03-04 14:37:13,650 INFO     Received Config from STDIN.
2018-03-04 14:37:13,813 INFO     Connecting to MQTT... localhost:1883
2018-03-04 14:37:13,830 INFO     wtController:init: Initializing VERSION=0.0.16
2018-03-04 14:37:13,831 ERROR    c=<wt_nodes.wtController.wtController object at 0x106397160>
2018-03-04 14:37:13,834 INFO     MQTT Connected with result code 0 (Success)
2018-03-04 14:37:13,834 INFO     MQTT Subscribing to topic: udi/polyglot/ns/2 -  MID: 1 Result: 0
2018-03-04 14:37:13,834 INFO     MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2018-03-04 14:37:13,834 INFO     Sent Connected message to Polyglot
2018-03-04 14:37:13,858 INFO     Adding node WirelessTagsController(wtcontroller)
2018-03-04 14:37:13,858 INFO     Waiting on Controller node to be added.......
2018-03-04 14:37:13,858 INFO     Updating Driver wtcontroller - ST: 1
2018-03-04 14:37:13,858 INFO     wtController:start: WirelessSensorTags Polyglot...
2018-03-04 14:37:13,859 ERROR    wtController:load_params: oauth2_code not defined in customParams, please authorize
2018-03-04 14:37:13,859 INFO     Updating Driver wtcontroller - GV3: 0
2018-03-04 14:37:13,859 INFO     Updating Driver wtcontroller - GV4: 0
2018-03-04 14:37:13,863 ERROR    Exception in thread Thread-1:
Traceback (most recent call last):
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 100, in get_network_ip
    s.connect((rhost, 0))
OSError: [Errno 49] Can't assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 2650, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 1481, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 1003, in loop
    rc = self.loop_read(max_packets)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 1284, in loop_read
    rc = self._packet_read()
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 1849, in _packet_read
    rc = self._packet_handle()
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 2305, in _packet_handle
    return self._handle_publish()
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 2500, in _handle_publish
    self._handle_on_message(message)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/paho/mqtt/client.py", line 2647, in _handle_on_message
    self.on_message(self, self._userdata, message)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 221, in _message
    self.inConfig(parsed_msg[key])
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 431, in inConfig
    watcher(config)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 588, in _gotConfig
    self.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 73, in start
    self.wtServer.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 121, in start
    self.rest.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 68, in start
    self.myip    = self.get_network_ip('8.8.8.8')
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 102, in get_network_ip
    self.l_error("get_network_ip","Failed to open socket to " + rhost)
AttributeError: 'wtREST' object has no attribute 'l_error'
2018-03-04 14:37:13,865 WARNING  /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py:949: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 0)>

Link to comment
Share on other sites

5 hours ago, jca001 said:

Everything seems to be working fine today.

I still suggest the Temp and Humidity should be NN.F as they appear in the Wireless Tag Manager. I cannot see somebody want to know if either has changed by hundreds.

 

If I remember correctly you stated on GitHub that type 62 is not supported because you thought nobody used it. The Wireless Tag Manager allows you to include Honeywell Wifi Thermostats, which I did. So it is showing up as tag type 62 below. So it would be nice to have it supported in WirelessTag. I don't really want to control the thermostats, just be able to see the values to decide to turn on/off overhead fans in various rooms. And as somebody else wanted to be able to compare humidity in one location as compared to the bathroom to decide to turn on exhaust fan.

 

Node Name 14 Address NodeDef ID Enabled Primary Node Is Primary Delete
MAIN FLOOR@Fallowfield Lane 0c4ee181bad016 wTag62F true a9864cc75ff4 false  
Driver UOM Value
ST 2 1
GPV 56 -1
UOM 56 1
GV1 56 62
CLITEMP 17 75
BATLVL 51 94
CV 72 3
GV7 25 0
GV9 25 0
GV13 25 0
GV14 25 0
ALARM 25 5
CLIHUM 22 33
GV10 25 0

Yes, I'm fine with changing to one decimal precision.

Yes, if 62 is how a Honeywell thermostat shows up then I'm all for it.  I actually have a Honeywell TCC at my lake house where my second tag manager is going. Can you search in your log for 'Got Tag' and show me that line.

Edit: added https://github.com/jimboca/udi-wirelesstag-poly/issues/14

 

Link to comment
Share on other sites

27 minutes ago, Chioti said:

I'm stuck on step 4 of the installation as I never see the message.

In the log I get the following errors:

  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 68, in start
    self.myip    = self.get_network_ip('8.8.8.8')
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 102, in get_network_ip
    self.l_error("get_network_ip","Failed to open socket to " + rhost)
AttributeError: 'wtREST' object has no attribute 'l_error'
2018-03-04 14:37:13,865 WARNING  /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py:949: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 0)>

I fixed the error in my code and will release later.  But, the real error is that it is unable to connect ping the google dns server 8.8.8.8, this is a stupid trick I have to use to get the IP address of the current machine.  The code works on a RPi, but not on your computer?  I might be able to get around this, I"ll have to look into it.  

 

Link to comment
Share on other sites

Jimbo,

Maybe this will help, found this on Stack Overflow:

import socket
def get_ip():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    try:
        # doesn't even have to be reachable
        s.connect(('10.255.255.255', 1))
        IP = s.getsockname()[0]
    except:
        IP = '127.0.0.1'
    finally:
        s.close()
    return IP
Link to comment
Share on other sites

34 minutes ago, Chioti said:

Jimbo,

Maybe this will help, found this on Stack Overflow:


import socket
def get_ip():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    try:
        # doesn't even have to be reachable
        s.connect(('10.255.255.255', 1))
        IP = s.getsockname()[0]
    except:
        IP = '127.0.0.1'
    finally:
        s.close()
    return IP

Yes, that works except if it hits the exception and returns the localhost address 127.0.0.1 then the TagManager will not be able to talk to Polyglot. :)

Link to comment
Share on other sites

I just added a Reed KumoSensor successfully except that the Event State never changes in the Admin. The wt log shows both open and closed coming through on that end, and the update clock resets on each Event, just not getting to the AC. Let me know if you want to see a log.

Screen Shot 2018-03-04 at 6.31.14 PM.png

Link to comment
Share on other sites

31 minutes ago, Dr. Q said:

I just added a Reed KumoSensor successfully except that the Event State never changes in the Admin. The wt log shows both open and closed coming through on that end, and the update clock resets on each Event, just not getting to the AC. Let me know if you want to see a log.

Yes, that's likely not working properly since I don't have one to test.  Please send me the log of opening and closing.

Also, the Moisture Status is showing as NA, so I guess that should be removed from the display

https://github.com/jimboca/udi-wirelesstag-poly/issues/15

Link to comment
Share on other sites

Updated manually (git pull) and now I get this:

2018-03-04 16:55:33,873 INFO     Polyglot v2 Interface Starting...
2018-03-04 16:55:33,876 INFO     Received Config from STDIN.
2018-03-04 16:55:34,356 ERROR    Traceback (most recent call last):
2018-03-04 16:55:34,359 ERROR    File "./wirelesstags-poly.py", line 8, in <module>
2018-03-04 16:55:34,360 ERROR    from wt_nodes import wtController
2018-03-04 16:55:34,361 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/__init__.py", line 8, in <module>
2018-03-04 16:55:34,362 ERROR    from .wtController import wtController
2018-03-04 16:55:34,363 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 8, in <module>
2018-03-04 16:55:34,364 ERROR    from wtServer import wtServer
2018-03-04 16:55:34,365 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wtServer.py", line 11, in <module>
2018-03-04 16:55:34,366 ERROR    import netifaces as ni
2018-03-04 16:55:34,366 ERROR    ImportError
2018-03-04 16:55:34,367 ERROR    :
2018-03-04 16:55:34,367 ERROR    No module named 'netifaces'

 

Link to comment
Share on other sites

8 minutes ago, rccoleman said:

Updated manually (git pull) and now I get this:


2018-03-04 16:55:33,873 INFO     Polyglot v2 Interface Starting...
2018-03-04 16:55:33,876 INFO     Received Config from STDIN.
2018-03-04 16:55:34,356 ERROR    Traceback (most recent call last):
2018-03-04 16:55:34,359 ERROR    File "./wirelesstags-poly.py", line 8, in <module>
2018-03-04 16:55:34,360 ERROR    from wt_nodes import wtController
2018-03-04 16:55:34,361 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/__init__.py", line 8, in <module>
2018-03-04 16:55:34,362 ERROR    from .wtController import wtController
2018-03-04 16:55:34,363 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 8, in <module>
2018-03-04 16:55:34,364 ERROR    from wtServer import wtServer
2018-03-04 16:55:34,365 ERROR    File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wtServer.py", line 11, in <module>
2018-03-04 16:55:34,366 ERROR    import netifaces as ni
2018-03-04 16:55:34,366 ERROR    ImportError
2018-03-04 16:55:34,367 ERROR    :
2018-03-04 16:55:34,367 ERROR    No module named 'netifaces'

 

Sorry, missed one instruction: Run ./install.sh

Link to comment
Share on other sites

Better?

 

2018-03-04 17:10:25,064 INFO     wtController:get_node: adress=b16419acd1ad
2018-03-04 17:10:25,065 INFO     wtController:discover: Running discover on <wt_nodes.wTagManager.wTagManager object at 0x7613ba30>
2018-03-04 17:10:25,074 ERROR    Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 215, in _discover
    node.discover(thread=False)
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wTagManager.py", line 150, in discover
    self._discover()
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wTagManager.py", line 153, in _discover
    self.l_debug('discover','use_tags={}'.format(self.use_tags))
AttributeError: 'wTagManager' object has no attribute 'use_tags'
2018-03-04 17:10:51,157 DEBUG    wtController:shortPoll: discover thread is done...
2018-03-04 17:10:51,158 INFO     Updating Driver e04a8e9a15f78b - GV14: 27

Nevermind.  Restarted the node server again and it's working now.

Link to comment
Share on other sites

1 hour ago, Jimbo said:

Yes, that's likely not working properly since I don't have one to test.  Please send me the log of opening and closing.

 

Quote


 
2018-03-04 20:08:22,348 DEBUG get_handler: command=/door_opened
2018-03-04 20:08:22,348 DEBUG wtController:get_handler: processing command=/door_opened params={'zaxis': '0', 'ts': '2018-03-04T20:08:22 00:00', 'yaxis': '0', 'tmgr_mac': '8193BBA19F9B', 'orien': '0', 'xaxis': '0', 'tagid': '3'}
2018-03-04 20:08:22,349 DEBUG wTag52F:cf3203aa63bc2a:Patio Door:set_time: 1520212102,False
2018-03-04 20:08:22,350 INFO Updating Driver cf3203aa63bc2a - GV13: 1520212102
2018-03-04 20:08:22,351 INFO Updating Driver cf3203aa63bc2a - GV14: 0
2018-03-04 20:08:22,352 DEBUG get_handler: code=200 message=Command /door_opened success
2018-03-04 20:08:22,353 INFO wtHandler:log_message"GET /door_opened?tmgr_mac=8193BBA19F9B&tagid=3&orien=0&xaxis=0&yaxis=0&zaxis=0&ts=2018-03-04T20:08:22+00:00 HTTP/1.1" 200 -
2018-03-04 20:08:24,458 DEBUG get_handler: command=/door_closed
2018-03-04 20:08:24,459 DEBUG wtController:get_handler: processing command=/door_closed params={'zaxis': '0', 'ts': '2018-03-04T20:08:24 00:00', 'yaxis': '0', 'tmgr_mac': '8193BBA19F9B', 'orien': '0', 'xaxis': '0', 'tagid': '3'}
2018-03-04 20:08:24,461 DEBUG wTag52F:cf3203aa63bc2a:Patio Door:set_time: 1520212104,False
2018-03-04 20:08:24,462 INFO Updating Driver cf3203aa63bc2a - GV13: 1520212104
2018-03-04 20:08:24,464 DEBUG get_handler: code=200 message=Command /door_closed success
2018-03-04 20:08:24,465 INFO wtHandler:log_message"GET /door_closed?tmgr_mac=8193BBA19F9B&tagid=3&orien=0&xaxis=0&yaxis=0&zaxis=0&ts=2018-03-04T20:08:24+00:00 HTTP/1.1" 200 -

Also, is it possible to show signal strength per tag instead of Out Of Range binary?

Thanks,

Chuck

 

Link to comment
Share on other sites

16 minutes ago, rccoleman said:

Better?

 


2018-03-04 17:10:25,064 INFO     wtController:get_node: adress=b16419acd1ad
2018-03-04 17:10:25,065 INFO     wtController:discover: Running discover on <wt_nodes.wTagManager.wTagManager object at 0x7613ba30>
2018-03-04 17:10:25,074 ERROR    Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 215, in _discover
    node.discover(thread=False)
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wTagManager.py", line 150, in discover
    self._discover()
  File "/home/rcoleman/.polyglot/nodeservers/WirelessTag/wt_nodes/wTagManager.py", line 153, in _discover
    self.l_debug('discover','use_tags={}'.format(self.use_tags))
AttributeError: 'wTagManager' object has no attribute 'use_tags'
2018-03-04 17:10:51,157 DEBUG    wtController:shortPoll: discover thread is done...
2018-03-04 17:10:51,158 INFO     Updating Driver e04a8e9a15f78b - GV14: 27

 

This should not be possible.  I've attempted to recreate that and it works fine for me.  Was this just a discover on the controller right after a restart?  It may be possible that the restart had not completely finished when you ran discover.  I tried to test that a few times and it didn't happen, likely a race condition, so I'll have to add a check for that...    If you PM me the full log file, I can look deeper.

In the meantime, if you run restart, wait until you see a line ending in:

:shortPoll: set_url thread is done...

Which should show up on the first shortPoll interval, but sometimes takes longer if the wireless tags server is slow.

 

Link to comment
Share on other sites

2 minutes ago, Jimbo said:

This should not be possible.  I've attempted to recreate that and it works fine for me.  Was this just a discover on the controller right after a restart?  It may be possible that the restart had not completely finished when you ran discover.  I tried to test that a few times and it didn't happen, likely a race condition, so I'll have to add a check for that...    If you PM me the full log file, I can look deeper.

In the meantime, if you run restart, wait until you see a line ending in:

:shortPoll: set_url thread is done...

Which should show up on the first shortPoll interval, but sometimes takes longer if the wireless tags server is slow.

 

It's mysteriously working again after I restarted the node server.  Yes, it was he first discover after a restart.

Link to comment
Share on other sites

8 minutes ago, rccoleman said:

It's mysteriously working again after I restarted the node server.  Yes, it was he first discover after a restart.

Thanks, yes, it's likely an issue with discover run while startup was still going.

https://github.com/jimboca/udi-wirelesstag-poly/issues/17

Everyone else, if I haven't recorded your issue here https://github.com/jimboca/udi-wirelesstag-poly/issues then I missed it, so please let me know again.  Get's hard to track issues or when the thread busy.

Link to comment
Share on other sites

Installed 17 but I still don't get the "message" so I can get the auth code  needed...although there are fewer errors this time.

2018-03-04 21:14:05,803 INFO     Polyglot v2 Interface Starting...
2018-03-04 21:14:06,093 INFO     Received Config from STDIN.
2018-03-04 21:14:06,258 INFO     Connecting to MQTT... localhost:1883
2018-03-04 21:14:06,275 INFO     wtController:init: Initializing VERSION=0.0.17
2018-03-04 21:14:06,276 ERROR    c=<wt_nodes.wtController.wtController object at 0x10fac5128>
2018-03-04 21:14:06,278 INFO     MQTT Connected with result code 0 (Success)
2018-03-04 21:14:06,279 INFO     MQTT Subscribing to topic: udi/polyglot/ns/2 -  MID: 1 Result: 0
2018-03-04 21:14:06,279 INFO     MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2018-03-04 21:14:06,279 INFO     Sent Connected message to Polyglot
2018-03-04 21:14:06,305 INFO     Updating Driver wtcontroller - ST: 1
2018-03-04 21:14:06,305 INFO     wtController:start: WirelessSensorTags Polyglot...
2018-03-04 21:14:06,305 ERROR    wtController:load_params: oauth2_code not defined in customParams, please authorize
2018-03-04 21:14:06,305 INFO     Updating Driver wtcontroller - GV3: 0
2018-03-04 21:14:06,306 INFO     Updating Driver wtcontroller - GV4: 0
2018-03-04 21:14:06,306 ERROR    KeyError in gotConfig: 2
Traceback (most recent call last):
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 431, in inConfig
    watcher(config)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 588, in _gotConfig
    self.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 73, in start
    self.wtServer.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 136, in start
    self.st = self.rest.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 69, in start
    self.myip    = self.get_network_ip()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 118, in get_network_ip
    ifaddr = ni.ifaddresses(iface)[ni.AF_INET][0]
KeyError: 2
 

Link to comment
Share on other sites

Installed 17 but I still don't get the "message" so I can get the auth code  needed...although there are fewer errors this time.
2018-03-04 21:14:05,803 INFO     Polyglot v2 Interface Starting...
2018-03-04 21:14:06,093 INFO     Received Config from STDIN.
2018-03-04 21:14:06,258 INFO     Connecting to MQTT... localhost:1883
2018-03-04 21:14:06,275 INFO     wtController:init: Initializing VERSION=0.0.17
2018-03-04 21:14:06,276 ERROR    c=
2018-03-04 21:14:06,278 INFO     MQTT Connected with result code 0 (Success)
2018-03-04 21:14:06,279 INFO     MQTT Subscribing to topic: udi/polyglot/ns/2 -  MID: 1 Result: 0
2018-03-04 21:14:06,279 INFO     MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2018-03-04 21:14:06,279 INFO     Sent Connected message to Polyglot
2018-03-04 21:14:06,305 INFO     Updating Driver wtcontroller - ST: 1
2018-03-04 21:14:06,305 INFO     wtController:start: WirelessSensorTags Polyglot...
2018-03-04 21:14:06,305 ERROR    wtController:load_params: oauth2_code not defined in customParams, please authorize
2018-03-04 21:14:06,305 INFO     Updating Driver wtcontroller - GV3: 0
2018-03-04 21:14:06,306 INFO     Updating Driver wtcontroller - GV4: 0
2018-03-04 21:14:06,306 ERROR    KeyError in gotConfig: 2
Traceback (most recent call last):
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 431, in inConfig
    watcher(config)
  File "/Users/mac/Library/Python/3.6/lib/python/site-packages/polyinterface/polyinterface.py", line 588, in _gotConfig
    self.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wt_nodes/wtController.py", line 73, in start
    self.wtServer.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 136, in start
    self.st = self.rest.start()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 69, in start
    self.myip    = self.get_network_ip()
  File "/Users/mac/.polyglot/nodeservers/WirelessTag/wtServer.py", line 118, in get_network_ip
    ifaddr = ni.ifaddresses(iface)[ni.AF_INET][0]
KeyError: 2
 
Yes, there is more error trapping, but the new code still can't figure out your IP address. What are you running this on?

Sent from my Pixel 2 XL using Tapatalk

Link to comment
Share on other sites

Everything seems to be working fine today.

I still suggest the Temp and Humidity should be NN.F as they appear in the Wireless Tag Manager. I cannot see somebody want to know if either has changed by hundreds.

 

If I remember correctly you stated on GitHub that type 62 is not supported because you thought nobody used it. The Wireless Tag Manager allows you to include Honeywell Wifi Thermostats, which I did. So it is showing up as tag type 62 below. So it would be nice to have it supported in WirelessTag. I don't really want to control the thermostats, just be able to see the values to decide to turn on/off overhead fans in various rooms. And as somebody else wanted to be able to compare humidity in one location as compared to the bathroom to decide to turn on exhaust fan.

 

Node Name 14 Address NodeDef ID Enabled Primary Node Is Primary Delete
MAIN FLOOR@Fallowfield Lane 0c4ee181bad016 wTag62F true a9864cc75ff4 false  
Driver UOM Value
ST 2 1
GPV 56 -1
UOM 56 1
GV1 56 62
CLITEMP 17 75
BATLVL 51 94
CV 72 3
GV7 25 0
GV9 25 0
GV13 25 0
GV14 25 0
ALARM 25 5
CLIHUM 22 33
GV10 25 0

 

Interesting I can seem to get my Honeywell TCC stats to work. Keep getting “authorization error” - they once worked but stopped. I thought this was a wireless tag issue.

 

They show up with info when they are added however “update” gives me the error. Can you confirm yours are ok?

 

c27b8c7af6d8b1f3cc82358f5a20cf86.jpg

 

727f15eaf610ce89a2e127a6381cef55.jpg

Link to comment
Share on other sites

2 minutes ago, Jimbo said:

Released 0.0.18 which should fix this.  Thanks to @einstein.42 who helped me test on his Mac.

Also added more data for Tag Type 62 for @jca001

Release Notes You will need to manually upgrade or wait until 42 min after the hour.

If anyone manually upgraded in the last couple minutes, please do it again.  My release failed, but it's all good now.

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...