Jump to content

Ambient Weather NS


Recommended Posts

Calling those running this NS....

I'm looking at doing some re-work to include additional units like the desktop WS-8482 and the additional sensors that can be used with the ObserverIP module.  There's little commonality between a normal PWS and the desktop units and with the add-on sensors it can become well... a mess.  

So I'm looking for input in preferences about visuals and interactions.  The easiest it would seem would be to create a parent controller for each PWS unit and then a node device for each metric or similar groups of metrics.  The alternative would be to try and do dynamic node definition updates/modifications as sensors are added to a PWS.  There's not a lot of new sensors available but as they come it will make things more difficult and prone to update problems (I feel).  

So before i go making big changes I wanted to get feedback from those using the NodeServer.

Link to comment
Share on other sites

  • 2 months later...

I feel that no one is likely using this node server (at least from the Cloud store) unless you have personally told them how to set it up.  I'm guessing this is a fork of Bob's and I can now guess how to install using the two keys "macAddress" and "APIKey" but no cloud store user would really be able to guess these.

The README says:

Quote

Ambient Weather Polyglot

Installation

Here is how you install this poly.

Requirements

Here is what is required to run this poly.

 

I didn't try your version because of this, but can now guess it's a fork of Bob's based on comments I read while trying to figure out how to make Bob's NS run.  

Link to comment
Share on other sites

Actually it's not a fork of Bob's.  We did discuss a little about things however this one stems more from my HomeSeer version and was a good first polyglot nodeserver experience.

  • Only API Key is needed
    •  Key Name is already there so it's very easy to understand what is needed.
  • I didn't include anything in the GitHub README because the documentation should be in Polyglot but PGC doesn't provide that just yet so I haven't updated the local either.
  • This is in my view still beta and there are changes I plan to make to the node presentations
  • Latest update fixed Polyglot Cloud issues so it now runs local or in the cloud
  • I'm not really sure how many people are using it.  The few that have reached out have expressed they like it though
Link to comment
Share on other sites

I’ve only been able to get this running in the cloud.  When I install it locally on my Pi 3b running Stretch the Configuration Parameter doesn’t automatically populate with “api_key” like it does in the cloud version.  Entering a custom parameter of api_key along with the key doesn’t help.  I suspect that MrBill may be having similar issues.  The log shows this error - No module named 'aiohttp'

Also, I have an additional WH31B sensor that displays on my dashboard but none of the readings show up in the Polyglot nodes.

Link to comment
Share on other sites

On 11/1/2019 at 9:23 AM, Doug_L said:

I’ve only been able to get this running in the cloud.  When I install it locally on my Pi 3b running Stretch the Configuration Parameter doesn’t automatically populate with “api_key” like it does in the cloud version.  Entering a custom parameter of api_key along with the key doesn’t help.  I suspect that MrBill may be having similar issues.  The log shows this error - No module named 'aiohttp'

Also, I have an additional WH31B sensor that displays on my dashboard but none of the readings show up in the Polyglot nodes.

I've been away and trying to get things re-situated so I'll take a look into this.

Link to comment
Share on other sites

On 11/1/2019 at 9:23 AM, Doug_L said:

I’ve only been able to get this running in the cloud.  When I install it locally on my Pi 3b running Stretch the Configuration Parameter doesn’t automatically populate with “api_key” like it does in the cloud version.  Entering a custom parameter of api_key along with the key doesn’t help.  I suspect that MrBill may be having similar issues.  The log shows this error - No module named 'aiohttp'

Also, I have an additional WH31B sensor that displays on my dashboard but none of the readings show up in the Polyglot nodes.

I just did a fresh install on my test environment and I noticed two things.

1. During the install I got a polyglot error.  this is a new thing that I have not seen before.  It's some issue with the git checkout and install.  However the nodeserver is cloned correctly and is present on the rPi install. 

