Native ESP8266 BrewPi Firmware - WiFi BrewPi, no Arduino needed!

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.
J/k on above updates. I'm now 95% sure that the issue with the probes disappearing from Fermentrack is the probes themselves. I have completely taken the entire setup multiple times and can't see anything wrong. ESP8266 boots up just fine, cooling and heating pins are detected in Fermentrack, relay is fine, soldering on the 3.5mm female panel mount is fine, soldering of the DS18B20s to the 3.5mm male jack is fine.

So two questions for folks: recommendations for DS18B20s that work well for you? And secondly, for folks connecting your ESP via WiFi, what are you using to power it? Finally getting my 3D printed case for the Arduino version this week, and don't want to buy a second Pi if I don't have to.
 
J/k on above updates. I'm now 95% sure that the issue with the probes disappearing from Fermentrack is the probes themselves. I have completely taken the entire setup multiple times and can't see anything wrong. ESP8266 boots up just fine, cooling and heating pins are detected in Fermentrack, relay is fine, soldering on the 3.5mm female panel mount is fine, soldering of the DS18B20s to the 3.5mm male jack is fine.

So two questions for folks: recommendations for DS18B20s that work well for you? And secondly, for folks connecting your ESP via WiFi, what are you using to power it? Finally getting my 3D printed case for the Arduino version this week, and don't want to buy a second Pi if I don't have to.

I don’t have any suggestions for the temp sensors unfortunately - they’re unfortunately a bit of a crap shoot in terms of what you get. I’ve bought ones on Amazon that I’ve had luck with, but it’s impossible to know who the seller (or manufacturer) is for any of them these days.

For power, I use these:
https://a.aliexpress.com/_d6xS034
 
Anyone else having issues since the latest update? I was notified in the main dashboard that there was an update today so I ran it. Now all I get is a 504 - Gateway Time-out when I try to access my Fermentrack. The raspi is still pinging successfully, I've tried rebooting it but not sure what else to try if I can't access the GUI.
 
Anyone else having issues since the latest update? I was notified in the main dashboard that there was an update today so I ran it. Now all I get is a 504 - Gateway Time-out when I try to access my Fermentrack. The raspi is still pinging successfully, I've tried rebooting it but not sure what else to try if I can't access the GUI.

There's at least two possibilities for what could be happening. Rather than trying to figure out which is which, let's just address them both.

Log into your Raspberry Pi as the pi user using SSH, and run the following command:
curl -L "https://raw.githubusercontent.com/thorrak/fermentrack-tools/master/fix-environment.sh" | sudo bash

This should take care of all your problems. Let me know if it does - I ran this on my local Pi and it worked, but it also was working beforehand so I can't guarantee the script fixes everything.

WARNING - This command is only designed for Fermentrack installations that were installed using the original install script into the default locations and with the default fermentrack user. I'm guessing this is 95%+ of users, but if you've changed the install paths/installed on another OS/what have you, the script probably won't work and could possibly delete something.
 
Thorrak, that did the trick! I'm up and running now. I believe I know what happened. I was basically out of HD space, so I assume the update ran out of space when upgrading which caused this. I cleared up some space, ran your command and I'm back up. Thanks so much!
 
I have same problem with 504 error after upgrading last night.

I ran that command, but I'm still coming up with a 504. Any ideas?
 
Broke my install aswell, did the above command, did not fix the issue. Have done an apt-get update/upgrade, and will retry the above command.
 
I get this as the only error when running the above command.

curl -L "https://raw.githubusercontent.com/thorrak/fermentrack-tools/master/fix-environment.sh" | sudo bash


Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

ERROR: Could not find a version that satisfies the requirement Django<3.1,>=3.0.5 (from -r requirements.txt (line 1)) (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11, 1.5.12, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6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 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.2.10, 2.2.11, 2.2.12)

ERROR: No matching distribution found for Django<3.1,>=3.0.5 (from -r requirements.txt (line 1))

Everything else is ok. Circus relaunch ok according to the script.
 
Complete log from the cmd console during the update.

"""

pi@raspberrypi:~ $ curl -L "https://raw.githubusercontent.com/thorrak/fermentrack-tools/master/fix-environment.sh" | sudo bash

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 5342 100 5342 0 0 9874 0 --:--:-- --:--:-- --:--:-- 9892

::: Verifying free disk space...


::: Checking for Internet connection:

::: Internet connection Success!


::: Reinstalling dependencies using apt-get

::: apt is updated - Triggering install of all packages.

::: Apt-packages reinstalled successfully.


::: Making sure everything is owned by fermentrack


::: Enabling python to query bluetooth without being root

::: Switching to the Fermentrack user and doing all the other bits...

Stopping Circus

ok

Upgrading pip

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Requirement already up-to-date: pip in /home/fermentrack/venv/lib/python3.5/site-packages (20.0.2)

Fetching, resetting, and pulling from git...

Fetching origin

HEAD is now at f801053 Setting DJANGO_ALLOW_ASYNC_UNSAFE for calls from tilt_monitor_aio.py (Fixes #456)

Already up-to-date.

Re-installing Python packages from requirements.txt via pip3

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

ERROR: Could not find a version that satisfies the requirement Django<3.1,>=3.0.5 (from -r requirements.txt (line 1)) (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.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.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11, 2.1.12, 2.1.13, 2.1.14, 2.1.15, 2.2a1, 2.2b1, 2.2rc1, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.2.10, 2.2.11, 2.2.12)

ERROR: No matching distribution found for Django<3.1,>=3.0.5 (from -r requirements.txt (line 1))

Running manage.py migrate/fix_sqlite_for_django_2/collectstatic...

Traceback (most recent call last):

File "manage.py", line 25, in <module>

execute_from_command_line(sys.argv)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 308, in execute

settings.INSTALLED_APPS

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__

self._setup(name)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup

self._wrapped = Settings(settings_module)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 110, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)

File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "<frozen importlib._bootstrap>", line 986, in _gcd_import

File "<frozen importlib._bootstrap>", line 969, in _find_and_load

File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 673, in _load_unlocked

File "<frozen importlib._bootstrap_external>", line 673, in exec_module

File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed

File "/home/fermentrack/fermentrack/fermentrack_django/settings.py", line 257, in <module>

import sentry_sdk

ImportError: No module named 'sentry_sdk'

Traceback (most recent call last):

File "manage.py", line 25, in <module>

execute_from_command_line(sys.argv)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 308, in execute

settings.INSTALLED_APPS

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__

self._setup(name)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup

self._wrapped = Settings(settings_module)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 110, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)

File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "<frozen importlib._bootstrap>", line 986, in _gcd_import

File "<frozen importlib._bootstrap>", line 969, in _find_and_load

File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 673, in _load_unlocked

File "<frozen importlib._bootstrap_external>", line 673, in exec_module

File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed

File "/home/fermentrack/fermentrack/fermentrack_django/settings.py", line 257, in <module>

import sentry_sdk

ImportError: No module named 'sentry_sdk'

Traceback (most recent call last):

File "manage.py", line 25, in <module>

execute_from_command_line(sys.argv)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 308, in execute

settings.INSTALLED_APPS

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__

self._setup(name)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup

self._wrapped = Settings(settings_module)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 110, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)

File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "<frozen importlib._bootstrap>", line 986, in _gcd_import

File "<frozen importlib._bootstrap>", line 969, in _find_and_load

File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 673, in _load_unlocked

File "<frozen importlib._bootstrap_external>", line 673, in exec_module

File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed

File "/home/fermentrack/fermentrack/fermentrack_django/settings.py", line 257, in <module>

import sentry_sdk

ImportError: No module named 'sentry_sdk'

Relaunching circus...

ok

ok


Done! Exiting.

"""

504 page is the only thing who shows - something is broken
 
Stretch - Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l
That's why - Stretch doesn't have a recent enough version of Python.

This is a problem, as a bunch of people are probably still on Stretch. I'm working on a solution, but it may be this weekend before it's done. Hopefully sooner, though.
 
That's why - Stretch doesn't have a recent enough version of Python.

This is a problem, as a bunch of people are probably still on Stretch. I'm working on a solution, but it may be this weekend before it's done. Hopefully sooner, though.

Any way to revert? (reomove last update)
 
Any way to revert? (reomove last update)

Yes, but it's a bit of git wizardry. Login to your pi via SSH, then run:

sudo su fermentrack
source ~/venv/bin/activate
cd ~/fermentrack
circusctl stop
git reset --hard
git checkout 62c1bc975965c8755669398eee9821a9745c3a03
pip install --upgrade --no-cache-dir -r requirements.txt
circusctl start


NOTE - I do not guarantee anything with the above - I have not tested it!
 
Yes, but it's a bit of git wizardry. Login to your pi via SSH, then run:

sudo su fermentrack
source ~/venv/bin/activate
cd ~/fermentrack
circusctl stop
git reset --hard
git checkout 62c1bc975965c8755669398eee9821a9745c3a03
pip install --upgrade --no-cache-dir -r requirements.txt
circusctl start


NOTE - I do not guarantee anything with the above - I have not tested it!

All commands run perfect, but no luck getting the system up back running. I will make a clean install with Buster.
 
No idea - I've never heard of DietPi.

The generic answer, however, is that if it supports Python 3.6/3.7, it will support Fermentrack. You might not get all the features, though!
It`s a slim distro of raspbian, 400MB in total
 
Oh, by the way, this is my first time breaking Fermentrack, I have run the same install since Stretch came out, not had a single issue until yesterday and the update :)
 
pi@raspberry:~ $ curl -L install.fermentrack.com | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 123 100 123 0 0 330 0 --:--:-- --:--:-- --:--:-- 330
100 26 100 26 0 0 1 0 0:00:26 0:00:18 0:00:08 5
bash: line 1: 500:: command not found

Am I lost in space on this?
 
pi@raspberry:~ $ curl -L install.fermentrack.com | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 123 100 123 0 0 330 0 --:--:-- --:--:-- --:--:-- 330
100 26 100 26 0 0 1 0 0:00:26 0:00:18 0:00:08 5
bash: line 1: 500:: command not found

Am I lost in space on this?

You seem to be missing bash. Try running this first:

sudo apt-get install bash

I'll be curious as to other errors that you get. Fermentrack should install all the necessary prerequisites, but I may have missed some if they were installed naturally with Raspbian.

Bash and curl are probably the only two I won't be adding to the script. ;)
 
You seem to be missing bash. Try running this first:

sudo apt-get install bash

I'll be curious as to other errors that you get. Fermentrack should install all the necessary prerequisites, but I may have missed some if they were installed naturally with Raspbian.

Bash and curl are probably the only two I won't be adding to the script. ;)

Bash is already installed, 0 upgraded, 0 installed, 0 to remove and 0 not upgraded is the output
 
Bash is already installed, 0 upgraded, 0 installed, 0 to remove and 0 not upgraded is the output
Done a apt-get update/upgrade, rebooting, will try again.

EDIT:
Fxed my issue, up and running on Buster Distro
 
Last edited:
I also have the stretch issue and is now up running on Buster (First problem ever with Fermentrack - thank you for the good work :) ).

I can find and copy the old logfiles. Any way I can recover the fermentation profiles from the Stretch image?

The new image shows iSpindel temperatures in °F everything else correctly in °C - bug?
 
Last edited:
Ready to brew (ferment)... Thanks!
 

Attachments

  • IMG_7149.jpg
    IMG_7149.jpg
    688.3 KB · Views: 70
  • IMG_7150.jpg
    IMG_7150.jpg
    2.3 MB · Views: 73
  • IMG_7151.jpg
    IMG_7151.jpg
    1.3 MB · Views: 76
  • IMG_7152.jpg
    IMG_7152.jpg
    1.1 MB · Views: 74
  • IMG_7153.jpg
    IMG_7153.jpg
    687 KB · Views: 71
I currently run a few of Thorraks PCB (older RJ12 versions) with the standard LCD screens. I just got two new OLED (128x64). If I flash my ESP8266 with the https://github.com/vitotai/BrewPiLess/blob/master/bins/BrewPiLess.v4.0.thorrax.newui.4m2m.bin

Will I still be able to use my PCB now with the added features of OLED?

Cheers in Advance

BrewPiLess is a different project than this one so I can't say for sure, but it might -- depending on whether or not your OLED is 5v tolerant.

One of the main things that my PCBs do is level shift the 3v3 logic coming off the ESP8266 to 5V for the LCD2004 screens -- most of the OLED screens don't require that circuitry.
 
I also have the stretch issue and is now up running on Buster (First problem ever with Fermentrack - thank you for the good work :) ).

I can find and copy the old logfiles. Any way I can recover the fermentation profiles from the Stretch image?

The new image shows iSpindel temperatures in °F everything else correctly in °C - bug?

You should be able to just copy the sqlite database which would contain everything (including setup, log files, etc.). The file you would want to copy is db.sqlite3

For the iSpindel, do you have it configured (in Fermentrack) to report in F? That should just be a configuration option.
 
Great build! I like how organized and compact it is. What printer are you using? My homebuilt unit has trouble printing something so big without warping and unsticking from the heated bed.

I didn't design or print the box. I roughed out the design on paper and a buddy did the rest. He printed on Prusa Mini. There was some very minor lifting/warping. I wouldn't have noticed if he hadn't pointed it out. It's not perfect but better than I hoped for.

:mug:
 
I currently run a few of Thorraks PCB (older RJ12 versions) with the standard LCD screens. I just got two new OLED (128x64). If I flash my ESP8266 with the https://github.com/vitotai/BrewPiLess/blob/master/bins/BrewPiLess.v4.0.thorrax.newui.4m2m.bin

Will I still be able to use my PCB now with the added features of OLED?

Cheers in Advance
You might want to pop over to the BrewPiLess thread and do a search for OLED screens .I recall people were having problems.
 
I had an Arduino crap out on me. When I swapped out to a new one it keeps detecting an old device even when nothing is plugged in. Is there a way to live that old device?
 
That's why - Stretch doesn't have a recent enough version of Python.

This is a problem, as a bunch of people are probably still on Stretch. I'm working on a solution, but it may be this weekend before it's done. Hopefully sooner, though.

Yep! I figured I would find the answer here as to why my Stretch-powered unit was delivering a 504 after the last update.

So, before I go off trying to update, given that my Arduinos are happily running the fermenters, I just want to check that you have plans for a fix. If you do, I'll wait. If you don't, I'll try running the 'dist-upgrade' command.
 
Yep! I figured I would find the answer here as to why my Stretch-powered unit was delivering a 504 after the last update.

So, before I go off trying to update, given that my Arduinos are happily running the fermenters, I just want to check that you have plans for a fix. If you do, I'll wait. If you don't, I'll try running the 'dist-upgrade' command.

The fix is already available - it’s part of the fix environment script I linked before.


There's at least two possibilities for what could be happening. Rather than trying to figure out which is which, let's just address them both.

Log into your Raspberry Pi as the pi user using SSH, and run the following command:
curl -L "https://raw.githubusercontent.com/thorrak/fermentrack-tools/master/fix-environment.sh" | sudo bash

This should take care of all your problems. Let me know if it does - I ran this on my local Pi and it worked, but it also was working beforehand so I can't guarantee the script fixes everything.

WARNING - This command is only designed for Fermentrack installations that were installed using the original install script into the default locations and with the default fermentrack user. I'm guessing this is 95%+ of users, but if you've changed the install paths/installed on another OS/what have you, the script probably won't work and could possibly delete something.

This works in general, but as a side note I’m trying to figure out the best path forward for “master“ branch installs as there isn’t a way at the moment to warn people that their build is going to break if they don’t upgrade. Hmm.
 
When adding a tilt should the device be reporting values immediately to the controller even if not fermenting? I bought a black one and followed the website instructions and it adds a sensor widget but no values are reported, just dashes. Wondering if it's actually connected?

Default install across the board I believe
 
When adding a tilt should the device be reporting values immediately to the controller even if not fermenting? I bought a black one and followed the website instructions and it adds a sensor widget but no values are reported, just dashes. Wondering if it's actually connected?

Default install across the board I believe

I assume you're talking about Fermentrack -- It might take up to a minute or so for the Tilt services to kick in. Assuming that you have a Gen 3 Tilt (the latest one) the Tilt also needs to be at an angle to wake up. (that is - not vertical, and not horizontal)
 
The fix is already available - it’s part of the fix environment script I linked before.




This works in general, but as a side note I’m trying to figure out the best path forward for “master“ branch installs as there isn’t a way at the moment to warn people that their build is going to break if they don’t upgrade. Hmm.

I tried it twice, second time it ran for two days before quitting. To be fair, I'm on an original R-Pi from 2011 so not totally surprising.

So, I'm going down the new install of Raspbian Lite, new Fermentrack install - what do I need to copy over from the old card to maintain logs, settings etc?
 
I tried it twice, second time it ran for two days before quitting. To be fair, I'm on an original R-Pi from 2011 so not totally surprising.

So, I'm going down the new install of Raspbian Lite, new Fermentrack install - what do I need to copy over from the old card to maintain logs, settings etc?

Oh yikes! Yeah, on my Pi 3 it took a few hours for Python to recompile - I can't imagine on an OG Pi. The lack of backports of compiled packages of Python 3.7 for earlier versions of Raspbian makes things difficult.

It actually should be pretty easy - you will just need to copy the db.sqlite3 file and the data/ folder and you should be good. Just make sure when you move them back over to the new Fermentrack install, you chown them back to the fermentrack user or you'll get some weirdness.
 
Back
Top