Tilt not communicating with Fermentrack

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

jeeppilot

Well-Known Member
Joined
Jan 5, 2012
Messages
302
Reaction score
37
Location
Memphis
Sorry if this has already been posted, I couldn’t find much but it was late last night. Last brew my Tilt was working normally with Fermentrack. Threw a beer in last night and nothing. The temp and gravity from the Tilt seemed stuck in the final readings from the last brew. So I:

- Made sure I had stopped logging and finalized the previous brew log
- Checked the battery in the Tilt
- Did a cold reboot of my Raspi
- Unattached the device from my Arduino in the software settings

Since none of that worked, I uninstalled the device, the reinitialized it. Now it has no readings. The “Signal Strength” says 0. When I use the Tilt app on my phone, it works as expected. I’m out of ideas. Any help is greatly appreciated!
 
When did you first install Fermentrack, and when did you last upgrade the software?

There was a period of time during which some of the components were being upgraded that meant that some of the bluetooth libraries stopped working.
 
When did you first install Fermentrack, and when did you last upgrade the software?

There was a period of time during which some of the components were being upgraded that meant that some of the bluetooth libraries stopped working.

First install was a couple years ago and most recent update was a month or two ago? When I try to update from Github it says no update available and the local copy lists Feb 17 2020 as the last commit date and Master branch.
 
First install was a couple years ago and most recent update was a month or two ago? When I try to update from Github it says no update available and the local copy lists Feb 17 2020 as the last commit date and Master branch.


I believe this is currently broke with latest beta. Hasn’t worked for me since i did the feb 17 update.
 
For some reason, my tiltbridge can no longer connect to fermtrack. I can add it to fermtrack successfully, but it remains blank. My tiltbridge is otherwise working fine. I just updated it today to beta v0.2 rev1 OLED wtih brewflasher.

Relatively certain I'm having the same issue. I'll keep poking @Thorrak till he gets tired of hearing me and fixes it. :)

In the meantime, some porn:
View attachment 674248
https://www.homebrewtalk.com/forum/...wifi-device-for-tilt-hydrometer.664368/page-7


There's a bug I introduced in the beta firmware which I didn't realize had made its way into the wild. Fixing it isn't going to be the easiest thing though, as we're officially out of space. Let me poke at this for a bit...



https://www.homebrewtalk.com/forum/...-for-raspberry-pi.649303/page-30#post-8823384
 
I believe this is currently broke with latest beta. Hasn’t worked for me since i did the feb 17 update.

As I recall this last update was between my last batch and this so that would explain the sudden not working. I’ll probably just wait until it gets resolved as I can still monitor it via the Tilt app and I don’t have the skills or time with the kids at home to try and figure out my own temporary fix.
 
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:

  1. Click the "Gear" icon in the upper right hand corner of the screen
  2. Click "Update from GitHub"
  3. Click the button to upgrade

Once you've done that (and it finishes running) the tests should be available. To find them:

  1. Select the Tilt you have set up and go to its dashboard
  2. Click your device's name in the menu bar at the top and select "Manage Sensor"
  3. 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.
 
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:

  1. Click the "Gear" icon in the upper right hand corner of the screen
  2. Click "Update from GitHub"
  3. Click the button to upgrade

Once you've done that (and it finishes running) the tests should be available. To find them:

  1. Select the Tilt you have set up and go to its dashboard
  2. Click your device's name in the menu bar at the top and select "Manage Sensor"
  3. 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 - will this be sufficient? Not really sure what I'm looking for. I have the traceback results page saved if you need the full thing. Let me know how best to get it you if needed. Thanks as always for your help and hard work!

IMG_2416.jpg
 
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:

  1. Click the "Gear" icon in the upper right hand corner of the screen
  2. Click "Update from GitHub"
  3. Click the button to upgrade

Once you've done that (and it finishes running) the tests should be available. To find them:

  1. Select the Tilt you have set up and go to its dashboard
  2. Click your device's name in the menu bar at the top and select "Manage Sensor"
  3. 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)
 
@Thorrak - will this be sufficient? Not really sure what I'm looking for. I have the traceback results page saved if you need the full thing. Let me know how best to get it you if needed. Thanks as always for your help and hard work!

