Software Install Guide

There should be a sticky post on the forums which says, “No matter what your issue and how unrelated you think it is to power supply or quality of connection, start by upgrading all of your cabling and see if your problem persists”

I had an issue where I thought my Pi’s MicroSD was running out of space and causing OS issues, but this problem turned out to be a cabling issue. It seems almost any random problem can have cabling as the root cause.

Great advice but how do you know what stuff is “good”. Certain brands? Do they have certain specs to look for? Just getting into this…
Thanks.

So I am trying to set up my Raspberry Pi and I have done all updates up to the git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools. Once I enter this in the next line is:
Cloning into ‘/home/pi/brewpi-tools’…
fatal: unable to access ‘https://github.com/BrewPi/brewpi-tools.git/’ Could not resolve hot: github.com

I am not sure if I’m doing something wrong but I need help.

@joejr This probably is a dumb question but you are still connected to the internet correct?

@bryancm1 I was operating on the Debian Jessie version and it was giving that issue. I reinstalled with Debian Wheezy and it works great now. Not sure why it was giving that issue. All I’m waiting on now is for my brew pi to come in the mail. Thank you for asking and helping.

As a BrewPi noob I took notes on getting the software installed. Here they are in case they’re useful to anyone else: https://github.com/m-allanson/brewpi-setup

Next week I’ll be converting a fridge so will probably be asking some questions :smile:

Thanks for taking notes!
I am going to move the documentation to readthedocs.org, so it will be easier for others to contribute updates.

I’m finally getting around to setting up my BrewPI Spark V2. Was it supposed to come with an SD card? I just took it out of the box and didn’t find one. Or is it just preloaded with Plug 'N Play goodness? The unit seems to recognize my temperature probes and powerswitch tails, but I can’t seem to do anything else other than stare at the hardware test mode on its display.

Hi Eric,

I think there might be some confusion. Inside the BrewPi Spark is a Particle Photon, not a Raspberry Pi.
The Raspberry Pi needs and SD card and you need to buy one separately. Then you can follow this software install guide to install software (on the Pi) and afterwards connect the BrewPi Spark to the Raspberry Pi via USB for data logging and configuration.

The photon runs the control, the Raspberry Pi runs the Web interface and data logging.

We will release an update to connect the Raspberry Pi and Photon over WiFi later, but this is not available yet.
The BrewPi Spark does have an SD card slot, but it is not used by the firmware. We can perhaps start using it later to buffer data when the connection to the web server is dropped.

The BrewPi Spark is preloaded with firmware, which is in test mode until you configure it differently via the Pi.

Elco

Hi !
I have been trying to get my brewpi up and running the past 2 days.
Everything goes as plan up to the part where I am going to run the " sudo ~/brewpi-tools/install.sh "
Then I get s ton of “fail to fetch” errors. Have tried different PI and SD cards. Same problem appears.
All the apt-get update, upgrade have now erros. Need some help before I go crazy.
Thanks OJ

That sounds like a problem with your internet connection on the pi.

If you run:

sudo ping github.com

What does that give you?

Don’t think it eny problem with internet

pi@raspberrypi:~ $ sudo ping github.com
PING github.com (192.30.252.130) 56(84) bytes of data.
64 bytes from github.com (192.30.252.130): icmp_seq=1 ttl=54 time=130 ms
64 bytes from github.com (192.30.252.130): icmp_seq=2 ttl=54 time=137 ms
64 bytes from github.com (192.30.252.130): icmp_seq=3 ttl=54 time=129 ms
64 bytes from github.com (192.30.252.130): icmp_seq=4 ttl=54 time=132 ms
64 bytes from github.com (192.30.252.130): icmp_seq=5 ttl=54 time=129 ms
64 bytes from github.com (192.30.252.130): icmp_seq=6 ttl=54 time=128 ms

that looks alright indeed. If you try again now, does the problem still occur?

Yes still the same

Checking whether this script is up to date…

/home/pi/brewpi-tools is up-to-date.

***** Installing/updating required packages… *****

Reading package lists…
Building dependency tree…
Reading state information…
build-essential is already the newest version.
git-core is already the newest version.
python-pip is already the newest version.
The following extra packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libonig2 libpython-dev
libpython2.7-dev libqdbm14 lsof php5-json php5-readline python2.7-dev
ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine apache2-suexec-custom php-pear
php5-user-cache openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php5 libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libonig2
libpython-dev libpython2.7-dev libqdbm14 lsof pastebinit php5 php5-cgi
php5-cli php5-common php5-json php5-readline python-dev python2.7-dev
ssl-cert
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,455 kB/26.9 MB of archives.
After this operation, 65.4 MB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-bin armhf 2.4.10-10+deb8u4
404 Not Found [IP: 193.35.52.51 80]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-utils armhf 2.4.10-10+deb8u4
404 Not Found [IP: 193.35.52.51 80]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-data all 2.4.10-10+deb8u4
404 Not Found [IP: 193.35.52.51 80]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2 armhf 2.4.10-10+deb8u4
404 Not Found [IP: 193.35.52.51 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-bin_2.4.10-10+deb8u4_armhf.deb 404 Not Found [IP: 193.35.52.51 80]

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-utils_2.4.10-10+deb8u4_armhf.deb 404 Not Found [IP: 193.35.52.51 80]

Can you try running:

sudo apt-get update
sudo apt-get upgrade

Done with same results. I have tried to change SD card and pi. All the same.
The git clone is it anything I need to do with that or just copy paste the link.
Thanks for the help, I am out of idees now.

The problem has nothing to do with git.
You are getting an error when downloading packages from apt-get. This is not even BrewPi related, but a standard Linux install/update procedure.

I have no idea why it is not working. I would try with a fresh install of raspbian-lite.

I just installed a multi chamber BrewPi setup, following the Instructables and diybrewpi.wikia page about this, and a user there mentioned that Raspbian Jessie is not supported, only Wheezy. Could that be the problem? Newer RasPis (I got a 2B) come with Jessie in the Noobs card…
Unrelated to this, I noticed you @Elco mentiones a few posts back that “The latest version of BrewPi automatically recognizes witch port the Core/Photon/Arduino is on, and I recommend leaving the port setting at auto.” Does it mean it will work with the Arduinos? I recall reading somewhere that the new version, from 0.3.1 on (I believe) would not support Arduinos… and then I see the firmware for Arduino on the same as the Spark? Sorry to ask so much, I’m pretty new to this all as well, still working around glitches and trying to wrap my head around it. Keep up the great work!

Degian Jesse is no problem.

auto port detection should work with Arduino, but if you are connecting multiple Arduinos to one Pi, you should not use it.

The firmware on the Arduino is NOT the same as on the Spark. The firmware on the Spark will continue to receive updates, but the Arduino is not compatible with our latest software and will not receive any more updates.

I have to perform a clean install for an arduino based brewpi system soon. Does the install script prompt for the legacy branch, or will I have to run the updater to switch branches?