• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

HOWTO - Make a BrewPi Fermentation Controller For Cheap

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Status
Not open for further replies.
You have several options. Search the forum for BrewPi and bluetooth or esp8266.
 
I´m looking to power my arduino from 220(relay power input). I currently have my MC on wifi and want to cut the need for a USB connection. Anyone here with a great solution to share?

Use one of these.
It works from 110-240VAC.
I use the same thing (sans the plastic casing and hard-wired) inside my Bluetooth and Wifi BrewPi "minions"...

Cheers!
 
Last edited by a moderator:
Here are the LCD related lines from the style.css file in the instance of brewpi that I am trying to embed the LCD from. Any idea which of these lines would need to be changed to add the black background?

Capture.jpg
 
Here are the LCD related lines from the style.css file in the instance of brewpi that I am trying to embed the LCD from. Any idea which of these lines would need to be changed to add the black background?

View attachment 391757

just under LCDDisplay, the obvious one i think you can change is margin, if you change it from 5 to 0px it should remove it completely i think.

Although it could be the gradient filling the box in which case try adjust the 2% #000000 to a higher value, maybe 100% (you will only need to change for the browser youre using)
 
Thanks for the help. Neither of those did it. I'll fiddle with it in earnest tonight and see what else I can find.
 
Use one of these.
It works from 110-240VAC.
I use the same thing (sans the plastic casing and hard-wired) inside my Bluetooth and Wifi BrewPi "minions"...

Cheers!

How exactly do you pop the casing off of those? I was wanting to do this recently myself.
 
Last edited by a moderator:
There's a single screw at one end and a tab/slot thing at the other.
Pull the screw and the two pieces of the case can be removed.
The line cord strain relief is captured between the two case sections so once the case is removed the cord comes free...

Cheers!
 
Thanks for the help. Neither of those did it. I'll fiddle with it in earnest tonight and see what else I can find.
If it were me, I'd change every one of those #000000 instances to #FFFFFF and see what happens. It looks like each line is made to handle the peculiarities of different browsers.
 
My brewpi has been running fine for the last year or so. Recent accessed brewpi remotely only to find I could not view the control panel. Had to hard reset my pi.

I now get this, where it hangs indefinitely,

WP_20170308_16_35_46_Pro.jpg
 
There's a single screw at one end and a tab/slot thing at the other.
Pull the screw and the two pieces of the case can be removed.
The line cord strain relief is captured between the two case sections so once the case is removed the cord comes free...

Cheers!

Mine, while shaped like yours, have no screws. Here comes the chisel and hammer.
 
Mine, while shaped like yours, have no screws. Here comes the chisel and hammer.

That was the case for mine as well. Just be careful because the two wires connected to the outlet plugs are very precariously soldered on the board. Ask me how I know.

Also, if you decide to shorten the lead that plugs into the Uno, check the polarity before you plug it in. Ask me how I know that one, too.
 
My brewpi has been running fine for the last year or so. Recent accessed brewpi remotely only to find I could not view the control panel. Had to hard reset my pi.

I now get this, where it hangs indefinitely,

I had that same thing about a month ago. You have a borked SD card. Time to find out if your back up process is solid...
 
If it's the SD card I probably won't bother keeping my brewpi as its something that is likely to reoccurre. SD cards are one highly unstable.

I will probably go with a programmable on/off stat and a data logger.
 
I should have been a bit clearer. My SD card was fine, it was just the files that were corrupted. The Pi doesn't like having the power cut without properly shutting down. Just reformat the card and restore from a backup. It shouldn't take more than the amount of time to write an SD card image from your computer. Easy peasy.
 
I dont backup. Will need to do a fresh setup. I haven't got time to go through that hassle right now.
 
Here are the LCD related lines from the style.css file in the instance of brewpi that I am trying to embed the LCD from. Any idea which of these lines would need to be changed to add the black background?

View attachment 391757

I'll prefece this that I'm a php/css/webdev noob. Your post actually inspired me to look into this. Make sure you have the the embedded LCD code in R-Pints .php pointing towards the correct .css file. I would also cut down on a lot of the cruft (background gradient, boarder) for something simpler / cleaner looking.