2. After I install the nodeserver to my ISY everything is showing correctly for me in this install.  Did you have any other errors or issues during the clone and install?

My install screenshot:

image.thumb.png.782609d9e4341cbb72d1d71450b037ba.png

Link to comment
Share on other sites

On 11/1/2019 at 9:23 AM, Doug_L said:

I’ve only been able to get this running in the cloud.  When I install it locally on my Pi 3b running Stretch the Configuration Parameter doesn’t automatically populate with “api_key” like it does in the cloud version.  Entering a custom parameter of api_key along with the key doesn’t help.  I suspect that MrBill may be having similar issues.  The log shows this error - No module named 'aiohttp'

Also, I have an additional WH31B sensor that displays on my dashboard but none of the readings show up in the Polyglot nodes.

The install error around aiohttp is likely caused by the version of Python on your rPi.  Can you provide the Python version?  I ran some tests on my dev rPi and I get this message on a manual install:

aioambient requires Python '>=3.6.0' but the running Python is 3.5.3


Installing through the Nodeserver store I get a generic error about the installProc but no details.  The manual install revealed the above message.

Link to comment
Share on other sites

I didn’t have any issues installing from the Nodeserver store on my Pi other than noted above regarding the api_key not populating.  I also got the installproc error and in the log there was also the aiohttp error.  I looked up the aiohttp error and saw it was related to the Python version.  I believe I’m on 3.5.3 since that comes with Stretch.  I attempted to upgrade to 3.6 but then I couldn’t get Polyglot to start.  It’s highly likely that I made a mistake on the upgrade though since my Pi experience is limited.

Link to comment
Share on other sites

1 minute ago, Doug_L said:

I didn’t have any issues installing from the Nodeserver store on my Pi other than noted above regarding the api_key not populating.  I also got the installproc error and in the log there was also the aiohttp error.  I looked up the aiohttp error and saw it was related to the Python version.  I believe I’m on 3.5.3 since that comes with Stretch.  I attempted to upgrade to 3.6 but then I couldn’t get Polyglot to start.  It’s highly likely that I made a mistake on the upgrade though since my Pi experience is limited.

In testing I got the same errors.  The InstallProc error is a result of the Python version dependency for aiohttp wanting Python 3.6.  I check with my rPi running Stretch and Python 3.6 is not available for an easy upgrade to it.  It is possible to do a full Raspbian dist upgrade but that's up to the individual if they want to do that as it could break other things and is a very big hammer for a small nail. 

This has opened up other questions in supporting multiple Python versions and the various modules that could come into play.  My first thought is to use the Python virtualenv to wrap everything and distribute the nodeservers within a virtualenv for runtime.  This however I have not tested with Polyglot.  So I have a few things on my todo list....

Link to comment
Share on other sites

Upgrading to Buster resolved the issues.  Two questions for you:

1.  Are there any plans to support additional sensors?  I’m only getting information from the outdoor sensor and the indoor sensor on my WS-2000.  I’d love to be able to get the information from my WH31B that I can see on my Ambient Weather dashboard.

2.  Do you have a donation page for your efforts?  I greatly appreciate what you’re doing!

Link to comment
Share on other sites

9 minutes ago, Doug_L said:

Upgrading to Buster resolved the issues.  Two questions for you:

1.  Are there any plans to support additional sensors?  I’m only getting information from the outdoor sensor and the indoor sensor on my WS-2000.  I’d love to be able to get the information from my WH31B that I can see on my Ambient Weather dashboard.

2.  Do you have a donation page for your efforts?  I greatly appreciate what you’re doing!

Additional sensors are supported currently for the ObserverIP module and addon sensors.  I don't have a WS-2000 but I can work with you on adding it's sensors to the list of supported ones.

Yes I do have a donation page and I appreciate contributions.  https://www.paypal.me/simplextech

Link to comment
Share on other sites

  • 1 month later...

I moved my NodeServers from a Pi over to a Polisy yesterday.  Your Ambient weather NS didn't show connected so I performed an uninstall/install and have the following error.

