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

Problem when Netatmo relay can't reach internet. #1

Open
bigfatpaulyj opened this issue Dec 6, 2023 · 0 comments
Open

Problem when Netatmo relay can't reach internet. #1

bigfatpaulyj opened this issue Dec 6, 2023 · 0 comments

Comments

@bigfatpaulyj
Copy link
Owner

Script crashes with:

2023-12-06 15:15:34 INFO Got homestatus response(200): {"status":"ok","time_server":1701875734,"body":{"home":{"id":"???"},"errors":[
{"code":6,"id":"???"},{"code":6,"id":"???"}]}} ???
2023-12-06 15:15:34 ERROR Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./app.py", line 170, in handleAdminPageRequest
'netatmo': getNetatmoTemp(conn, config),
File "./app.py", line 58, in getNetatmoTemp
return getNetatmoTemp(conn, config, True)
File "./app.py", line 48, in getNetatmoTemp
for roomData in jsonPayload['body']['home']['rooms']:
KeyError: 'rooms'

App.py needs to properly handle error codes returned by Netatmo api.

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