View attachment 675050

That's me missing a line of code in hotfix I did for the test. Sorry about that.

Try updating again (I just pushed out a fix for that error) and re-running the test.
 
There you go. You're missing libbluetooth-dev (and PyBluez and aioblescan as a result).

It worked! That shows your problem. :)

You need to install libbluetooth-dev in order to get PyBluez or aioblescan to install. I've got instructions for fixing the missing system packages here - unfortunately there's not a way to do this entirely from within the Fermentrack user interface.
 
There you go. You're missing libbluetooth-dev (and PyBluez and aioblescan as a result).


It worked! That shows your problem. :)

You need to install libbluetooth-dev in order to get PyBluez or aioblescan to install. I've got instructions for fixing the missing system packages here - unfortunately there's not a way to do this entirely from within the Fermentrack user interface.

Awesome! Thank you! I’ll work on that this evening and let you know if it works or if I need anything else.
 
Awesome! Thank you! I’ll work on that this evening and let you know if it works or if I need anything else.
Sounds good!

Once you're done fixing the system packages, you'll still have the issue of the missing Python packages. Although this gets automatically resolved every time you update from GitHub, I just added a button in Fermentrack that will allow you to manually trigger a refresh of the Python packages to prevent needing to do that part via the shell unnecessarily.

...of course, in your case, to see that button you'd have to update from GitHub which means that you'd end up resolving the issue anyways, but that's not the point!
 
Sounds good!

Once you're done fixing the system packages, you'll still have the issue of the missing Python packages. Although this gets automatically resolved every time you update from GitHub, I just added a button in Fermentrack that will allow you to manually trigger a refresh of the Python packages to prevent needing to do that part via the shell unnecessarily.

...of course, in your case, to see that button you'd have to update from GitHub which means that you'd end up resolving the issue anyways, but that's not the point!

All went very smoothly and exactly as you laid out in the instructions and my Tilt is communicating with Fermentrack again! Curiously, the signal strength still shows 0, but it is reading temperature and gravity again. Thank you!

If I may one last quick question while I have your ear.... on my graphs, the Tilt gravity and temp graphs according to the color I have selected in the Django admin panel, but the legend next to the graph shows different colors. Is this a known issue or did I dork something else up?
 
If I may one last quick question while I have your ear.... on my graphs, the Tilt gravity and temp graphs according to the color I have selected in the Django admin panel, but the legend next to the graph shows different colors. Is this a known issue or did I dork something else up?

Uhhhhhhh - do you have a screenshot? I'd go with neither. You may have found a bug!
 
F2114F32-5937-4DB8-BC16-11B0EE1AFAC7.jpeg

The Gravity Key color doesn’t match. The Key Color should be Orange like my graph line depicts. Now, if I navigate to the Gravity Sensor panel, the line color and the key color match.
 
@Thorrak - This is my full dashboard. The purple and green lines show correctly with the RGB color setting I selected, but the key colors seem to be the same as the "fridge setting" and "room temp" colors.

3A8F2F7B-7A81-440B-94FB-569B871C454C.jpeg

Now, if I go to the Tilt dashboard, I get the gravity color correct on the graph and key, but the temperature does not match the graph or the key.

EA437C15-58D2-4BF8-A7C1-051EB72FCAE8_4_5005_c.jpeg
 
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:

  1. Click the "Gear" icon in the upper right hand corner of the screen
  2. Click "Update from GitHub"
  3. Click the button to upgrade

Once you've done that (and it finishes running) the tests should be available. To find them:

  1. Select the Tilt you have set up and go to its dashboard
  2. Click your device's name in the menu bar at the top and select "Manage Sensor"
  3. 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.

i updated fermentrack. I rebooted the pi it is running on. Deleted my tilt and readded tiltbridge and the tilt. I do not see the “troubleshoot tilt connection”. I’m not sure what I’m doing wrong. I’ll follow this post with some screen caps.
 