This is the code thats embedded into my RaspberryPints.php, just above </div> <!-- End Header Bar -->

Note I had my stylesheet in "/rp/style.css" as this file sits in my parent directory. I also changed my refreshLcd time to 10000ms due to my system shooting me an error every once in a while when refreshing @ 5000 ms (default)
EDIT: after some quick googling - the intermitted disconnect / not connected to LCD is due to a Safari bug. 10000 ms seems to help in iOS.
https://community.brewpi.com/t/communication-between-browser-and-pi-fails-intermittently-on-safari/601


<!-- Wes -->
<html>
<head>
<title>BrewPi LCD</title>
<link type="text/css" href="/rp/style.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
</head>

<body>

<div id="lcd" class="lcddisplay"><span class="lcd-text">
<span class="lcd-line" id="lcd-line-0">Live LCD waiting</span>
<span class="lcd-line" id="lcd-line-1">for update from</span>
<span class="lcd-line" id="lcd-line-2">script...</span>
<span class="lcd-line" id="lcd-line-3"></span>
</div>

<script type="text/javascript">
function refreshLcd(){
"use strict";
$.post('socketmessage.php', {messageType: "lcd", message: ""},
function(lcdText){
var $lcdText = $('#lcd .lcd-text');
for (var i = lcdText.length - 1; i >= 0; i--) {
$lcdText.find('#lcd-line-' + i).html(lcdText);
}
}, "json")
.fail(function() {
var $lcdText = $('#lcd .lcd-text');
$lcdText.find('#lcd-line-0').html("Cannot receive");
$lcdText.find('#lcd-line-1').html("LCD text from");
$lcdText.find('#lcd-line-2').html("Python script");
$lcdText.find('#lcd-line-3').html(" ");
}).always(function() {
window.setTimeout(refreshLcd,10000);
}
);
}
$(document).ready(function(){
"use strict";
refreshLcd();
});
</script>
</body>
</html>
<!-- Wes -->



Appended to the end of my R-Pints style.css is the following, I truncated the width and height due to the entire header being too wide on my iPad -- to make the box bigger change "width: 220px; height: 90px" under .lcddisplay; to change the font size change "font-size: 16px;" under .lcd-line

}


.lcddisplay {
width: 220px;
height: 90px;

float: left;
margin: 1px;
background: #000000; /* Old browsers */

}

.lcddisplay .lcd-text{
float:left;
margin: 1px 1px;
}

.lcd-line{
float:left;
clear:left;
font-size: 16px;
font-weight: normal;
font-style: normal;
font-family: '5x8LCDHD44780UA02Regular', monospace;
color: #FFFF00;
white-space: pre;
}

My current r-pints, displayed on an old iPad mounted to my keezer:

ndbOKWr.png
 
I'll prefece this that I'm a php/css/webdev noob. Your post actually inspired me to look into this. Make sure you have the the embedded LCD code in R-Pints .php pointing towards the correct .css file. I would also cut down on a lot of the cruft (background gradient, boarder) for something simpler / cleaner looking.

This is the code thats embedded into my RaspberryPints.php, just above </div> <!-- End Header Bar -->

Note I had my stylesheet in "/rp/style.css" as this file sits in my parent directory. I also changed my refreshLcd time to 10000ms due to my system shooting me an error every once in a while when refreshing @ 5000 ms (default)




Appended to the end of my R-Pints style.css is the following, I truncated the width and height due to the entire header being too wide on my iPad -- to make the box bigger change "width: 220px; height: 90px" under .lcddisplay; to change the font size change "font-size: 16px;" under .lcd-line



My current r-pints, displayed on an old iPad mounted to my keezer:

ndbOKWr.png

Awesome! I'll try your edits when I get a chance. Your taplist shows exactly what I'm going for. I'm trying to hide the BrewPi box under my keezer and with the lcd displayed on the taplist, I can still monitor the BrewPi without having to open up a different window on my monitor.
 
My brewpi has been running fine for the last year or so. Recent accessed brewpi remotely only to find I could not view the control panel. Had to hard reset my pi.

