Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forecastNum IndexError: list index out of range #51

Open
jimboca opened this issue Feb 5, 2020 · 1 comment
Open

forecastNum IndexError: list index out of range #51

jimboca opened this issue Feb 5, 2020 · 1 comment

Comments

@jimboca
Copy link
Collaborator

jimboca commented Feb 5, 2020

---------- Forwarded message ---------
From: Michel Kohanim michel@universal-devices.com
Date: Wed, Feb 5, 2020 at 2:38 PM
Subject: ecobee exceptions
To: Jim Searle jimsearle@gmail.com

Hi Jim,  

Any ideas

2020-02-05 22:32:57,436 [Controller] [INFO ] Updating Driver rs_mxsf - ST: 78.1 uom: 17    "isCoolOff": false,
2020-02-05 22:32:57,438 [Controller] [ERROR] Exception in thread Controller:
  File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner
  File "/usr/local/lib/python3.7/threading.py", line 865, in run
    self.run()
  File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 791, in _parseInput
  File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 823, in _handleResult
    self.nodes[result['address']].start()
    self._target(*self._args, **self._kwargs)
    "isHeatOff": false,
Traceback (most recent call last):
    self.update(self.revData, self.fullData)
    self._update()
  File "/app/nodeserver/node_types.py", line 221, in start
  File "/app/nodeserver/node_types.py", line 285, in update
    self._handleResult(input[key])
    self.check_weather()
    self.weather.update(self.tstat['weather'])
  File "/app/nodeserver/node_types.py", line 395, in _update
  File "/app/nodeserver/node_types.py", line 248, in check_weather
    currentWeather = weather['forecasts'][self.forecastNum]
  File "/app/nodeserver/node_types.py", line 884, in update
IndexError: list index out of range

With kind regards, 
****************************** 
Michel Kohanim  CEO   (p) 818.631.0333  http://www.universal-devices.com ****************************** 

jimboca added a commit that referenced this issue Feb 6, 2020
jimboca added a commit that referenced this issue Feb 6, 2020
jimboca added a commit that referenced this issue Feb 6, 2020
@jimboca
Copy link
Collaborator Author

jimboca commented Feb 7, 2020

Looks like this is related to not having any weather data, need to just skip the weather nodes when we don't have that info? But need to debug further...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant