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

Minor solid gauge isssue #1130

Closed
SingularityJ opened this issue Jan 1, 2022 · 2 comments
Closed

Minor solid gauge isssue #1130

SingularityJ opened this issue Jan 1, 2022 · 2 comments

Comments

@SingularityJ
Copy link

Minor bug, when adding the solid gauge widget. if 5 (no issue modifying after dependency install) stops is selected before the dependencies are installed, it will produce the following:
(no issue modifying after dependency install)

Error 500: Internal Server Error
Something bad happened but it's probably not your fault. Letting the developers know about these issues is crucial to supporting Mycodo. Please submit a new issue on GitHub with the following diagnostic information and error traceback (copy the entire traceback):

Version: 8.12.9
Database: 0187ea22dc4b
Model: Raspberry Pi 4 Model B Rev 1.4

Release:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Firmware:
b''

Error (Full Traceback):

Traceback (most recent call last):
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask_restx/api.py", line 672, in error_router
return original_handler(e)
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/pi/Mycodo/env/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view
return func(*args, **kwargs)
File "/home/pi/Mycodo/mycodo/mycodo_flask/routes_dashboard.py", line 145, in page_dashboard
unmet_dependencies = utils_dashboard.widget_add(form_base, request.form)
File "/home/pi/Mycodo/mycodo/mycodo_flask/utils/utils_dashboard.py", line 230, in widget_add
error, new_widget = dict_widgets[widget_name]['execute_at_creation'](
File "/home/pi/Mycodo/mycodo/widgets/widget_gauge_solid.py", line 51, in execute_at_creation
color = color_list[i + 1]
IndexError: list index out of range

@kizniche
Copy link
Owner

Thanks for the bug report. I'll check it out.

@kizniche
Copy link
Owner

This issue has been mentioned on Radical DIY Forum. There might be relevant details there:

https://forum.radicaldiy.com/t/mycodo-v8-13-0-release/820/1

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

No branches or pull requests

2 participants