019-12-27 10:59:22,950 [MainThread] [INFO ] Received Config from STDIN.
2019-12-27 10:59:22,952 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting...
2019-12-27 10:59:24,204 [MainThread] [ERROR] Traceback (most recent call last):
2019-12-27 10:59:24,204 [MainThread] [ERROR] File "./ambientweather-poly.py", line 11, in <module>
2019-12-27 10:59:24,206 [MainThread] [ERROR] from aiohttp import ClientSession
2019-12-27 10:59:24,207 [MainThread] [ERROR] ModuleNotFoundError
2019-12-27 10:59:24,207 [MainThread] [ERROR] :
2019-12-27 10:59:24,208 [MainThread] [ERROR] No module named 'aiohttp'

 

Link to comment
Share on other sites

2 hours ago, kemac said:

I moved my NodeServers from a Pi over to a Polisy yesterday.  Your Ambient weather NS didn't show connected so I performed an uninstall/install and have the following error.

019-12-27 10:59:22,950 [MainThread] [INFO ] Received Config from STDIN.
2019-12-27 10:59:22,952 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting...
2019-12-27 10:59:24,204 [MainThread] [ERROR] Traceback (most recent call last):
2019-12-27 10:59:24,204 [MainThread] [ERROR] File "./ambientweather-poly.py", line 11, in <module>
2019-12-27 10:59:24,206 [MainThread] [ERROR] from aiohttp import ClientSession
2019-12-27 10:59:24,207 [MainThread] [ERROR] ModuleNotFoundError
2019-12-27 10:59:24,207 [MainThread] [ERROR] :
2019-12-27 10:59:24,208 [MainThread] [ERROR] No module named 'aiohttp'

 

The error is pointing to the aiohttp module not being installed.  When you did an uninstall/install how was that performed?  Through the Polisy NS store page?  When you say "moved" did you copy the NS's from the rPi to the Polisy or something?

Link to comment
Share on other sites

12 minutes ago, simplextech said:

The error is pointing to the aiohttp module not being installed.  When you did an uninstall/install how was that performed?  Through the Polisy NS store page?  When you say "moved" did you copy the NS's from the rPi to the Polisy or something?

Uninstall/install was via the NS store page.  The move was done using the backup restore polyglot feature. 

https://wiki.universal-devices.com/index.php?title=Polisy:User_Guide#Backup_and_Restore_Polyglot

Link to comment
Share on other sites

3 minutes ago, kemac said:

Uninstall/install was via the NS store page.  The move was done using the backup restore polyglot feature. 

https://wiki.universal-devices.com/index.php?title=Polisy:User_Guide#Backup_and_Restore_Polyglot

I'm thinking the "restore" part is not running the install properly. 

If you're still getting the error about the module can you login to the Polisy and go to the nodeserver directory and run the install.sh script and copy the output and post it.

Link to comment
Share on other sites

Some further info/details

cd /var/polyglot/nodeservers/AmbientWeather

sudo -u polyglot bash install.sh

