Installed as following:
sudo apt-get install git
git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
cd ~/brewpi-tools
sudo ./install.sh
I didn’t keep the formal log of the first attempt at install however it all went well with one exception, it wanted a username pi which I’ve long since removed for security reasons … I added this user anyway.
The web interface worked, however the messages were:
Cannot receive LCD text from Python script
Script not running!
Rebooted, no change
Reinstalled just in case the missing user pi was a critical factor, this time as root
su
git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
cd ~/brewpi-tools
./install.sh
installation log attached, no errors noticed. Same result.
Cannot receive LCD text from Python script
Script not running!
Rebooted no change
su
python brewpi.py --status
No BrewPi scripts running
cat /home/brewpi/settings/defaults.cfg
scriptPath = /home/brewpi/
wwwPath = /var/www/
port = auto
altport = None
boardType = leonardo
beerName = My First BrewPi Run
interval = 120.0
dataLogging = active
cat /home/brewpi/settings/config.cfg
wwwPath = /var/www/html
thought it strange defaults.cfg listed leonardo and config.cfg had no over-riding rule for the photon
ls -al /dev/ttyA*
crw-rw---- 1 root dialout 166, 0 Jun 5 09:28 /dev/ttyACM0
photon is definitely attached
looking around the utils folder…
./updateFirmware.py
Stopping any running instances of BrewPi to check/update controller…
Checking current firmware version…
Jun 05 2016 10:17:28 Opening serial port
Found BrewPi v0.4.3 build 0.4.3-0-g4d00879, running on a Particle Photon with a V2 shield on port /dev/ttyACM0
Current firmware version on controller: 0.4.3
Checking GitHub for available release…
Available releases:
[0] 0.4.3
[1] 0.4.2
[2] 0.4.1
[3] 0.4.0
[4] 0.2.11
[5] Cancel firmware update
Enter the number [0-5] of the version you want to program [default = 0 (0.4.3)]:
Type yes to reprogram or just press enter to keep your current firmware:
yes
Would you like me to try to restore you settings after programming? [Y/n]:
y
Would you like me to try to restore your configured devices after programming? [Y/n]:
y
Downloading firmware…
downloading https://github.com/BrewPi/firmware/releases/download/0.4.3/brewpi-photon-0.4.3.bin
Photon system firmware is up to date.
Latest firmware downloaded to:
Updating firmware…
**** Photon Program script started ****
Settings will be restored if possible
Devices will be restored if possible
Checking old version before programming.
Jun 05 2016 10:18:11 Opening serial port
Checking current version: Found BrewPi v0.4.3 build 0.4.3-0-g4d00879, running on a Particle Photon with a V2 shield on port /dev/ttyACM0
Requesting old settings from Photon…
Saved old settings to file settings-Jun-05-2016-10-18-15.json
Found a Photon and running as root/sudo, using DFU mode to flash firmware.
Trying to automatically reboot into DFU mode and update your firmware.
If the Photon does not reboot into DFU mode automatically, please put it in DFU mode manually.
Running command: sudo /usr/bin/python /home/brewpi/utils/flashDfu.py --autodfu --noreset --file=/home/brewpi/utils/downloads/0.4.3
Will automatically reboot newly detected photons into DFU mode
Using local files instead of downloading a release.
dfu-util not found, downloading dfu-util…
downloading http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/dfu-util
Detecting DFU devices
Did not find any DFU devices.
Is your Photon or Spark Core running in DFU mode (blinking yellow)?
Waiting until a DFU device is connected…
Found new serial port connected: (’/dev/ttyACM0’, ‘Particle Photon’)
Putting Photon in DFU mode
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.3/brewpi-photon-0.4.3.bin
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0 …
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 86820
…
File downloaded successfully
Programming done
Updating firmware over DFU finished
Waiting for device to reset.
Jun 05 2016 10:18:34 Opening serial port
Checking new version: Found BrewPi v0.4.3 build 0.4.3-0-g4d00879, running on a Particle Photon with a V2 shield on port /dev/ttyACM0
Resetting EEPROM to default settings
INFO MESSAGE 15: EEPROM initialized
Now checking which settings and devices can be restored…
Trying to restore compatible settings from 0.4.3 to 0.4.3
Migrating these settings: [[“tempFormat”, “C”], [“fridgeSet”, null], [“beerSet”, null], [“mode”, “t”], [“heater1_kp”, 10.0], [“heater1_ti”, 600], [“heater1_td”, 60], [“heater1_infilt”, 1], [“heater1_dfilt”, 4], [“heater2_kp”, 10.0], [“heater2_ti”, 600], [“heater2_td”, 60], [“heater2_infilt”, 1], [“heater2_dfilt”, 4], [“cooler_kp”, 10.0], [“cooler_ti”, 1800], [“cooler_td”, 200], [“cooler_infilt”, 1], [“cooler_dfilt”, 4], [“beer2fridge_kp”, 2.0], [“beer2fridge_ti”, 7200], [“beer2fridge_td”, 1200], [“beer2fridge_infilt”, 1], [“beer2fridge_dfilt”, 4], [“beer2fridge_pidMax”, 10.0], [“minCoolTime”, 120], [“minCoolIdleTime”, 180], [“heater1PwmPeriod”, 4], [“heater2PwmPeriod”, 4], [“coolerPwmPeriod”, 1200], [“deadTime”, 1800]]
Omitting these settings: []
INFO MESSAGE 12: Received new setting: tempFormat = C
INFO MESSAGE 12: Received new setting: fridgeSet = null
INFO MESSAGE 12: Received new setting: beerSet = null
INFO MESSAGE 12: Received new setting: mode = t
INFO MESSAGE 12: Received new setting: heater1_kp = 10.0
INFO MESSAGE 12: Received new setting: heater1_ti = 600
INFO MESSAGE 12: Received new setting: heater1_td = 60
INFO MESSAGE 12: Received new setting: heater1_infilt = 1
INFO MESSAGE 12: Received new setting: heater1_dfilt = 4
INFO MESSAGE 12: Received new setting: heater2_kp = 10.0
INFO MESSAGE 12: Received new setting: heater2_ti = 600
INFO MESSAGE 12: Received new setting: heater2_td = 60
INFO MESSAGE 12: Received new setting: heater2_infilt = 1
INFO MESSAGE 12: Received new setting: heater2_dfilt = 4
INFO MESSAGE 12: Received new setting: cooler_kp = 10.0
INFO MESSAGE 12: Received new setting: cooler_ti = 1800
INFO MESSAGE 12: Received new setting: cooler_td = 200
INFO MESSAGE 12: Received new setting: cooler_infilt = 1
INFO MESSAGE 12: Received new setting: cooler_dfilt = 4
INFO MESSAGE 12: Received new setting: beer2fridge_kp = 2.0
INFO MESSAGE 12: Received new setting: beer2fridge_ti = 7200
INFO MESSAGE 12: Received new setting: beer2fridge_td = 1200
INFO MESSAGE 12: Received new setting: beer2fridge_infilt = 1
INFO MESSAGE 12: Received new setting: beer2fridge_dfilt = 4
INFO MESSAGE 12: Received new setting: beer2fridge_pidMax = 10.0
INFO MESSAGE 12: Received new setting: minCoolTime = 120
INFO MESSAGE 12: Received new setting: minCoolIdleTime = 180
INFO MESSAGE 12: Received new setting: heater1PwmPeriod = 4
INFO MESSAGE 12: Received new setting: heater2PwmPeriod = 4
INFO MESSAGE 12: Received new setting: coolerPwmPeriod = 1200
No devices to restore!
**** Program script done! ****
BrewPi script will restart automatically.
that appeared to run beautifully
it downloaded:
/home/brewpi/utils/downloads/0.4.3/brewpi-photon-0.4.3.bin
/home/brewpi/utils/downloads/dfu-util
So there appears to be no hardware problems
./installDependencies.sh
***** Installing/updating required packages… *****
Reading package lists… Done
Building dependency tree
Reading state information… Done
apache2 is already the newest version.
build-essential is already the newest version.
git-core is already the newest version.
libapache2-mod-php5 is already the newest version.
php5 is already the newest version.
php5-cgi is already the newest version.
php5-cli is already the newest version.
php5-common is already the newest version.
python-dev is already the newest version.
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
***** Installing/updating required python packages via pip… *****
Requirement already up-to-date: pyserial in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: psutil in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: simplejson in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: configobj in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: gitpython in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: six in /usr/local/lib/python2.7/dist-packages (from configobj)
Cleaning up…
***** Done processing BrewPi dependencies *****
This appeared all good
./fixPermissions.sh
***** Fixing file permissions for /var/www *****
***** Fixing file permissions for /home/brewpi *****
***** Installing/updating required python packages via pip… *****
Requirement already up-to-date: pyserial in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: psutil in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: simplejson in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: configobj in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: gitpython in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: six in /usr/local/lib/python2.7/dist-packages (from configobj)
Cleaning up…
***** Done processing BrewPi dependencies *****
***** Updating cron for the brewpi user… *****
no crontab for brewpi
Checking entry for brewpi …
Done checking entry brewpi …
Checking entry for wifichecker …
Done checking entry wifichecker …
Restarting cron
Restarting cron (via systemctl): cron.service.
***** Fixing file permissions for /var/www *****
***** Fixing file permissions for /home/brewpi *****
everything appeared ok
./runAfterUpdate.sh
Cleaning up BrewPi script directory…
Deleted 2 old .pyc files
Deleted 3 empty directories
…
everything appeared ok
as user brewpi (whom I assume runs the brewpi script)
sudo -u brewpi python /home/brewpi/brewpi.py
BrewPi requires ConfigObj to run, please install it with 'sudo apt-get install python-configobj
sudo apt-get install python-configobj
this wasn’t installed, it is now
sudo -u brewpi python /home/brewpi/brewpi.py
BrewPi requires pyserial 3.0, you have version 2.6 installed.
Please upgrade pyserial via pip, by running:
sudo pip install pyserial --upgrade
If you do not have pip installed, install it with:
sudo apt-get install build-essential python-dev python-pip
sudo pip install pyserial --upgrade
Requirement already up-to-date: pyserial in /usr/local/lib/python2.7/dist-packages
Cleaning up…
this appeared to change nothing
sudo apt-get install build-essential python-dev python-pip
…
build-essential is already the newest version.
python-dev is already the newest version.
python-pip is already the newest version.
this appeared to change nothing
So I appear to have python3-serial installed, which lists as version 2.6 go figure. Is this the real problem?
Over it for now.
TIA
grep main /etc/apt/sources.list
…
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
cat /etc/issue.net
Raspbian GNU/Linux 8
uname -r
4.4.11-v7+
defaults.cfg.txt (309 Bytes)
config.cfg.txt (24 Bytes)
install.log.txt (4.0 KB)