I spent this morning writing some tests to hopefully figure out what is going on. When you have some time, can you log into your Fermentrack installation and update to the latest dev version? If you don't see an update prompt, do the following:
- Click the "Gear" icon in the upper right hand corner of the screen
- Click "Update from GitHub"
- Click the button to upgrade
Once you've done that (and it finishes running) the tests should be available. To find them:
- Select the Tilt you have set up and go to its dashboard
- Click your device's name in the menu bar at the top and select "Manage Sensor"
- Most of the way down the page, you'll see a header that reads "Troubleshoot Tilt Connection". Click the link in the text after that header to launch the tests
This should hopefully help figure out what exactly is going on. Let me know which of those tests (if any) have failed, and we'll go from there.
@Thorrak - a little more:
Environment:
Request Method: GET
Request URL:
http://kanowitzkastle.ddns.net/gravity/tilt/test/
Django Version: 1.11.29
Python Version: 3.5.3
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.AppConfig',
'firmware_flash.apps.AppConfig',
'gravity.apps.GravityAppConfig',
'external_push.apps.AppConfig',
'constance',
'constance.backends.database',
'huey.contrib.djhuey',
'raven.contrib.django.raven_compat']
Installed Middleware:
['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware',
'raven.contrib.django.middleware.SentryMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/fermentrack/venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/home/fermentrack/fermentrack/app/decorators.py" in _wrapped_view
27. return view_func(request, *args, **kwargs)
File "/home/fermentrack/fermentrack/gravity/views_tilt.py" in gravity_tilt_test
517. has_packaging, has_python_packages, python_test_results = tilt_tests.check_python_packages()
Exception Type: ValueError at /gravity/tilt/test/
Exception Value: not enough values to unpack (expected 3, got 2)