Each line is a separate command. (in case you weren't aware).  You will be prompted for the admin user's password from the sudo command.

Link to comment
Share on other sites

14 minutes ago, simplextech said:

I'm thinking the "restore" part is not running the install properly. 

If you're still getting the error about the module can you login to the Polisy and go to the nodeserver directory and run the install.sh script and copy the output and post it.

I can send you my backup file if useful?

 

This was in my system log.

 

2019-12-27 13:38:53 [polyglot] info: AmbientWeather(6): NodeServer Disconnected.
2019-12-27 13:38:57 [polyglot] error: NSChild: Install failed - Non-zero exit code: 1
2019-12-27 13:38:57 [polyglot] error: NSChild: AmbientWeather cloneRepo: Error: runInstallProcess: undefined
2019-12-27 13:38:57 [polyglot] error: Error: runInstallProcess: undefined
    at runInstallProcess (/snapshot/polyglot-v2/lib/modules/children.js:45:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
2019-12-27 13:38:57 [polyglot] error: NSResponse: Success: false - cloneRepo: Error: runInstallProcess: undefined
2019-12-27 13:39:00 [polyglot] info: Hue(1): Processing command: status
2019-12-27 13:39:00 [polyglot] info: Hue(1): n001_huegrp3 GV1 set sucessfully to 0.2998 : UOM 56
2019-12-27 13:39:00 [polyglot] info: Hue(1): Processing command: status
2019-12-27 13:39:00 [polyglot] info: Hue(1): n001_huegrp3 GV2 set sucessfully to 0.6008 : UOM 56
2019-12-27 13:39:39 [polyglot] info: HarmonyHub(3): Processing command: command
2019-12-27 13:39:39 [polyglot] info: HarmonyHub(3): n003_harmonyctrl :: DOF sent sucessfully
2019-12-27 13:39:44 [polyglot] info: AmbientPoly(5): Processing command: status

 

Here is the output you requested (Thank you for the extra help!)

Requirement already satisfied: polyinterface>=2.0.0 in /var/polyglot/.local/lib/                                                                                                                                                             python3.7/site-packages (from -r requirements.txt (line 1)) (2.0.34)
Collecting aiohttp (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/c2/f7/f0ad3dbace4762fef5d                                                                                                                                                             80aa4124b41bf218e4c4dd6d387a86cede707d9a4/aiohttp-3.6.2-py3-none-any.whl
Collecting aioambient>=0.1.3 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/0d/78/e38d7248013a0e35fb5                                                                                                                                                             9a56fe51d8726250cadaf3d2953dd4ebe85f326f9/aioambient-1.0.2-py3-none-any.whl
Requirement already satisfied: requests in /usr/local/lib/python3.7/site-package                                                                                                                                                             s (from -r requirements.txt (line 4)) (2.22.0)
Requirement already satisfied: paho-mqtt in /var/polyglot/.local/lib/python3.7/s                                                                                                                                                             ite-packages (from polyinterface>=2.0.0->-r requirements.txt (line 1)) (1.5.0)
Requirement already satisfied: python-dotenv in /var/polyglot/.local/lib/python3                                                                                                                                                             .7/site-packages (from polyinterface>=2.0.0->-r requirements.txt (line 1)) (0.10                                                                                                                                                             .3)
Requirement already satisfied: markdown2 in /var/polyglot/.local/lib/python3.7/s                                                                                                                                                             ite-packages (from polyinterface>=2.0.0->-r requirements.txt (line 1)) (2.3.8)
Requirement already satisfied: netifaces in /usr/local/lib/python3.7/site-packag                                                                                                                                                             es (from polyinterface>=2.0.0->-r requirements.txt (line 1)) (0.10.9)
Collecting attrs>=17.3.0 (from aiohttp->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a7630                                                                                                                                                             66401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Requirement already satisfied: chardet<4.0,>=2.0 in /usr/local/lib/python3.7/sit                                                                                                                                                             e-packages (from aiohttp->-r requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /var/polyglot/.local/l                                                                                                                                                             ib/python3.7/site-packages (from aiohttp->-r requirements.txt (line 2)) (3.0.1)
Collecting yarl<2.0,>=1.0 (from aiohttp->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/d6/67/6e2507586eb1cfa6d55                                                                                                                                                             540845b0cd05b4b77c414f6bca8b00b45483b976e/yarl-1.4.2.tar.gz
Collecting multidict<5.0,>=4.5 (from aiohttp->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/ec/1b/a117d6cb4403f2b64633606e3767f65fa8897b7db6efe14391c7b96cf2f6/multidict-4.7.2.tar.gz
Collecting websockets<9.0,>=8.1 (from aioambient>=0.1.3->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/e9/2b/cf738670bb96eb25cb2caf5294e38a9dc3891a6bcd8e3a51770dbc517c65/websockets-8.1.tar.gz
Collecting python-socketio==4.4.0 (from aioambient>=0.1.3->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/11/e0/71c90fbfc534108d0869ff5f92c16e4bc9b1347439b9022e815c03ff4193/python_socketio-4.4.0-py2.py3-none-any.whl
Collecting python-engineio==3.10.0 (from aioambient>=0.1.3->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/9b/fb/843f043988306d12f27ae62a82ce26edc7513580e5e089b4911326879f7e/python_engineio-3.10.0-py2.py3-none-any.whl
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (1.25.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (2019.9.11)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.7/site-packages (from python-socketio==4.4.0->aioambient>=0.1.3->-r requirements.txt (line 3)) (1.12.0)
Installing collected packages: attrs, multidict, yarl, aiohttp, websockets, python-engineio, python-socketio, aioambient
  Running setup.py install for multidict ... error
    ERROR: Complete output from command /usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-q9cripz8/multidict/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j2x_7gqx/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    ERROR: **********************
    * Accellerated build *
    **********************
    running install
    running build
    running build_py
    creating build
    creating build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7
    creating build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/__init__.py -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/_multidict_py.py -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/_abc.py -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/_compat.py -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/_multidict_base.py -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    running egg_info
    writing multidict.egg-info/PKG-INFO
    writing dependency_links to multidict.egg-info/dependency_links.txt
    writing top-level names to multidict.egg-info/top_level.txt
    reading manifest file 'multidict.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching 'multidict/_multidict.html'
    warning: no previously-included files found matching 'multidict/*.so'
    warning: no previously-included files found matching 'multidict/*.pyd'
    warning: no previously-included files found matching 'multidict/*.pyd'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'multidict.egg-info/SOURCES.txt'
    copying multidict/__init__.pyi -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/_multidict.c -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    copying multidict/py.typed -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    creating build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/defs.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/dict.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/istr.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/iter.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/pair_list.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    copying multidict/_multilib/views.h -> build/lib.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multilib
    running build_ext
    building 'multidict._multidict' extension
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.7m -c multidict/_multidict.c -o build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    unable to execute 'cc': No such file or directory
    error: command 'cc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-q9cripz8/multidict/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j2x_7gqx/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-q9cripz8/multidict/
[admin@polisy /var/polyglot/nodeservers/AmbientWeather]$

 

Link to comment
Share on other sites

 building 'multidict._multidict' extension
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.7m -c multidict/_multidict.c -o build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    unable to execute 'cc': No such file or directory
    error: command 'cc' failed with exit status 1

It's trying to compile the multidict python module that isn't available on Polisy.  I'm taking @Michel Kohanimso he's aware of this and the module can be added to the Polisy image. 

The aiohttp module that is having the issue is used for the websocket interface for getting weather data.  There's a fallback mechanism in place that polls the weather information every 2 minutes by default.  Does the Ambient Weather NS not start at all?  If it doesn't then I will look into making the websocket optional to avoid this in future issues.  I've been contemplating removing the websocket as it has it's own "issues" from Ambient Weather.

Link to comment
Share on other sites

5 minutes ago, simplextech said:

 building 'multidict._multidict' extension
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7
    creating build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict
    cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.7m -c multidict/_multidict.c -o build/temp.freebsd-12.1-RELEASE-p1-amd64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    unable to execute 'cc': No such file or directory
    error: command 'cc' failed with exit status 1

It's trying to compile the multidict python module that isn't available on Polisy.  I'm taking @Michel Kohanimso he's aware of this and the module can be added to the Polisy image. 

The aiohttp module that is having the issue is used for the websocket interface for getting weather data.  There's a fallback mechanism in place that polls the weather information every 2 minutes by default.  Does the Ambient Weather NS not start at all?  If it doesn't then I will look into making the websocket optional to avoid this in future issues.  I've been contemplating removing the websocket as it has it's own "issues" from Ambient Weather.

The Ambient Weather NS does not start at all.  Thanks for investigating.

Link to comment
Share on other sites

1 minute ago, kemac said:

The Ambient Weather NS does not start at all.  Thanks for investigating.

I made changes to check for the module and if it's not loading to fall back to polling only.  The change will hit the store in... 30 minutes?  version 0.1.27.

Link to comment
Share on other sites

1 hour ago, simplextech said:

I made changes to check for the module and if it's not loading to fall back to polling only.  The change will hit the store in... 30 minutes?  version 0.1.27.

Getting closer, did an uninstall/install - did see an installation error pop up temporarily however the NS started and shows connected, however the Admin console only shows the main controller "Ambient Weather" node.

 

The NS log is filled with these unexpected dis-connection errors.

2019-12-27 14:57:19,155 [MainThread] [INFO ] Received Config from STDIN.
2019-12-27 14:57:19,156 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting...
2019-12-27 14:57:19,282 [MainThread] [DEBUG] gws: {'default': {2: ('192.168.1.1', 'igb0')}, 2: [('192.168.1.1', 'igb0', True)]}
2019-12-27 14:57:19,283 [MainThread] [DEBUG] gw: default=('192.168.1.1', 'igb0')
2019-12-27 14:57:19,283 [MainThread] [DEBUG] ifad: igb0=[{'addr': '192.168.1.8', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}]
2019-12-27 14:57:19,284 [MainThread] [INFO ] Connect: Network Interface: {'addr': '192.168.1.8', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2019-12-27 14:57:19,286 [Interface ] [INFO ] Connecting to MQTT... localhost:1883
2019-12-27 14:57:19,331 [Interface ] [INFO ] MQTT Connected with result code 0 (Success)
2019-12-27 14:57:19,333 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/6 -  MID: 1 Result: 0
2019-12-27 14:57:19,334 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2019-12-27 14:57:19,335 [Interface ] [INFO ] Sent Connected message to Polyglot
2019-12-27 14:57:19,447 [Interface ] [INFO ] Adding node Ambient Weather(controller)
2019-12-27 14:57:19,450 [Interface ] [INFO ] Waiting on Controller node to be added.......
2019-12-27 14:57:19,453 [NodeServer] [INFO ] Started AmbientWeather
2019-12-27 14:57:19,454 [NodeServer] [INFO ] Sending customParams to Polyglot.
2019-12-27 14:57:19,774 [Interface ] [INFO ] Adding node Ambient Weather(controller)
2019-12-27 14:57:19,776 [Interface ] [INFO ] Waiting on Controller node to be added.......
2019-12-27 14:57:20,433 [Interface ] [INFO ] MQTT Unexpected disconnection. Trying reconnect.
2019-12-27 14:57:21,543 [Interface ] [INFO ] MQTT Connected with result code 0 (Success)
2019-12-27 14:57:21,545 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/6 -  MID: 8 Result: 0
2019-12-27 14:57:21,546 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 9 Result: 0
2019-12-27 14:57:21,547 [Interface ] [INFO ] Sent Connected message to Polyglot
2019-12-27 14:57:22,457 [NodeServer] [INFO ] Sending customParams to Polyglot.
2019-12-27 14:57:22,631 [Interface ] [INFO ] MQTT Unexpected disconnection. Trying reconnect.
2019-12-27 14:57:23,771 [Interface ] [INFO ] MQTT Connected with result code 0 (Success)
2019-12-27 14:57:23,774 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/6 -  MID: 12 Result: 0
2019-12-27 14:57:23,774 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 13 Result: 0
2019-12-27 14:57:23,776 [Interface ] [INFO ] Sent Connected message to Polyglot
2019-12-27 14:57:24,887 [Interface ] [INFO ] MQTT Unexpected disconnection. Trying reconnect.

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...