i updated fermentrack. I rebooted the pi it is running on. Deleted my tilt and readded tiltbridge and the tilt. I do not see the “troubleshoot tilt connection”. I’m not sure what I’m doing wrong. I’ll follow this post with some screen caps.
i updated fermentrack. I rebooted the pi it is running on. Deleted my tilt and readded tiltbridge and the tilt. I do not see the “troubleshoot tilt connection”. I’m not sure what I’m doing wrong. I’ll follow this post with some screen caps.

https://imgur.com/gallery/z8wQxqr

when i try to go to http://192.268.50.XX/tiltbridge I get:
Code:
{
    "message": "Malformed JSON - Unable to parse!",
    "status": "failed"
}
 
Ok, it looks like the troubleshoot tilt connection is only displayed on PC browser (not
Mobile).
Here are the results of the troubleshooting for the Tiltbridge and Bluetooth tilts in fermentrack. I currently have them all sitting within 5 ft of each other in same room.

edit: i just finished a brew. The Bluetooth connection between fermentrack and tilt was working yesterday.
 

Attachments

  • 701A1B04-41C9-4F3C-9D9E-B3D57E36D0C6.jpeg
    701A1B04-41C9-4F3C-9D9E-B3D57E36D0C6.jpeg
    613.1 KB · Views: 16
  • 79667C70-8614-4F59-A378-831B6DBBDB5D.jpeg
    79667C70-8614-4F59-A378-831B6DBBDB5D.jpeg
    627.5 KB · Views: 16
  • 61BFDFCA-9B06-48E9-A8D4-F03D72310E9D.jpeg
    61BFDFCA-9B06-48E9-A8D4-F03D72310E9D.jpeg
    351.6 KB · Views: 13
  • A28B529E-BE41-46D1-8926-2984126293E4.png
    A28B529E-BE41-46D1-8926-2984126293E4.png
    266.5 KB · Views: 12
  • 8FFDD42C-2367-4D00-BF3F-953D0B77F85F.png
    8FFDD42C-2367-4D00-BF3F-953D0B77F85F.png
    386.1 KB · Views: 13
  • ECEAE40E-F507-45F7-A7F2-6BCF37745B5B.png
    ECEAE40E-F507-45F7-A7F2-6BCF37745B5B.png
    343.8 KB · Views: 9
Last edited:

Ok, it looks like the troubleshoot tilt connection is only displayed on PC browser (not
Mobile).

You've currently got your Tilt set to connect via a TiltBridge - not via Bluetooth. The connection debugging only works for Tilts that connect to the RPi directly via Bluetooth, and as such the option is hidden if your Tilt is set with a TiltBridge connection type.


when i try to go to http://192.268.50.XX/tiltbridge I get:
Code:
{
    "message": "Malformed JSON - Unable to parse!",
    "status": "failed"
}

That should always be the case. You aren't intended to access that end-point directly - that URL is only intended to be used by the TiltBridge to report gravity information.


i updated fermentrack. I rebooted the pi it is running on. Deleted my tilt and readded tiltbridge and the tilt. I do not see the “troubleshoot tilt connection”. I’m not sure what I’m doing wrong. I’ll follow this post with some screen caps.

For what it's worth, the screenshots you posted of the new Bluetooth Tilt debug screen look like you have everything set up environment-wise at least! You SHOULD be able to set that Tilt up via Bluetooth (not TiltBridge) and have it work. If not, then we've got another issue to try and debug.
 
You've currently got your Tilt set to connect via a TiltBridge - not via Bluetooth. The connection debugging only works for Tilts that connect to the RPi directly via Bluetooth, and as such the option is hidden if your Tilt is set with a TiltBridge connection type.




That should always be the case. You aren't intended to access that end-point directly - that URL is only intended to be used by the TiltBridge to report gravity information.




For what it's worth, the screenshots you posted of the new Bluetooth Tilt debug screen look like you have everything set up environment-wise at least! You SHOULD be able to set that Tilt up via Bluetooth (not TiltBridge) and have it work. If not, then we've got another issue to try and debug.

Does appear to connect via bluetooth or tiltbridge. I can connect to the tilt hydrometer with iOS app and tiltbridge. Just not fermentrack.

edit:

i removed the bluetooth and tiltbridge sensors and re-added just bluetooth tilt. It is now working.
 
Last edited:

Latest posts

Back
Top