HOWTO - Make a BrewPi Fermentation Controller For Cheap

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.
Status
Not open for further replies.
If you didn't cut off the end of your default file with the image link, you're missing
Code:
</VirtualHost>
at the very end of the file, to balance the first line.

fwiw, this is what my /etc/apache2/sites-available/default file looks like:

Code:
<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
		AddHandler cgi-script .py
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Works just fine.

[edit] your .htaccess file looks fine. Note that the AuthName directive simply names the collection of files that you are "protecting", and is not a username to be associated with said protecting...

Cheers!
 
Yes, only pasted the beginning of the default file, since the only change required was the None to All.

Just compared yours with what I have and they're identical;

Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Except you have;
Code:
<Directory "/usr/lib/cgi-bin">
		AddHandler cgi-script .py
 
From the access.log; This looked of interest;
Code:
127.0.0.1 - - [08/Mar/2015:06:32:57 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"

Nothing in the error.log, Apache was restarted normally.
 
Have you tried turning it off then turning it back on?
 
error.log
Code:
[Sat Mar 07 16:09:03 2015] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Sat Mar 07 16:09:04 2015] [notice] caught SIGTERM, shutting down
[Sat Mar 07 16:09:06 2015] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Sat Mar 07 16:09:17 2015] [notice] caught SIGTERM, shutting down
[Sat Mar 07 16:09:19 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations
[Sat Mar 07 16:16:56 2015] [error] [client 192.168.1.76] PHP Warning:  socket_set_timeout(): supplied resource is not a valid stream resource in /var/www/program_arduino.php on line 96, referer: http://192.168.1.77/
[Sat Mar 07 17:17:28 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations
[Sat Mar 07 17:43:55 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:43:57 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:43:59 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:44:00 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:44:10 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:44:11 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:44:12 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 17:17:22 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations
[Sat Mar 07 18:59:29 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 18:59:34 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:03:55 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:22:37 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:37:45 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:38:05 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:42:11 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:45:32 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:45:46 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sat Mar 07 19:45:58 2015] [error] [client 192.168.1.76] PHP Warning:  unlink(/var/www/do_not_run_brewpi): No such file or directory in /var/www/start_script.php on line 23, referer: http://192.168.1.100/
[Sun Mar 08 06:46:29 2015] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Mar 08 06:46:30 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations
[Sun Mar 08 13:17:23 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations

access.log
Code:
a
127.0.0.1 - - [08/Mar/2015:06:27:41 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:27:41 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:27:41 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
92.168.1.65 - - [08/Mar/2015:06:32:34 +0000] "POST /socketmessage.php HTTP/1.1" 200 376 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:32:40 +0000] "POST /socketmessage.php HTTP/1.1" 200 376 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:32:46 +0000] "POST /socketmessage.php HTTP/1.1" 200 376 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:32:52 +0000] "POST /socketmessage.php HTTP/1.1" 200 376 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
127.0.0.1 - - [08/Mar/2015:06:32:58 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:32:58 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:32:58 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:32:58 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
192.168.1.65 - - [08/Mar/2015:06:45:48 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:45:54 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:46:00 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:46:06 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:46:12 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:46:18 +0000] "POST /socketmessage.php HTTP/1.1" 200 373 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:06:46:24 +0000] "POST /socketmessage.php HTTP/1.1" 200 374 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
127.0.0.1 - - [08/Mar/2015:06:46:29 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:46:30 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:46:30 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:46:30 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
127.0.0.1 - - [08/Mar/2015:06:46:30 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Debian) (internal dummy connection)"
192.168.1.65 - - [08/Mar/2015:14:14:00 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:06 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:12 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:17 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:23 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:29 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
192.168.1.65 - - [08/Mar/2015:14:14:35 +0000] "POST /socketmessage.php HTTP/1.1" 200 375 "http://192.168.1.100/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"

Took a few lines out, but all were identical to what I show above.

Static IP for BrewPi is 192.168.1.100
IP for laptop running SSH from Putty to BrewPi is 192.168.1.65
 
Well, went back into
Code:
sudo raspi-config

And set up locales, and after a reboot, I tried going back to 192.168.1.100 for my BrewPi, gave me the authorization error webpage, good sign right?

Added /index.php to the end, and it prompted me for login, and now I am able to access via passwd.

It was my understanding I can access this from a remote location, say when I am out of town, etc.?
 
Yeah if you always know your modems up address and you forward the ports from your pi to the internet
 
My modem's static IP? Port forwarding through the router admin site?

I didn't see any of this detailed how-to... mind pointing me in the right direction?
 
My modem's static IP? Port forwarding through the router admin site?

I didn't see any of this detailed how-to... mind pointing me in the right direction?

He's kidding. Do NOT do this.

You need to set up an account with a static-ip host like http://duckdns.org and set up password protection on your pi using htaccess. There is a detailed how-to somewhere in this thread. Good luck.
 
In all realness. I've had an internet account with dynamic ip with charter for like 4 years and I think my ip address has changed maybe once. But I can't speak for all isps.
 
I have charter and it changes every few days. I just use freedns.afraid.org

Once you set up your dynamic dns domain, they give you the cron command to update it. easy peasy
 
In all realness. I've had an internet account with dynamic ip with charter for like 4 years and I think my ip address has changed maybe once. But I can't speak for all isps.

I've been on FiOS for a few years and they've only changed my ip address once - ironically, right about the time I was setting up remote access to my first RPi running Raspberry Pints last winter...

Cheers!
 
The only real advantage of dyndns is not having to keep track of your external ip address.

Using a dynamic dns server doesn't convey safety. You still have to have an application port open and forwarded through the router. Dyndns doesn't hide the port or the external ip address so you're just as vulnerable to script kiddies randomly bashing on the front door as when using an unadvertised direct-to-ip-address connection.

An open port is an open port.

I see hundreds to thousands of attempts to get into my workstation via its vncserver every day.
It's ridiculous, but it's a fact of life...

Cheers!
 
I have a couple questions on this Brew Pi Rev C Schematic.. See my attached image..

1. What is this component? I don't recall this being part of the original BrewPi design. Is this the resistor itself?
2. 1k resistors? Don't LED's normally want 10k resistors?
3. What do all these annotations mean?

D3/SCL - Is this Digital Pin 3?
SJ3 ? What is IO12 - is this the pin?

Thanks! I think I've almost got this working! Also does something here show all the pin mappings?
I see notations like A4, assuming Analog 4 and D6 etc, assuming Digital 6. Some say IO...
Like what pin does the Piezo buzzer map to? it maps to my #3 D3 the pin ?

brewpi-schield-revc-schematic_questions.jpg
 
[...]

1. What is this component? I don't recall this being part of the original BrewPi design. Is this the resistor itself?

That's an N-channel FET that is being switched by an IO pin.
It's essentially a current amplifier, able to drive a relay, for instance, which the Arduino can't do on its own.

2. 1k resistors? Don't LED's normally want 10k resistors?

Actually, I think you'd find most LED current-limiting resistor values closer to 220 ohms than 1K. 10K is a complete non-starter, LEDs usually need at least a milliamp or two to turn on.

The other 1K is just to keep things from going totally open circuit (when there's no load connected and the FET turns on), and the diode is there to protect the FET in case the load somehow tries to drag the output below ground (inductive pulse when the circuit shuts off, for instance). So it's an indicator LED and a snubber circuit.

3. What do all these annotations mean?

D3/SCL - Is this Digital Pin 3?
SJ3 ? What is IO12 - is this the pin?

SJ is a "solder joint" pattern in the shield that you bridge the side you want to use as the control source. In this case you can chose between Digital IO 3 or Digital IO 12 to control the beeper.


Thanks! I think I've almost got this working! Also does something here show all the pin mappings?
I see notations like A4, assuming Analog 4 and D6 etc, assuming Digital 6. Some say IO...

Yes, there are lots of Arduino connections shown, but not everything is an Arduino signal...

Cheers!
 
Apparently I need to buy these components then..

Maybe if I have this I don't need that circuit ? I looks like those FET chips are on there..

IMG_0264.jpg
 
If you were to buy relay boards you do not need the FETs on your interface/shield assembly. The relay boards have opto-couplers to allow direct interfacing to the controlling entity (in our case, Arduinos) and have the FETs needed to drive the relay coils.

I'd wager there are few if any folks here that aren't using relay boards...

Cheers!
 
Hey all,

Wanted to share my build. No pics in action yet but I've tested the runtime with lights connected. Used an old computer power supply as a case for the controller; it already had a fan so I just mounted it on the outside. Threw a wall-wort DC power supply inside to run the fan and power the arduino in case the BrewPi PC dies. BrewPi is running on an old micro sized PC with Debian installed.

This was a fun, yet time consuming project. My total equipment cost was around $80 once I got a thermowell shipped to me but that also included extra temp probes and connector wires for later projects.

FuzzeWuzze, thanks for the inspiration and instruction!

Assembled Front View.jpg


Assembled Rear View.jpg


Top View Inside.jpg
 
Used an old computer power supply as a case for the controller; it already had a fan so I just mounted it on the outside.

I like this. I've been trying to come up with a containment system for my build and might try this.

wall-wort

I was going to correct you on this but on second glance, it seemed very appropriate. :mug:

Todd
 
Thanks! I swear I tried that several times but it worked this time. The only problem now is that during the install (I accepted all of the defaults) at the very end it tells me ERROR ERROR ERROR ERROR Setup NOT completed and says E: Unable to locate the package rpi-update.

I assume this is because of the "rpi-update" that I took out of that script? Is this normal?

I am very new at this and I realize this may be an obvious problem but I have loaded Debian onto an old PC (with little problem) and then went about using the automated brewpi installer using the following: git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools then sudo ~/brewpi-tools/install.sh

The first time I entered sudo ~/brewpi-tools/install.sh I had previously deleted the code rpi-update and everything seemed to be loading fine until the very end I got the message ERROR ERROR precede by a line usermod: user 'pi' does not exist. If I put the line rpi-update back into line 179 and re-enter sudo I still get an ERROR ERROR which is preceded by E: unable to locate package rpi-update.

Can anyone tell me if I am doing something wrong here. I also have the dumb question of how do I know the installation is working?:confused:
 
The RPI-UPDATE package is a firmware update for the Raspberry Pi board. You definitely won't be executing that on your peecee ;)

Cheers!
 
The problem is the that you didn't setup the default user account 'pi'
 
I am very new at this and I realize this may be an obvious problem but I have loaded Debian onto an old PC (with little problem) and then went about using the automated brewpi installer using the following: git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools then sudo ~/brewpi-tools/install.sh

The first time I entered sudo ~/brewpi-tools/install.sh I had previously deleted the code rpi-update and everything seemed to be loading fine until the very end I got the message ERROR ERROR precede by a line usermod: user 'pi' does not exist. If I put the line rpi-update back into line 179 and re-enter sudo I still get an ERROR ERROR which is preceded by E: unable to locate package rpi-update.

Can anyone tell me if I am doing something wrong here. I also have the dumb question of how do I know the installation is working?:confused:

I tried the automated installer first and ended up getting some quick failures so I went over to the manual install which worked out great. Just a few more steps. I did get a similar error about 'pi' not existing in the "3. Setting up users and permissions" section.

The below commands caused the "error". I just changed 'pi' to 'brewpi' - may have been wrong but it worked.
sudo usermod -a -G www-data pi
sudo usermod -a -G brewpi pi
 
The problem that most people have is that they assume that since they are building a brewpi system that they should name their user account brewpi. The problem is the user brewpi had its own place in the automated setup and should not be your primary account on an rpi. Because rasbian defaults to user pi the setup script assumes that is your admin account and sets up the permissions that way. All you have to do the run the install script is setup your primary account as pi from the start then remove the line that checks rpi-update and it will run without a problem under Debian wheezy. If you have setup your system with brewpi as the primary account and you haven't fixed all the permissions to reflect that then you'll proabably be back on here down the road asking why you're having issues starting new profiles and saving log files and such.
 
Thanks for the extra info. I must've missed where the primary account should be 'pi'; mine is 'user' :confused:. It's no problem to reinstall Debian on my PC then re-run the BrewPi install to get it configured correctly. :mug:
 
Subscribing. I built this a few days ago on an older raspberry pi and arduino. Seems to work. I had a problem getting my temp sensors to read so tried various power supplies. (When I first started it, both showed temperatures. Then they both quit. Thought maybe I misswired it -black-red-yellow, but no.) One finally started, but the other would not. Figured after many refreshes and reboots that I had a bad sensor but when I set it's function to "none" and then re-discovered it, it started working. (In case someone else needs to try that).

I brew in my shop a couple miles away and have no internet there - trying to figure out a cheapest way to get it so I can check things from home. I could get a $40/month plan at 256K/64K and 6GB cap, but would prefer cheaper. Thinking since I'm an old guy I could get a ConsumerCellular sim card for maybe $10/month at 500MB/month cap and link it up somehow to check my Rpi webserver occasionally. Any wiz kids here good at hooking one of them up - providing the company doesn't frown too hard on tethering? I can google it too, so no worries.

My system isn't in use yet.. need to rig up a thermowell and mount the mess on a board or something. Thanks much for the work you do to help us out! cheers, JD
 
The problem that most people have is that they assume that since they are building a brewpi system that they should name their user account brewpi. The problem is the user brewpi had its own place in the automated setup and should not be your primary account on an rpi. Because rasbian defaults to user pi the setup script assumes that is your admin account and sets up the permissions that way. All you have to do the run the install script is setup your primary account as pi from the start then remove the line that checks rpi-update and it will run without a problem under Debian wheezy. If you have setup your system with brewpi as the primary account and you haven't fixed all the permissions to reflect that then you'll probably be back on here down the road asking why you're having issues starting new profiles and saving log files and such.

First of all I need to thank you for responding, because I really want to make this work, and I realize I have a lot to learn. I hope I'm not interpreting this (and some of the other posts) incorrectly, but it seems like my best option is to re-install Debian, create a user called pi from the home directory, then perform a manual install, (I assume from the pi directory). I realize now that it might have been better to have originally gone with the manual install, since it would give me a better appreciation for what is happening during the install. If the fix is something as simple as renaming the ~brewpi directory to pi, I sure would like to know. Thanks
 
If your Debian distro supports it, log in as root (or log in as user or brewpi and then $ sudo su) and give the adduser command a try and add user 'pi' in group 'pi' at '/home/pi'.

Adduser is an interactive console command that will walk you through everything needed to add a new user and set the password, create the new home directory and new group, etc.

Once you have 'pi' added, log out of brewpi and log in as pi. Then make sure you can $ sudo su to gain superuser rights. If that works, use those root privs to remove the 'user' or 'brewpi' user and home directory and group.

https://www.digitalocean.com/commun...rant-sudo-privileges-to-users-on-a-debian-vps

Cheers!
 
If your Debian distro supports it, log in as root (or log in as user or brewpi and then $ sudo su) and give the adduser command a try and add user 'pi' in group 'pi' at '/home/pi'.

Adduser is an interactive console command that will walk you through everything needed to add a new user and set the password, create the new home directory and new group, etc.

Once you have 'pi' added, log out of brewpi and log in as pi. Then make sure you can $ sudo su to gain superuser rights. If that works, use those root privs to remove the 'user' or 'brewpi' user and home directory and group.

https://www.digitalocean.com/commun...rant-sudo-privileges-to-users-on-a-debian-vps

Cheers!
I'm having a hard time believing this, but when I follow your advice it gives me the instruction to enter my IP into the browser followed by the comment Happy Brewing. When I enter my IP address it does connect to BrewPi with the warning "script not running". Am I really a step closer on the path and (I know this sounds stupid) what should I start doing next? Could I be getting closer to moving on to the next step of assembling the adruino board? Thanks!!!!!
 
Did you run the install with the arduino plugged in? It should install just about every thing. I'm trying to remember if it runs the hex upload too. Otherwise you just plug in the arduino, download the revc hex file and upload it to the arduino.
 
I like your vented "Old Computer Supply Box"! I will have to try and find one on ebay or computer store junk pile....Looks better then spending $10 on a Hammond Box!
 
Brewpi isn't coded to do it natively but you can get to hacking if you want.
 
This Project is what finely made me pull the trigger on becoming a member of HBT after a year of lurking! My build is almost done I'm just waiting on an enclosure. Thanks so much to everyone for being such a great community and helping us all complete this awesome project! I'll post a pic when it is finally completed.

Here's a link to my page whats fermenting

IMG_20150312_041728[1].jpg


IMG_20150312_190937[1].jpg


IMG_20150312_210307[1].jpg


IMG_20150312_210316[1].jpg


IMG_20150313_193227[1].jpg
 
Also here's a look at the page if you don't want to go to the link or for some reason it doesn't work for you. I played around with the page to get it more the way I like it aesthetically and added a button that I hope to use soon for the raspberry pints setup, but for now it just leads to the admin page for brewpi.I'm also planning on changing out the brewery logo, but as of right now I just threw that current one up there. Let me know what you guys think.

whatsbrewin.jpg
 
[...]When I enter my IP address it does connect to BrewPi with the warning "script not running". [...]Could I be getting closer to moving on to the next step of assembling the adruino board? Thanks!!!!!

Yes, you are close to the end :)

If you are landing on the BrewPi web gui then you just need to copy the hex file to your RPi then use the gui to upload it to your Uno...

Cheers!
 
Yes, you are close to the end :)

If you are landing on the BrewPi web gui then you just need to copy the hex file to your RPi then use the gui to upload it to your Uno...

Cheers!

Wow. Thanks. I need to get soldering the Ardruino.
 
[…]Let me know what you guys think.

Do you have a handle on why this does not work on the RPi 2?

While I've read that there is supposedly some potential for incompatibility, everything I've coded and everything else I'm running works perfectly on the 2. Kind of curious about this.

Also curious about why a supposed "One Wire" device is incompatible with the Dallas spec...

Cheers!
 
Status
Not open for further replies.
Back
Top