I now get this, where it hangs indefinitely,

I'm willing to bet your reset procedure involved pulling the power and plugging it back in, which will inevitably corrupt the SD card. As @CadiBrewer mentioned, a proper shutdown command should always be used.
 
I'm willing to bet your reset procedure involved pulling the power and plugging it back in, which will inevitably corrupt the SD card. As @CadiBrewer mentioned, a proper shutdown command should always be used.

Yeah I get that. But I only have done this once and that was in response to brewpi hanging.

I can't recall the countless times I have hard reset windows over the years. never have I had a file system failure.
 
A Windows OS running on a HDD is a far cry from Raspbian running on an SD card. I'm guilty of hard resets on both systems. Sometimes it is unavoidable. But, as you've found out with the Pi, once is all it takes.

A corrupted SD card is one of the reasons I moved my BrewPi server over to an old laptop running Debian Wheezy.
 
To run the backup sd script. Do you just put the script on the pi. Run the script and have a Sd in a USB reader attached to the pi?
 
Hy guys.
I have a refrigerator combi model "Teka NF 350 with a single compressor.
The only thing missing me to have the brewpi functioning (level hacking of the refrigerator 3 :rockin:) is to bypass or override the thermostat.

Can someone tell me what to do?

Attached some technical drawings of the refrigerator and photos.

My knowledge of electricity and electronics are almost nil ... but I dare with everything :). I followed Elco's hacking tutorial on brewpi.com.

I just hope that does not exploit all to connect to electricity :confused:

(Please, I do not know if it's off topic in this forum, if so I ask moderators move where applicable).

Thank you! :mug:

circuito.png


flujo de aire.png


esquema.png


2017-03-09 15.18.21.jpg


2017-03-09 14.56.55.jpg


2017-03-09 13.35.23.jpg
 
Hello Everyone,

I know I am late the brewpi party but am about to place my order and will be following the Wiki. Wanted to at least throw the items up here and maybe some glaring error can quickly be found which will save me a headache in the future.

I have wired up a control box with an SSR to power a 110v e-kettle before but that is the extent of my electrical experience.

I will be using a mini fridge and a ssbrewtech brewmaster brewbucket that has the thermowell already in it. I will be using 100AMPs wiring diagram included in the Wiki to wire everything.

I have read through about half of this thread and took notes so below is what I am ordering.

1- Arduino Uno board from Amazon
2- Raspberry Pi 3
3- SainSmart 2 Channel Relay Module
4- 4.7k Ohm Resistors (pack of 25 from amazon)
5- Cal-Hawk Wire Connectors (from amazon)
6- Lasko Personal Heater
7- Leviton Power Outlet from Home Depot
8- Power Cord &#8211; I have from an old PC
9- Extra SD Card to do a backup on it as corruption seems like a guarantee while setting it up.
10- SD Card Reader

First question is temperature sensors, can someone link to a good site to get them as I keep reading that there are issues with them being made different now and want to ensure I get the right ones.

Second Question: I want to not have to Solder and was hoping someone could show me what additional parts are needed to use connector wires instead.

Thanks in advance,
Jeff
 
Hey all,

Thanks for all of the help getting this set up to make it a pretty easy process for me. I did notice a couple of things as i put it together and wanted to add my 2 cents where applicable.

First off the "Publicly accessible BrewPi" code linked in the first post appears to need some updating. I found that it would never actually display any graphs or fill out the LCD display. so I dug in and updated the code provided by FuzzeWuzze. See below:

  1. Goto /var/www
  2. Code:
    sudo mv index.php admin.php
    (this moves the default brewpi webpage to a new location)
  3. Create a file with vi or nano called index.php and add the contents of the code block below (Mostly fixes in the Javascript section of the file)

[/LIST]

I just installed brewpi and am trying to start a publicly accessilble brewpi, but I am having trouble with step one. The only files in /var/www is an html folder and do_not_run_brewpi. There is a index.php file in the html folder but I did not find an admin.php file.
any suggestions. Thanks dan
 
Newer versions of the raspberry pi operating system install the files in /var/www/html. Use that location in your command.
 
Status
Not open for further replies.
Back
Top