When going to the zones page in settings, (https://alarmdecoder/settings/zones/) I am getting the error below.
Alarmdecoder is installed using the preconfigured pi image. The keypad is able to interact with the panel. The error starts as soon as I scan the panel for zones. Once I do that, it completes successfully and lists all the zones but next time I try to go to the settings zone page it gives the below error. The rest of the webapp is still working fine.
What could be causing this? Also, is there any way to reset the webapp so I don't have to reimage the pi?
THANK YOU IN ADVANCE!!!
ValueError
ValueError: invalid literal for int() with base 10: '1\x03'
Traceback (most recent call last)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 128, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/flask_login.py", line 792, in decorated_view
return func(*args, **kwargs)
File "/opt/alarmdecoder-webapp/ad2web/decorators.py", line 16, in decorated_function
return f(*args, **kwargs)
File "/opt/alarmdecoder-webapp/ad2web/zones/views.py", line 28, in index
return render_template('zones/index.html', zones=zones, active="zones", ssl=use_ssl, panel_mode=panel_mode)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/alarmdecoder-webapp/ad2web/templates/zones/index.html", line 3, in top-level template code
{% extends 'settings/layout.html' %}
File "/opt/alarmdecoder-webapp/ad2web/templates/settings/layout.html", line 19, in top-level template code
{% set tabs = [
File "/opt/alarmdecoder-webapp/ad2web/templates/layouts/base.html", line 104, in top-level template code
{% block container %}
File "/opt/alarmdecoder-webapp/ad2web/templates/layouts/base.html", line 125, in block "container"
{% block body %}
File "/opt/alarmdecoder-webapp/ad2web/templates/zones/index.html", line 30, in block "body"
<td><a href="{{ url_for('zones.edit', id=zone.zone_id) }}">{{ zone.zone_id }}</a></td>
File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 305, in url_for
force_external=external)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 1756, in build
rv = self._partial_build(endpoint, values, method, append_unknown)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 1671, in _partial_build
append_unknown)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 1679, in _partial_build
rv = rule.build(values, append_unknown)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 798, in build
add(self._converters[data].to_url(values[data]))
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 1016, in to_url
value = self.num_convert(value)
ValueError: invalid literal for int() with base 10: '1\x03'